I want to test my iPhone web Application developed in localhost (XAMPP) in my iPhone. My system IP is 192.168.1.1 in the local network.
When I visit http://192.168.1.1:80 in the browser, it says “The server 192.168.1.1:80 at DSL Router requires a username and password”.
I thought it must be my XAMPP username/password but it seems it is not and it shows a 404 error.
Both my system and my iPhone are in the same network. So where am I doing it wrong?
Check to make sure your IP is correct for your host machine.
Windows: Windows + R
->type “cmd“*unix:
Usually 192.168.0.1 or 192.168.1.1 are allocated to your router, which is what you are seeing via your iPhone.