0

I am a newbie in network engineering. Now, I want to know how a browser understands a subnet mask in IPv4. For example, 78.39.197.180 with 255.255.0.0 is a unique address, and 78.39.197.180 with 255.255.255.0 is a unique address, too. So, when i put the address in a browser, how can the browser understand which one of those is my need?

  • Did any answer help you? If so, you should accept the answer so that the question doesn't keep popping up forever, looking for an answer. Alternatively, you could provide and accept your own answer. – Ron Maupin Aug 15 '17 at 19:05
2

Those two addresses are the same, there's not distinction. Changing the netmask does not make it a different IP address, it just changes which range of addresses is considered to be the local network.

Also, browsers do nothing with netmasks, they only know IP addresses and DNS names. You can't enter a netmask in a browser.

  • Thanks for your answer. now imagine that we have 2 local network that connect with together. we have 2 computers in those networks that using as web server. one of them , has 192.168.1.10 (subnet mask : 255.255.255.0) and another has 192.168.1.10 (subnet mask : 255.255.0.0). when i put this IP address in browser , which one of them will be called ? – watermelon Jan 28 '17 at 16:07
  • 1
    That is a error condition. You cannot have two hosts with the same IP address. In that case, traffic will always go to the subnet with the longer mask, in this case, 255.255.255.0 – Ron Trunk Jan 28 '17 at 17:52
  • @watermelon - depends entirely on your router that is connecting those two networks, which is the only item in your setup that's paying attention to what is where. It will also likely be a very confused and likely unreliable router, as you've told it to route two networks with very similar IPs. In short, don't do this, take steps (even NAT) to make them different. – Radhil Jan 28 '17 at 17:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.