• PRO Courses Guides New Tech Help Pro Expert Videos About wikiHow Pro Upgrade Sign In
  • EDIT Edit this Article
  • EXPLORE Tech Help Pro About Us Random Article Quizzes Request a New Article Community Dashboard This Or That Game Popular Categories Arts and Entertainment Artwork Books Movies Computers and Electronics Computers Phone Skills Technology Hacks Health Men's Health Mental Health Women's Health Relationships Dating Love Relationship Issues Hobbies and Crafts Crafts Drawing Games Education & Communication Communication Skills Personal Development Studying Personal Care and Style Fashion Hair Care Personal Hygiene Youth Personal Care School Stuff Dating All Categories Arts and Entertainment Finance and Business Home and Garden Relationship Quizzes Cars & Other Vehicles Food and Entertaining Personal Care and Style Sports and Fitness Computers and Electronics Health Pets and Animals Travel Education & Communication Hobbies and Crafts Philosophy and Religion Work World Family Life Holidays and Traditions Relationships Youth
  • Browse Articles
  • Learn Something New
  • Quizzes Hot
  • This Or That Game New
  • Train Your Brain
  • Explore More
  • Support wikiHow
  • About wikiHow
  • Log in / Sign up
  • Computers and Electronics
  • Computer Networking
  • IP Addresses

How to Find the Network and Broadcast Address (with Examples)

Last Updated: May 1, 2023 Fact Checked

Using a Network Calculator

Converting to binary, using classful network, classful network examples, cidr examples.

This article was co-authored by wikiHow staff writer, Travis Boylls . Travis Boylls is a Technology Writer and Editor for wikiHow. Travis has experience writing technology-related articles, providing software customer service, and in graphic design. He specializes in Windows, macOS, Android, iOS, and Linux platforms. He studied graphic design at Pikes Peak Community College. This article has been fact-checked, ensuring the accuracy of any cited facts and confirming the authority of its sources. This article has been viewed 783,683 times. Learn more...

To calculate the network and broadcast address for an IP address, you'll need the IP address, subnet mask, and CIDR notation. With this information, you can use an online networking calculator to calculate the address, or find it manually. There are multiple ways to manually calculate the addresses, including by converting both the IP address and subnet mask to binary values, using classful addressing, and using CIDR for classless networks. This wikiHow teaches you four different ways to calculate your network address and broadcast address from an IP address, along with helpful examples for any scenario.

Things You Should Know

  • To get the network and broadcast addresses without doing math, use a network calculator .
  • The easiest way to calculate the broadcast and network addresses manually is to convert to binary and count the bits.
  • For a classless network, use the CIDR method to subnet your network.

Step 1 Go to http://jodies.de/ipcalc...

  • For example, if the IP address is, the binary address is 111000000.10101000.00000001.00000011.
  • If the subnet mask is, which is /19 in CIDR notation, the binary address would be 11111111.11111111.11100000.00000000.
  • We will use the /19 example in this method.

Step 2 Count the bits in the subnet mask.

  • 11111111.11111111.111 (network) 00000.00000000 (host)
  • If you were working with a /24 network, you'd count the first 24 bits (digits) instead. For a /8 network, you'd count the first 8 bits, etc.

Step 3 Count the bits in the IP address.

  • For the binary IP address 11000000.10101000.00000001.00000011, 11000000.10101000.000 , the first 19 digits, is the network. The remaining 13 digits, 00001.00000011 , represents the host.

Step 4 Determine the network address.

  • IP address: 11000000.10101000.000 000001.00000011
  • Subnet mask: 11111111.11111111.111 00000.00000000
  • Network address: The first 19 bits from the IP address with the last 13 bits of the subnet mask: 11000000.10101000.000.00000.00000000
  • Converted:

Step 5 Determine the broadcast address.

  • IP address: 11000000.10101000.000 00001.00000011
  • Last 13 bits of subnet mask as ones: 11111.11111111
  • Broadcast address: 11000000.10101000.000.11111.11111111
  • Converted:

Step 1  Determine the total number of bits used for subnetting.

  • Subnet masks can be 0, 128, 192, 224, 240, 248, 252, 254 and 255.
  • The number of bits used for subnetting (n) to their corresponding subnet mask is as follows: 0=0, 128=1, 192=2, 224=3, 240=4, 248=5, 252=6, 254=7, and 255=8.
  • Subnet mask 255 is default, so it'll not be considered for subnet masking.
  • For example: Let's assume the IP address is and Subnet mask is The total bits= T b = 8. The number of bits used for subnetting for subnet mask 224 is 3.

