问题
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,
- Right Click on Project
- Go to run as ---- > Run Configurations
- Select Arguments and add -bindAddress 0.0.0.0 to Program Arguments
- Click On Apply & Run
来源:https://stackoverflow.com/questions/9386791/how-to-see-gwt-jetty-devmode-from-another-machine