Accessing localhost from iPhone (in same network)

前端 未结 3 2009
伪装坚强ぢ
伪装坚强ぢ 2021-01-11 16:08

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

相关标签:
3条回答
  • 2021-01-11 16:31

    Check to make sure your IP is correct for your host machine.

    Windows: Windows + R -> type "cmd"

    ipconfig
    

    *unix:

    ifconfig
    

    Usually 192.168.0.1 or 192.168.1.1 are allocated to your router, which is what you are seeing via your iPhone.

    0 讨论(0)
  • 2021-01-11 16:32

    192.168.1.1 sounds like it's your router's IP not your Mac's. Try running ifconfig in a terminal to find out your Mac's actual IP address. It's probably something like 192.168.1.2.

    0 讨论(0)
  • 2021-01-11 16:53

    Are you sure the IP of your computer is 192.168.1.1 ? It seems like 192.168.1.1 is your DSL router.

    In that case, maybe XAMPP is asking for password?

    Other reason may be that your router is not letting lan computers access each other...

    0 讨论(0)
提交回复
热议问题