Using public ip to access webserver pages when computer is connected via Android hot-spot wifi

509 views Asked by At

I know it might be unusual, but I would like to be able to access my personal website, hosted on my computer, even when the WiFi connection of the computer is my android phone's hot-spot. I can use the local ip without problem to access the website both on my phone and on the computer itself. But how can I access the website with a public ip? Both phone and computer share the same public ip.

When I am connected to my home WiFi, I know how to setup my router to make the website available publicly. What would be the equivalent for Android's hot-spot?

1

There are 1 answers

14
greenapps On

Your phone will have an ip. You are not mentioning a mobile connection but i suppose the phone has mobile connection when it acts as a hotspot.

It makes little sense to call that a public ip as the mobile provider will block incoming connections. So you cannot run servers on your phone or on your pc connected with the hotspot.

Acting as hotspot or not, a server running on your phone can never be reached from the outside world using a mobile connection.