New
#1
IP address and wifi?
what is the relationship between IP address and WIFI router?
what is the relationship between IP address and WIFI router?
There are two kinds of IP addresses, public (external) and private (internal). Your router or modem (both WiFi and LAN) has a public IP address. This address is to your modem / router as what your home address is to your house; it helps the network traffic to find your local home network.
Type IP address to Google and you can see your router's public IP address on the first line, followed by an excellent article of IP addresses on Wikipedia.
Each and every device on your network has a private IP address, given by the router. Think a private IP as the door number; the public IP tells how to find your house, the private IP how to find "the door", your PC.
The router then acts like the doorman in an apartment block, delivering incoming traffic to individual devices using private IPs and collecting outgoing traffic and sending it further using the public IP. These private IP addresses belong normally to one of the following three groups which are reserved for private use:
- 10.0.0.0 to 10.255.255.255
- 172.16.0.0 to 172.31.255.255
- 192.168.0.0 to 192.168.255.25
Normally the one ending with 0 is not used so a quite typical default setting of a router is itself to have the private IP ending with 1 and then all other devices starting from 2. Using my home network as an example I have following setup:
- Router: 192.168.1.1
- Network printer: 192.168.1.2
- Network storage: 192.168.1.3 and 192.168.1.4
- My desktop: 192.168.1.5
- My laptop:192.168.1.6
- etc...
My public IP at the moment is 178.X.X.X (using Xs because it is never a good idea to reveal your public IP!), so here's an example:
- I type www.sevenforums.com to my browser's addressbar on my laptop
- Laptop sends the router information that I would like to open Seven Forums website
- Router goes and gets Seven Forums front page from the net
- Page arrives, router checks which private IP had asked that information and sends it back to my laptop using the private, internal address
IP address can be static (always the same) or dynamic (different when disconnected and reconnected). Normally, at least here in Europe, the public IP is always dynamic if you have not especially ordered (with extra cost) a static public IP. If you reset your router and go again to Google typing IP address you should notice you have got a new public IP. Same thing with private IPs; if you shut down or disconnect all your PCs then reconnect them in different order you might notice that a desktop that had 192.168.1.6 might next time when booted / connected have the IP 192.168.1.11 and so on.
I have set my home network to use static private IP's. Especially with network printers and storages it is important and makes life easier when these devices can always be found using the same private IP.
Please notice I wanted to simplify things as much as possible so the above is not as accurate explanation it could be!
Kari
Last edited by Kari; 11 Aug 2012 at 15:02. Reason: Fixed some typos
hi Kari - at the risk of going slightly off-topic,
have you noticed any negative consequences in giving a laptop's wifi card a static IP?
in my home network, i've given all my wired machines a static IP (to make life simpler for port forwarding etc), but haven't for my wifi devices.
when travelling, i connect to multiple wifi networks, both trusted and public - what would happen if i gave my laptop a fixed IP of x.x.x.x then tried to connect to a coffee-shop public wifi (for example) where another machine already had that IP?
Mickey, at home my static private IPs are for LAN connections only as normally also my laptops are wired. I do not use static IPs on WiFi connections.
So to clarify things a bit: When I mentioned I am using static private IPs on my home network I meant wired connections. The only static WiFi IP I use is my WiFi network printer.
Kari
thanks Kari - i thought that is what you meant.
Don't worry about what's being reported. Quite often those results will be wrong. If you connected your laptop to your office's network (and not the network right next door), then you are fine.