Viewing localhost website from mobile device

后端 未结 11 1737
南方客
南方客 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条回答
  •  -上瘾入骨i
    2020-11-27 11:56

    A very simple way.

    1. Go to CMD and type the following without '$' and choose a name as your HotspotName and a password as your HotspotPassword.

      $ netsh wlan set hostednetwork mode=HotspotName key=HotspotPassword

      $ netsh wlan start hostednetwork

    2. Connect your phone to the WiFi and explore its network info, get Gateway address it's kinda like IP address.

    3. Enter the Gateway address into Chrome URL bar and you're good

提交回复
热议问题