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.
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
126.96.36.199 this as a public IP address and in my router it says
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://188.8.131.52/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
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.