Step 2 Determine the number of bits left to host.

  • Using the example above, n=3. The number of bits left for host is (m) = 8 - 3 = 5. 5 is the number of bits you have left to host.

Step 3 Calculate the number of subnets.

  • In our example, the number of subnets is 2 n = 2 3 = 8. 8 is the total number of subnets.

Step 4 Calculate the value of the last bit used for subnet masking.

  • In our example, the value of last bit used for subnet masking is Δ = 2 5 = 32. The value of the last bit used is 32.
  • 5 Calculate the number of hosts per subnet. The number of hosts per subnet is represented by the formula 2 m - 2 .

Step 6 Separate the subnets by the value of last bit used for subnet masking.

  • The 8 subnets (as calculated in previous step) are shown above.
  • Each of them has 32 addresses.

Step 7 Determine the network and broadcast addresses for the IP addresses.

  • Example: If the bit-length prefix is 27, then write it as 8 + 8 + 8 + 3 .
  • Example: If bit-length prefix is 12, then write it as 8 + 4 + 0 + 0 .
  • Example: Default bit-length prefix is 32, then write it as 8 + 8 + 8 + 8.

Step 2 Convert the bit-length prefix to quad-dotted format.

  • Using another example, the IP address is . Using above table, you can write the bit-length prefix 26 as 8+8+8+2. Using the chart above, this converts to Now the IP address is and subnet mask in quad-dotted decimal format is .
  • 3 Determine the total number of bits. The total number of bits is represented using the following equation: T b = 8 .

Step 4 Determine the number of bits used for subnetting.

  • For subnet mask 255 is default, so it'll not consider for subnet masking.
  • From the previous step, you got IP address = and Sub-net mask =
  • Total bits = T b = 8
  • Number of bits used for subnetting = n. As the subnet mask = 192, its corresponding number of bits used for Subnetting is 2 from above table.

Step 5 Calculate the number of bits left to host.

  • In our example, the number of bits used for subnetting (n) is 2. So the number of bits left for host is m = 8 - 2 = 6. The total bits left for the host is 6.
  • In our example, the number of subnets = 2 2 = 4. The total number of subnets is 4.

Step 7 Calculate the value of last bit used for subnet masking.

  • In our example, the value of last bit used for subnet masking = Δ = 2 6 = 64. The value of the last bit used for subnet masking is 64.

Step 8 Calculate the number of hosts per subnet.

  • In our example, the last value used for subnet masking is 64. This produces 4 subnets with 64 addresses.

Step 10 Find which subnet your IP address is in.

  • Our example IP address is So is network address and is broadcast address.
  • See CIDR Examples for more examples.
  • 3 IP address comes in - Hence, is the network address and is the broadcast address.
  • 4 See Classful Network Examples for more examples.

IP address = and subnet mask = Total bits = T b = 8

Number of bits used for subnetting for subnet mask 128 = n 1 = 1 (as subnet mask = 128 and its corresponding "No. of bits used for Subnetting" is 1 from above table)

  • 2 Number of bits left for host for subnet mask 128 = m 1 = T b - n 1 = 8 - 1 = 7 Number of bits left for host for subnet mask 0 = m 2 = m 3 = T b - n 2 = T b - n 3 = 8 - 0 = 8 Number of subnets for subnet mask 128 = 2 n 1 = 2 1 = 2 Number of subnets for subnet mask 0 = 2 n 2 = 2 n 3 = 2 = 1 Value of last bit used for subnet masking for subnet mask 128 = Δ 1 = 2 m 1 = 2 7 = 128 Number of host per subnet = 2 m 1 - 2 = 2 7 - 2 = 126 Value of last bit used for subnet masking for subnet mask 0 = Δ 2 = Δ 3 = 2 m 2 = 2 m 3 = 2 8 = 256 Number of host per subnet for subnet mask 0 = 2 m 2 - 2 = 2 m 3 - 2 = 2 8 - 2 = 254
  • 4 IP address comes in - Hence, is the network address, and is the broadcast address.

Community Q&A

Community Answer

  • In CIDR, just after you convert the bit-length prefix to quad-dotted decimal format, you can follow the same procedure as for Classful network. Thanks Helpful 0 Not Helpful 0
  • This method is only for IPv4, not applicable for IPv6. Thanks Helpful 0 Not Helpful 0

assign ip address for a broadcast address

You Might Also Like

Assign an IP Address on a Linux Computer

About This Article

Travis Boylls

