|Feb2-13, 09:02 PM||#1|
How do IP addresses work?
I know the basics, every device connected to the internet has a unique IP address, and when I request something from another device connected to the internet my IP is sent with the request so that the data packets know where to come back to.
However I have problems with this; firstly, if I google "My IP" it tells me that my IP is an 11 digit number. I'm pretty certain there are more than 10^10 devices connected to the internet, so how are there enough IP's for every device?
I've heard of IPv6 which supposed to be the current form of IP's designated to devices, and these look like this 2001:0db8:85a3:0042:1000:8a2e:0370:7334
However my IP doesn't look like this, what's going on?
My second question is why does it say "Your public IP address is xxx.xx.xxx.xxx" when I google my IP? what is a public IP?
If I have multiple computers connected to the same wireless hub, or they are all connected to a Ethernet port in the same house/flat, then would there be any similarities in there IP address?
How about something like a university network? how would IP's be used there? for example at my uni all accommodation is connected to the university wireless network connection so we can access the internet.
I've downloaded a network analyser to try and work some of this stuff out. there seems to be about 3 packets every 3 seconds when my browsers closed but then loads when I request a webpage, but none of them have my IP as either the source or the destination, (well the last 3 digits are the same on allot of them)
Please help I'm very curious as to what's going on. Thanks!
|Feb2-13, 10:32 PM||#2|
Yours is an IPv4 address. You're quite right that there aren't enough IPv4 addresses for every device to have one.
The answer to all your other questions is Network Address Translation.
Your entire house(/workplace/university/ISP/...) hides behind one address (the "public IP"). Your computers have their own address but those addresses are not visible to the outside (and are not unique addresses).
You have a network gateway device that rewrites all of the outbound messages originating from your network and puts the public IP into the packet headers; and then when the responses are received, undoes that rewrite and sends the response back to where the request came from.
|Feb3-13, 01:28 AM||#3|
However many ISP (internet service providers) also offer the (added cost) option of assiging a separate public IP for every computer (or device) connected to the cable / dsl modem. It's common for a cable modem to support up to 16 public IP's, but the cable company in my area currently has a max of 3 public IP's. DSL offers an 8 IP modem, but 3 of those are overhead, so you end up with 5 public IP's. Multiple IP's with DSL used to be signficantly more expensive than cable, but now the pricing is close.
In the case of shared web hosting, a single server will use multiple public IP's, one for each shared web site on the server.
I'm not sure how all this will transition from IPv4 to IPv6, other than I assume IPv4 addresses will get "grandfathered" and remain the same.
|Feb4-13, 07:50 AM||#4|
How do IP addresses work?
Ahh interesting, thanks guys!
|ip adress, network|
|Similar Threads for: How do IP addresses work?|
|ports on IP addresses||Computers||5|
|A question about addresses||Programming & Comp Sci||2|
|Addresses||Computing & Technology||4|