Same Public IPs is possible?

4

1

As I understand two computers can't have the same public (external) IP address. Except for if those two computers are connected via the same router, then they can have (share) the same public IP address and have different private (local) IP addresses.

The situation

My friend and I are using a Internet service provider "X". We both have different usernames and passwords (different connections), but ISP is common between us. Yet we have the same public IP address! How is this possible? When we both Google "Whats my ip" we're getting 112.133.229.29 this as a public IP address and in my router it says 10.1.102.93.

And

I've Installed an Apache webserver on my PC. I know an Apache server can be accessed by the public IP of my computer. But in my case I do not have a unique public IP address. So it is impossible. No one can access my PC with this public IP http://112.133.229.29/index.html

My friend (who using the same ISP) can access my PC by this address: http://10.1.102.93/index.html, and his router's IP is 10.1.101.29.

Do we have some common ISP DNS?

If another friend is trying to access my pc with Y Internet Service Provider using this link http://10.1.102.93/index.html he is not able to access it.

How is my ISP doing this? My requests to any server is pinned with my public IP, and then the server responds to the request based on the Public IP. But we both have the same public IPs.

Sathish Kumar

Posted 2016-03-26T11:25:54.673

Reputation: 155

18Carrier Grade NAT. – DavidPostill – 2016-03-26T11:29:21.043

can you summarize please? @DavidPostill – Sathish Kumar – 2016-03-26T11:33:29.710

7Search for Carrier Grade NAT – DavidPostill – 2016-03-26T11:34:53.340

by the way... What ISP and country is this? – Iñigo InThe Cloud – 2016-03-28T01:50:39.127

ISP - RailWire, Country India – Sathish Kumar – 2016-03-28T09:58:48.470

Answers

16

Well, as DavidPostill said 26 mins ago, your ISP is using NAT on their routers before enrouting your traffic to the internet.

This means that basically, you and other clients inside your ISP are in a big Metropolitan Area Network (MAN), The same way your home router is creating a Local Area Network (LAN) but in a bigger scale.

Why would your ISP do this?

Well, the answer is simple; 1) they want to,2) or need to use a lower amount of public IPv4's, probably because they have more customers than public IPv4.

As you may know, the pool of free IPv4 exhausted a couple of years ago. Carriers that are growing can not get new IPv4 subnets unless they buy them from other IPSs closing somewhere else.

The solution is to use IPv6, but obviously requires changing routers, changing configurations, investing money and time, so doing a huge MAN is just easier and faster for them.

You can call them and ask about getting a dedicated IPv4, but probably, they will require an extra payment from your part to have a dedicated public IPv4 address.

Iñigo InThe Cloud

Posted 2016-03-26T11:25:54.673

Reputation: 284

It could also be a web proxy. – Lightness Races with Monica – 2016-03-26T18:58:29.657

@BarryTheHatchet If it was a web proxy, then the friend of the OP cannot connect using the internal ip address – Ferrybig – 2016-03-26T20:09:27.527

@Ferrybig: I suppose. It's not impossible, but you're most likely right because any other network layout would be kinda silly. – Lightness Races with Monica – 2016-03-26T20:11:49.850

Is there a chance I could get a port forward from my ISP? – John Dvorak – 2016-03-26T21:06:21.197

1@JanDvorak You'd have to ask them, but I doubt it. Leads to conflicts if someone else on your MAN wants the same port forwarded. The only option is probably a dedicated public IP. – None – 2016-03-26T21:42:37.763