How to see GWT Jetty devmode from another machine?

2019-05-21 09:24发布

问题:

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


标签: java gwt Jetty