1. Assume the total number of bits used for subnetting is Tb = 8. 2. Find how many bits used for subnetting (n) according to the following subnet masks:0=0, 128=1, 192=2, 224=3, 240=4, 248=5, 252=6, 254=7, and 255=8 3. Use the formula (m) = Tb - n to determine the number of bits left to host. 4. Use the formula 2m - 2 to calculate the number of subnets. 5. Use the formula Δ = 2m to calculate the value of the last bit used for subnet masking. 6. Separate subnets using the value fo teh last bit used for subnet masking. 7. Determine which subnet your IP address fall in. 8. Use the first address in the subnet to determine the network address. 9. Use the last address in the subnet to determine the broadcast address. Did this summary help you? Yes No

  • Send fan mail to authors

Reader Success Stories


Jul 26, 2016

Is this article up to date?

Arslan Shahab

Arslan Shahab

Feb 6, 2017


Aug 14, 2016

Am I a Narcissist or an Empath Quiz

Featured Articles

Study Efficiently

Trending Articles

How to Take the Perfect Thirst Trap

Watch Articles

Wrap a Round Gift

  • Terms of Use
  • Privacy Policy
  • Do Not Sell or Share My Info
  • Not Selling Info

wikiHow Tech Help Pro:

Level up your tech skills and stay ahead of the curve

  • Domain Names
  • Domain Name Search
  • Free Domain Transfer
  • .com Domain
  • 1 Dollar Domain
  • Cheap Domain
  • Free Domain
  • Buy SSL Certificate
  • Website Builder
  • Website Platforms
  • Website Templates
  • Web Design Services
  • eCommerce Website Builder
  • Local Business Listing
  • Web Hosting
  • WordPress Hosting
  • 1 Dollar Hosting
  • Windows Hosting
  • Free Website Hosting
  • Create Business Email
  • HiDrive Cloud Storage
  • Microsoft 365 Business
  • Cloud Server
  • VPS Hosting
  • Dedicated Servers
  • Rent a Server
  • IONOS Cloud
  • Business Name Generator
  • Logo Creator
  • Favicon Generator
  • Whois Lookup
  • Website Checker
  • SSL Checker
  • IP Address Check

What is a broadcast address?

What is a broadcast address?

The broadcast address can be used to send data packets in IP networks to all participants of a local network. The individual addresses of each party in the network do not have to be known for this to work. If necessary, the broadcast address can be calculated quite easily.

What’s behind the broadcast address?

How is the broadcast address calculated, how to find out the broadcast ip.

$1 Domain Names

Register great TLDs for less than $1 for the first year.

Why wait? Grab your favorite domain name today!

Each network or subnet has a reserved broadcast address that can be used by all participants of the network to send a broadcast . Broadcasts allow information and services to be transmitted to all devices and components of the network without the need to know their individual IP addresses . Among other things, routers in a local area network use the broadcast IP to send HELLO packets to all endpoints, switches, and other routers to maintain interrelationships on the network and discover neighboring devices.

Broadcast: a multipoint connection in IP networks that automatically reaches all nodes in the network without knowing the recipient addresses. For this purpose, a fixed reserved broadcast address exists in each network or subnet.

Each IP address consists of 4 decimal numbers — so-called octets — separated by dots. An octet contains 8 bits, which is why every IPv4 address is automatically a 32-bit address. Each octet can represent a number between 0 and 255. The broadcast address is always identified in the final part of the host part of an address (starts in the third or fourth octet): If all host bits are set to the binary value “1”, this is the broadcast address.

If all host bits are set to the value “0”, this is the subnet address.

The following example is intended to clarify the composition of the individual components of an IP address, including the calculation of the broadcast address: is the IP address in this case, while the suffix “/24” indicates the subnet mask .

Schematic representation of the IPv4 address

In each network, a broadcast IP is assigned only once . It is always the last IP address of the subnet. The broadcast address — where all host bits are set to “1” as already mentioned — is therefore: in this example.

You want to find out the broadcast address of your network? For this, common operating systems with native command line applications and the network program ipconfig (Windows) or “ifconfig” or “ip” (Linux, macOS) provide the appropriate tool set.

In Windows , for example, proceed as follows:

  • Start the command prompt by using the key combination [Windows] + [R] and execute the command “ cmd ”.
  • Enter the CMD command “ ipconfig /all ” into the command line tool to get an overview of all important key data of your local network.

Windows 11 prompt: Output for “ipconfig /all”

Among other things, the prompt presents you with your device’s IP address and subnet mask. You can derive the broadcast IP from this information. In our example where the IP address is and the subnet mask is , the broadcast address is .

How exactly you find out the broadcast address in Linux and macOS depends on the available network tool of the respective distribution or version. In Ubuntu 20.04 , for example, you can proceed as follows:

  • Open the “ Show applications ” menu.
  • Search for “ Terminal ” and start the application by double-clicking on it.
  • Enter the command “ ifconfig ”.

Ubuntu 20.04: Output for the command “ifconfig”

Right in the second line , Ubuntu presents three values after executing the command:

  • inet : the Internet address of your device (here: )
  • netmask : the subnet mask of the local network (here: )
  • broadcast : the broadcast address of the local network (here: )
  • Encyclopedia

Related articles

Network types at a glance

Network types at a glance

When several computers are connected to one another it is known as a network. Networks enable data exchange between different devices, making shared resources available. Different network types are implemented depending on which transmission techniques and standards are used. These differ in terms of the number of connected systems and potential reach.

PPPoE: DNS protocol

PPPoE: DNS protocol

How exactly do you access the internet? Those who have a DSL contract, for example, first have to contact their internet provider’s node each time they connect. The provider checks the access authorization and establishes the connection to the internet. The so-called “Point-to-Point Protocol over Ethernet” (PPPoE) is used for this purpose. But how exactly does this protocol work?

Build or host a website, launch a server, or store your data and more with our most popular products for less.

assign ip address for a broadcast address

  • 1 You may want to use non-default address for broadcasting... for example if you want to allow your broadcasts to be routed to another subnet. What's the reason for that can be - I don't know. –  Akina Aug 1, 2018 at 6:58

The broadcast address is configurable by hand mostly because it is a good practice to allow the user to have more flexibility and freedom about what they want to configure.

Besides that, there are two reasons I could think of, that would need a manually configured broadcast address.

IP Directed Broadcasts : These are broadcast packets directed to an external (remote) network. You can send a broadcast packet to that network's broadcast address and the router that is the network's gateway will transform it into a Layer 2 broadcast frame and forward it to all hosts in the network. However, these directed broadcasts are usually disabled by default, since they could be used in a malicious way, e.g., smurf attacks , DoS attacks, and more.

UDP Broadcast Packet Forwarding : By default routers break the broadcast domain. However, since services like DHCP work by using broadcast packets, routers can be configured to forward broadcast packets to a specific address. This could be the DHCP server's address, another host on the network, or this can even be an IP Directed Broadcast address .

These are two cases where you'd need a manually configured broadcast address. The second case being for a router, though, but nonetheless, it works for a normal host depending on its configuration. This is not applicable to all routers, example is given for Cisco routers.

You can read more about IP Directed Broadcasts and UDP Broadcast Packet Forwarding in Cisco 's Broadcast Packet Handling Guide (pages 3-11).

Fanatique's user avatar

You must log in to answer this question.

