简体   繁体   English

localhost:8080 / lio /在我的apachtomcat中效果很好。 但是当我放 <my ip> :8080 / lio /我收到错误

[英]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.

相关问题 当我通过tomcat启动我的应用程序时,为什么仍然得到“ http:// localhost:8080”? - Why I still get “http://localhost:8080” when I start my app by tomcat? 我已经安装了Apache Tomcat 7,并且在浏览器中转到http:// localhost:8080时,看到以下错误:HTTP状态500 - I have installed Apache Tomcat 7 and when I goto http://localhost:8080 in my browser, I see the following error : HTTP Status 500 我的 tomcat 正在运行,但无法连接到 http://localhost:8080 - My tomcat is running but I can't connect to http://localhost:8080 为什么我的网址localhost:8080 ///// ProjectCtxt / mvc / template有效? - Why does my url localhost:8080////ProjectCtxt/mvc/template works? 我可以确定我的星巴克客户看不到我在localhost:8080上运行的Java Web应用程序吗? - Can I be sure my Java web app running on localhost:8080 is invisible from my fellow Starbucks customers? 我可以从WAN访问在localhost:8080上运行的应用程序吗? - Can I access my application running on localhost:8080 from WAN..? 如何直接在 localhost:8080 中打开我的 web 应用程序而不是 tomcat 主页 - How can I open my web application in localhost:8080 directly instead of tomcat home page 如何在 Jetty 的 http://localhost:8080/test/ 中去掉多余的 /? - How to I get rid of extra / in http://localhost:8080/test/ in Jetty? 如何避免 localhost:8080 上的白标错误(404)? - How do I avoid the white label error(404) on localhost:8080? 只有我的 http://localhost:8080/ 映射有效,但我的映射中的 rest 在我的 Controller class 不 - Only my http://localhost:8080/ mapping works, but the rest of my Mappings in my Controller class do not
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM