[英]localhost:8080/lio/ works great in my apachtomcat. but when i put <my ip>:8080/lio/ i get error
localhost:8080/lio/
works great in my apache tomcat, but when I use <my ip>106.5x.xx.xx:8080/lio/
I get this error: localhost:8080/lio/
在我的Apache Tomcat中运行良好,但是当我使用<my ip>106.5x.xx.xx:8080/lio/
此错误:
The connection has timed out
The server at 106.5x.xx.xx is taking too long to respond.
The site could be temporarily unavailable or too busy. Try again in a few moments.
If you are unable to load any pages, check your computer's network connection.
If your computer or network is protected by a firewall or proxy, make sure that Firefox is permitted to access the Web.
In the comments you said you used whatsmyip.com for your IP adress. 在评论中,您说过您使用whatsmyip.com来获取IP地址。 That is your router public IP adress and not from your PC. 那是您的路由器公共IP地址,而不是您的PC。 To get the IP from your PC do following 要从您的PC获取IP,请执行以下操作
on Windows: 在Windows上:
ipconfig
on Linux(needs root privileges): 在Linux上(需要root特权):
ifconfig
Of course you can only access your tomcat from your local network this way. 当然,您只能通过这种方式从本地网络访问您的tomcat。 If you want to be able to access your PC from the internet you have to set up port-forwarding on your router if it is supported. 如果您希望能够从互联网访问PC,则必须在路由器上设置端口转发(如果支持)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.