Static IP – How to setup your home network
What are Static IP Addresses for? A quick tour:
Think of an IP as your house door number. When you want someone to come over to your house, you will tell him your door number and he will find you. Internet work the exact same way. Your ip address will tell the world where your home is. You have two type of IP addresses: public and private. Public are the one everyone can have access: your house door number. Private are all the doors inside your house, the ones that people from the outside cannot reach. Well, in your home network, each of your devices (Computer, Playstations, xbox, phones, tablets, etc) will have it’s own private IP address, or let say: interior house doors. Normally, your router is the maestro who decide what number is attributed to what device and it will do it randomly. It will base itself on a specific range (i.e. from 192.168.2.10 to 192.168.2.255) : we call that DHCP (Dynamic Host Configuration Protocol).
In other words, the router will spread automatic IP Address in your network. When comes the time to connect your IPhone to your home network: your router will give it this IP, for example, 192.168.2.11. Next time you will connect it, more or less devices will be connected. So, your router will decide to allocate this ip: 192.168.2.15 instead. Here is how to allocate specific IP Addresses to specifics devices. At the end you will have a fixed configuration that looks like this:
And those addresses will never change, they will be FIX :).
You have two option to do so. 1 via the rooter, 2. via each devices independently:
Set Static IP via the router ( Recommended )
With this option you wont have to worry to bring your device somewhere else and have to reconfigure the whole thing. The router will take care to always allocate the same IPs on the network. Because every router as his own way to configure and access configuration, I won’t go into all and I will suggest you to read the documentation of yours. Mainwhile, here is the basic and you will probably be able to transfer any of this information on your own router configuration accordingly.
Normally, by default, you will access your router configuration via your internet browser by simply going to an address that usually looks like these:
It will prompt for a password. Routers always come with default passwords, sometimes: admin, 1234, 0000, etc. Once you get, you need to immediately change this password for high risk security breaches.
Once you pass login, you will be able to change how your network is communicating with your home network. You can put wireless setting, such as password, security protocol, who can access it, etc.
Here we want to address a specific IP address to Specifics computers. The router will recognize your computer via your MAC address. It is a unique number that every network cards own. You can find your mac address by following these steps:
Finding your MAC Adress:
- Hit Windows-R key on your keyboard ( or via start menu search bar )
cmdand hit ENTER
- In the terminal that pops up, type in:
- Look for the PHYSICAL ADRESS that looks like a number like this: 00-2A-35-AB-32-66
- in a terminal type:
Xbox One: http://www.uni.edu/resnet/content/xbox-one
Now that you know your device MAC Address you can activate a DHCP Reservation. With a d-link router you will be able to do with something that will look like this:
Once you completed the configuration, your router will now allocate a specific static ip address to any of your device in your home network. You won’t have to worry about finding your devices over the network.
SET STATIC IP INSIDE WINDOWS 7:
Instead of configuring the router to allocate specific static ip to your network computers, you can tell windows what IP to use. The downside of this approach is that if you move your computer somewhere else (i.e. a laptop), it will try to connect to the new network with these specific settings and it might fail. Meanwhile, in some situation you will want those setting and here is how to do it:
- First open a new explorer window ( key: WINDOWS + E ) and type:
Control Panel\All Control Panel Items[HIT ENTER]
- Goto: Network and Sharing Center
- On the left side menu find and click on: Change Adapter Settings
- Find the adapter that is plug into your rooter. Normaly: Local Area Connection [X]
- Right click on the adpater and hit properties
- Click on: Internet Protocol Version 4 (TCP/IPv4) and the hit Properties
- Ok here we want to set the Private Static IP for this computer: it can be basically any IP ( i.e. 192.168.2.10 )
- Then you need to know your router IP Address ( i.e. 192.168.2.1 )
- Hit OK and if all the information was entered correctly, you should be connected on internet (Perhaps, if your router is connected to internet).
- If you want to check if everything works you right click to your connection adapter.
- Check for Status, and in the dialog that pops up, check for Details.
- If under IPv4 Address you see the static ip you’ve entered: you are all set :).
SET STATIC IP INSIDE UBUNTU (Graphical):
First the method via the graphical interface
- Find the two arrows symbol on the top status bar and go to Edit Connections.
- click on your network adapter that is plugged into your rooter and it edit.
- go to the IPv4 Settings tab and switch the method from, by default: Automatic DHCP TO: to Manual
- Enter the following Informations.
- You can check your settings to see if everything worked correctly by checking your Connection Information:
SET STATIC IP INSIDE UBUNTU and XBMCbuntu (Terminal):
If you have no access to the terminal and what to change via SSH here is how to:
- Find you device:
- In most case it will eht0 for internet plugged with wire and wlan0 for internet with wireless connected.
sudo nano /etc/network/interfaces
- This file is suppose to look like so by default:
auto lo eth0 iface lo inet loopback iface eth0 inet dynamic
Change modify to something like these:
auto lo eth0 iface lo inet loopback iface eth0 inet static address 192.168.2.10 ( the static ip ) netmask 255.255.255.0 ( the mask ) gateway 192.168.2.1 ( The router address )
in nano Save with Ctrl-X
- Now you need change DNS information, you can put your router ip address here:
sudo nano /etc/resolv.conf
in nano Save with Ctrl-X
- Restart the network service:
sudo /etc/init.d/networking restart
- Check if everything works :
ifconfigand look for inet addr: 192.168.2.10