如果您需要更实用的内容,请使用您的 IP 地址或 noip.com 等服务。然后最终正确配置路由器,以便传入连接将转发到运行服务器的计算机。
use your ip address or a service like noip.com if you need something more practical. Then eventually configure your router properly so incoming connection will be forwarded to the machine with the server running.
您正在访问 localhost,这意味着您的计算机上正在运行一个 Web 服务器。要从 Internet 访问它,您需要为您的机器分配一个公共 IP 地址。然后就可以访问http://:/。端口号一般为80。
You are accesing localhost, meaning you have a web server running on your machine. To access it from Internet, you need to assign a public IP address to your machine. Then you can access http://<public_ip>:<port>/. Port number is normally 80.
发布评论
评论(6)
有一些很好的免费服务可以让您做同样的事情。非常适合在开发/测试期间快速显示内容:
There are a couple of good free services that let you do the same. Ideal for showing something quickly during development/testing:
您进入路由器配置并将端口 80 转发到运行 Web 服务器的计算机的 LAN IP。
然后,您网络外部的任何人(但网络内部的您除外)都可以使用您的 WAN IP 地址 (whatismyipcom) 访问您的站点。
You go into your router configuration and forward port 80 to the LAN IP of the computer running the web server.
Then anyone outside your network (but not you inside the network) can access your site using your WAN IP address (whatismyipcom).
即使您没有提供足够的信息来正确回答这个问题,您最好的选择是 SSH 隧道 (或反向 SSH 隧道)。
您只需要内部或远程网络上的一台 SSH 服务器即可提供对本地计算机的访问。
您可以在 Windows 上使用 PUTTY(它有 GUI)来创建隧道。
Even though you didn't provide enough information to answer this question properly, your best shots are SSH tunnels (or reverse SSH tunnels).
You only need one SSH server on your internal or remote network to provide access to your local machine.
You can use PUTTY (it has a GUI) on Windows to create your tunnel.
如果您需要更实用的内容,请使用您的 IP 地址或 noip.com 等服务。然后最终正确配置路由器,以便传入连接将转发到运行服务器的计算机。
use your ip address or a service like noip.com if you need something more practical. Then eventually configure your router properly so incoming connection will be forwarded to the machine with the server running.
您正在访问
localhost
,这意味着您的计算机上正在运行一个 Web 服务器。要从 Internet 访问它,您需要为您的机器分配一个公共 IP 地址。然后就可以访问http://:/
。端口号一般为80。You are accesing
localhost
, meaning you have a web server running on your machine. To access it from Internet, you need to assign a public IP address to your machine. Then you can accesshttp://<public_ip>:<port>/
. Port number is normally 80.尝试使用您的 IP 地址,我认为您可以通过互联网访问它。
Try with your IP Address , I think you can access it by internet.