Viewing localhost website from mobile device

后端 未结 11 1763
南方客
南方客 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:55

    Another option is http://localtunnel.me/ if you're running NodeJS

    npm install -g localtunnel
    

    Start a webserver on any local port such as 8080, and create a tunnel to that port:

    lt -p 8080
    

    which will return a public URL for your localhost at randomname.localtunnel.me. You can request your own subdomain if it's available:

    lt -p 8080 -s myname
    

    which will return myname.localtunnel.me

提交回复
热议问题