Static IP - How to setup your home network

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:

HTPC 192.168.10.1
PC #1 192.168.10.2
PS4 192.168.10.3
IPhone 192.168.10.4

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:

http://192.168.0.1
or
http://192.168.2.1
etc..

DLink Router Login page

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:

Windows

  1. Hit Windows-R key on your keyboard ( or via start menu search bar )
  2. type: cmd and hit ENTER
  3. In the terminal that pops up, type in: ipconfig /all
  4. Look for the PHYSICAL ADRESS that looks like a number like this:  00-2A-35-AB-32-66

Linux:

  1. in a terminal type: ifconfig -a

IPhone: http://www.macinstruct.com/node/554

Android: http://optimum.custhelp.com/app/answers/detail/a_id/2820

PS4: http://www.tech-recipes.com/rx/45936/ps4-how-to-find-mac-address-of-wifi-or-ethernet/

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:

DLINK DHCP Reservation

 

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
    Windows Static Ip Step 1
  • Click on: Internet Protocol Version 4 (TCP/IPv4) and the hit Properties
    Windows Static Ip Step 2
  • 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 )
    Windows Static Ip Step 3
  • 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 :).
    Windows Static Ip Step 4

 

SET STATIC IP INSIDE UBUNTU (Graphical):

First the method via the graphical interface

  1. Find the two arrows symbol on the top status bar and go to Edit Connections.Ubuntu Static Ip Step 1
  2. click on  your network adapter that is plugged into your rooter and it edit.Ubuntu Static Ip Step 2
  3. go to the IPv4 Settings tab and switch the method from, by default: Automatic DHCP TO: to ManualUbuntu Static Ip Step 3
  4. Enter the following Informations.
    • Address: is the static IP you want to be reserved.
    • Netmask: enter something like this for full network discovery: 255.255.255.255/
    • Gateway and DNS Servers will be the address of the router
    • What it could look likes:
      Ubuntu Static Ip Step 4
  5. You can check your settings to see if everything worked correctly by checking your Connection Information:
    Ubuntu Static Ip Step 5

 

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:

  1. Find you device: ifconfig
  2. In most case it will eht0 for internet plugged with wire and wlan0 for internet with wireless connected.
  3. sudo nano /etc/network/interfaces
  4. 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

  5. Now you need change DNS information, you can put your router ip address here:
  6. sudo nano /etc/resolv.conf 
    nameserver 192.168.2.1

    in nano Save with Ctrl-X

  7. Restart the network service: sudo /etc/init.d/networking restart
  8. Check if everything works : ifconfig and look for inet addr: 192.168.2.10