简体   繁体   中英

How to give access to localhost:8080 on network?

如何将我的计算机作为服务器,以便我在IDE上运行该应用程序,并通过他们的浏览器可以访问同一网络上的其他计算机?

You can't make "localhost" accessible, by definition. What you can do instead is have the server process listen on an external IP address (or all addresses) instead of just on the loopback address. We can provide a more specific answer if you'll tell us how you're launching the application server.

如果您的服务器本地IP例如是192.168.1.20并且您的Web服务器端口是8080,那么您可以通过在浏览器中提供IP:PORT来访问您的服务器,例如:192.168.1.20:8080/index.jsp

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM