Questions tagged [ip]

The IP (internet protocol) is a protocol for transmitting data over packets ("datagrams"). It is the primary protocol of the Internet. "IP" may also refer to an IP address, the numerical address assigned to an IP-capable device.

The Internet Protocol (IP) forms the basis of media-independent transmission and routing (a.k.a forwarding) of network packets, it is part of the Internet Protocol Suite.

In the OSI model, it resides at Layer 3 (the network layer). The protocol data unit for this layer is called a packet. IP packets are identified by source and destination IP addresses.

IP addresses, in combination with subnet masks, provide the basis for the concept of networks (or internetworks, more exactly) in the OSI model.

This means that a node, using IP addressing, can talk to machines it is directly connected to (on the same subnet), or that is on another network (on a different subnet).

While subnet masks are not specified in IP packets, they are used by devices that transmit and receive IP packets to determine if the packet is meant for another node that network, or another network. If the traffic is not meant for this network, it must be forwarded to that network via a router, and vice versa.

This is all in contrast to the common Layer 2 protocol Ethernet, in which nodes can only talk to other nodes reachable on the same network.

IP provides no guarantees on packet delivery. Responsibility for ensuring this reliability through retransmission and data integrity checking is assumed by a higher layer protocol, usually TCP.

2758 questions
37
votes
4 answers

Services that just return your public IP as text

I'm writing a script that does dynamic DNS updates for me, but my server is behind a router, and so I need to use a web service to determine my public IP. So far I've found this one which returns just your plain IP. I was looking around trying to…
Alex Coplan
  • 920
  • 3
  • 9
  • 19
35
votes
3 answers

Why does the registered domain name “localtest.me” resolve to 127.0.0.1?

I was reading an article about Server-Side Request Forgery. In that article the attacker found that 127.0.0.1 was open to the internet. The victim then blocked 127.0.0.1, but because many other IPs and apparently also some domains are also resolved…
not2qubit
  • 1,993
  • 4
  • 28
  • 35
35
votes
5 answers

How can every single device on a network have a different public IP?

I'm at a computer camp, and I noticed that every single device connected to the network has a different public IP, which really surprised me. What is even more strange is that their public IPs are exactly the same as their private IPv4 addresses.…
Flare Cat
  • 934
  • 3
  • 8
  • 16
33
votes
6 answers

Add a static IP alias to a DHCP interface on Windows 8 (and above)

I have a Windows 8 machine that has only a single Ethernet port. It needs to use DHCP and also needs a static IP. Each IP is in a different subnet, and each serves a different, incompatible purpose. This machine must use DHCP because the site…
Warren Young
  • 3,665
  • 3
  • 19
  • 28
33
votes
3 answers

On Windows, how to determine route for IP destination?

How can I determine the IP route taken for a specific IP destination (without looking at "route print" and figuring it out manually)? In OS X there's route get 1.2.34 and in Linux there's /sbin/ip route get 1.2.3.4. Is there anything like that on…
Ilya
  • 1,774
  • 6
  • 22
  • 26
33
votes
4 answers

IP address: 000 simplifies to 0?

I was setting up my Ubuntu with brother printer driver and was trying to use my printer's IP to connect my pc to the printer. On my printer, the IP address is 192.168.000.008. So I entered this in my settings to connect, but to no avail. However,…
33
votes
4 answers

What does /16,/24 mean with regards to ip addresses?

I am trying to understand how network topologies work in large scale networks such as college campuses. I often see the phrases /16,/24 with regards to ip addresses. I would like to know what /16 and /24 etc. mean. I understand it has something to…
Max
  • 461
  • 1
  • 5
  • 9
30
votes
5 answers

How do IP answer packets reach their destination inside of a private LAN?

This is a little theory question that has been confusing me for a pretty long time. Basically, if we are inside of a private LAN, and we want incoming packets to reach, for example, an HTTP server located on one of the machines, we forward ports so…
InsomniaArray
  • 301
  • 1
  • 3
  • 3
30
votes
5 answers

Ethernet vs TCP vs IP?

What is the difference between Ethernet, TCP, and IP in simple (simple abstract) terms? Please do not copy from Wikipedia...
waka
  • 1,187
  • 2
  • 9
  • 9
30
votes
3 answers

Why can I ping 10.0.0.0/8 addresses from a 192.168.1.0/24 subnet?

My home network uses a 192.168.1.0/24 subnet, and when I ping 192.168.1.137 I get a response saying the host is unavailable (as expected because I don't have any machines using that address) However, when I ping 10.10.10.140 it: gets a response,…
30
votes
9 answers

Is it possible to host a web server from behind a NAT

My PC is behind a NAT router that has a public IP address. If I want to host a website then I believe I need a domain name which I can purchase from some site which would pledge to resolve all DNS requests for that domain name and send the IP…
Rohit Banga
  • 2,354
  • 10
  • 32
  • 41
29
votes
4 answers

Are subnets always contiguous 1s?

I understand the basic premise behind subnet masks, such as 255.255.255.0. But all the subnet examples I’ve seen have been (from left-to-right) contiguous 1s (HI bits). For instance, 255.255.0.0 (/16) translates to the following octets: 11111111 .…
Zac
  • 393
  • 1
  • 4
  • 5
29
votes
2 answers

Does the order of entries in the routing table matter?

Does the routing order matter: > route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 123.x.x.151 0.0.0.0 255.255.255.255 UH 0 0 0 vmbr0 123.x.x.154 0.0.0.0 …
static
  • 1,337
  • 5
  • 18
  • 29
29
votes
2 answers

What is the difference between a subnet mask and a netmask?

Is there any logic in using two different names for determining host ID and net ID? For example, if you type print route in a Command Prompt you get things with netmask, but the IPv4 settings seems to use subnet mask. Is there any significant…
SpiXel
  • 969
  • 3
  • 10
  • 14
27
votes
7 answers

Why can a network address not be a valid host address?

So... I have studied for CCNA and such and been working with IP networking at the least the past 8 years or so. I have always seen and been told that the network address for a subnet is not a valid host address. Now first I will start by saying I…
Goblinlord
  • 555
  • 1
  • 4
  • 11