Viewing localhost website from mobile device

后端 未结 11 1769
南方客
南方客 2020-11-27 11:23

I have an ASP.Net website hosted on my Win8\'s localhost, the site seems to be running as expected on the desktop, but now i also want to test t

11条回答
  •  星月不相逢
    2020-11-27 11:50

    To view localhost website from mobile device you have to follow thoses steps :

    • In your computer, you have to retrieve your IP address (Run > cmd > ipconfig)
    • If your localhost use a specific port (like localhost:12345 ), you have to open the port on your computer (Control Panel > System and Security > Firewall > Advanced settings and add Inbound rule)
    • Finally, you can access to your website from mobile device by navigate to : http://192.168.X.X:12345/

    Hope it helps

提交回复
热议问题