How to see GWT Jetty devmode from another machine?

拈花ヽ惹草 提交于 2019-12-12 10:08:55

问题


When I fire up Jetty, it gives me the standard URL: http://127.0.0.1:8888/index.jsp?gwt.codesvr=127.0.0.1:9997

Great. I can see this URL from my machine. However, I cannot access this URL from other machine, and replacing the 127.0.0.1 with my actual IP address does not work either.

Does anyone know how I can make my server "sharable" so that other people in my network can hit off my machine as well?


回答1:


Try to start the server with -bindAddress option using your external IP. See this.




回答2:


Just follow the following Steps,

  1. Right Click on Project
  2. Go to run as ---- > Run Configurations
  3. Select Arguments and add -bindAddress 0.0.0.0 to Program Arguments
  4. Click On Apply & Run


来源:https://stackoverflow.com/questions/9386791/how-to-see-gwt-jetty-devmode-from-another-machine

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!