Not the answer you're looking for browse other questions tagged networking ip ..

  • The Overflow Blog
  • Would you trust an AI bot to find the fix for vulnerabilities in your code?
  • Featured on Meta
  • Site maintenance - Saturday, February 24th, 2024, 14:00 - 22:00 UTC (9 AM - 5...
  • Upcoming privacy updates: removal of the Activity data section and Google...

Hot Network Questions

  • Is there a perfect group in which not every element is a commutator?
  • Hiding a star cluster
  • Given two sets of integers find an integer in the first set furthest away from all members of the second set
  • Magical Spellchecker
  • How does rfkill work without being root (or using sudo)?
  • What does "gets the beat" mean?
  • Is it okay for a co-author to share an unfinished manuscript with others?
  • Why can't I use logic operator Or to specify multiple events with WhenEvent?
  • Can I walk to the Netherlands from Weeze?
  • Animated movie with dragons and a boy and girl from warring factions/kingdoms
  • A simple unit test library for C - version II
  • How I can smooth the border that is left after applying "Difference" with a "Mesh Boolean" node?
  • X Gender Marker: Entry Restrictions?
  • What does the law say about noisy cultural events?
  • Did any developing country criticize China's industrial policies, which include dumping?
  • What was the ‘obvious’ new answer to Asimov’s Pâté de Foie Gras made possible by scientific advance?
  • Periodic boundary conditions: torus or infinite images?
  • \cref : "Argument of \textsf has an extra }."
  • Early computer art - reproducing Georg Nees "Schotter" and "K27"
  • Why is "tyrannis" in "sic semper tyrannis" interpreted as "to tyrants"?
  • "Could not load source layer for INPUT" error when reprojecting flt-file with PyQGIS
  • Effectiveness of sdmem on a VPS?
  • can gourmet (n.) refer to food?
  • Difference between ウナギは魚だ and ウナギが魚だ

assign ip address for a broadcast address

.itprclogo_0{fill:#1D93D1;} .itprclogo_1{fill:#0993D2;}

How a broadcast address works.

How a Broadcast Address Works

Imagine you’re Paul Revere, riding from Boston to Lexington to warn citizens that the redcoats were coming. He may not be as fast as computer networks today, but Paul Revere was essentially acting much like a broadcast would- he was relaying his message to the entire town of Lexington.

A broadcast, in particular, is a simple message that is sent to all clients on a local area network. But just exactly what enables a network to broadcast a message to every single client on the network?

What is a Broadcast Address?

A broadcast address is an address used to indicate that information being sent out should be delivered to every client on the local area network. These addresses are always the highest number possible in a particular network address or subnet. We’ll cover subnets later, for now let’s take a closer look at the most common broadcast address: Data Link Layer broadcasts.

mac address broadcast

Broadcasts on the Data Link Layer correspond to MAC addresses. MAC address broadcasts are generally the easiest to understand, since they aren’t affiliated with IP addresses or subnetting. In fact, all you really need to remember is FF:FF:FF:FF:FF:FF. Whereas this MAC address would normally be comprised of different hexadecimal values, it is instead simply all F’s. (As we know, each F stands for the highest number in hexadecimal: 15)

When a MAC address broadcast is sent out, each network interface card on the local area network will see the broadcast address and automatically pass the information up to the upper layers of the OSI model. So far it’s simple- right? Now let’s get back to the subnetting and IP address topics that are present on the Network Layer.

How IP Broadcasts are Sent via the Network Layer

Remember how we stated that broadcast addresses are always the highest-most number in an address range? IP broadcasts are no exception! On a network that isn’t subnetted, we can simply place 1’s in place for each bit in the host portion. The result: our very own broadcast address!

network class broadcast address

Things are still fairly simple: simply replace each host portion with the highest number you can create with 8 bits: 255. Notice that the network portions do not change- just the host portions.

Sadly, this is where things start to get a little trickier: we need to find the broadcast address of a subnetted network.

How to Find the Broadcast Address of a Subnetted Network

We need two things to find the broadcast address of a subnetted network: an IP address, and the subnet mask. The process is simple: find the inverse of the subnet mask. Then take the result, and logically OR it with the IP address to get the broadcast address.

example of a broadcast address

Of course, we can convert the above binary result to decimal and get the broadcast address of If you aren’t familiar with the OR process, it’s rather simple. If there is a 1 in either the IP or subnet field, then the result will always be a 1. (Otherwise, the result is 0)

Now we know how to find the broadcast address and how it works- but what is it used for?

What are Broadcast Addresses used for?

Broadcasts are generally used for several reasons:

  • Address Resolution Protocol (ARP) uses broadcasts to map physical addresses to logical addresses. To build the table of hosts, a device needs to send a broadcast to every other device on the network to essentially find out who is where.
  • Several types of network protocols and services use broadcasts in the same way. Dynamic Host Configuration Protocol (DHCP), for instance, requires that broadcasts be used to dynamically assign an IP address to computers on a network.
  • Routing protocols such as Routing Information Protocol (RIP) use broadcasts to send out “advertisements.” This advertisement is used by routers to map out the topology of a network, so that data can be routed to the appropriate place accordingly. (Interesting enough, this protocol will attempt to find the fasted route through a network to a destination, based on how many “hops” it takes to get from the sender to the receiver.)

Final Points of Interest on Broadcasts

Keep in mind that broadcasts will travel to every single client on a network- at least, until a router is encountered. A router is the only device that can separate a broadcast domain. Logically, this is mandatory for the internet to exist. What do you think would happen if broadcasts were being sent from network to network- all over the internet? (Hint: no more Internet.)

Also make note that broadcast addresses should never be used as host addresses. This can be confused in subnetting, where it isn’t always clear where the host portion starts and ends. The broadcast address is reserved as the highest value- and likewise, no IP address should use a broadcast address or problems will arise.

Related Posts

Best Cassandra Monitoring Tools

Alison Quine


' src=

What about a Layer 3 Switch will it stop the broadcast?

' src=

Excellent article. Very clear explanation and easy to understand for a novice like me. Thanks a lot.

' src=

A layer 3 switch is pretty much just a router, so yes, it will stop the broadcast.

  • Pingback: Zachary L Schuessler August 16, 2008