By default, most computers and devices on the network get their IP addresses via DHCP. DHCP is basically a system whereby a host, like a router or server, gives out IP addresses to devices so that they can communicate with the host and with each other over the network.
Each device on the network has to have a unique IP address. The IP address for a device may change over time depending on several factors. This usually doesn’t cause any problem, but there are situations where a static IP address is required.
Assign Static IP Address – Windows
The following procedure will work for Windows 7, Windows 8 or Windows 10. The first thing we want to do is to open the Network and Sharing Center. You can do that by clicking on the Start button and typing in network and sharing.
In the Network and Sharing Center window, click on Change adapter settings
on the left-hand side.
This will open the Network Connections window where you will see a list of all physical and virtual network devices. Here you will want to right-click on the network connection that is currently being used to connect the computer to the network and choose Properties. If it’s WiFi, use Wireless Network Connection. If you are connecting via cable, useEthernet.
Now click on Internet Protocol Version 4 (TCP/IPv4) to select it and then click onProperties again.
Finally, this will bring you to the settings screen where you can assign a static IP address.
You’ll select the Use the following IP address radio button and then type in the IP address, subnet mask and default gateway. By default, when you type in the IP address, it fills out the subnet mask for you. The Default gateway and Preferred DNS servershould both be set to the IP address of your router.
I would also check the Validate settings upon exit box to make sure that the new values will work on your network. Click OK and your computer will now have a static IP address assigned to it.
Assign Static IP Address – Mac (OS X)
If you’re using a Mac, you have to go to System Preferences, which is basically the equivalent of Control Panel in Windows. To get there, click on the Apple icon at the top left of the menu bar.
Next, click on the Network icon.
This screen is similar to the Network Connections dialog in Windows. You will see a list of network connections on the left. If the connection is green, that means it is active. Click on the connection and then click on the Advanced button at the bottom right.
This will bring up all the advanced settings for the network connection. Click on theTCP/IP tab and you’ll see a dropdown next to Configure IPv4.
In the dropdown, you have several choices: Using DHCP, Using DHCP with manual address, Using BootP, Manually and Off. In OS X, you can choose from either DHCP with manual address or Manually. Manually is basically like the default option in Windows where you have to type in all the values yourself. DHCP with manual address will allow you to type in an IP address, but will automatically determine the subnet mask and router (default gateway).