0

I need to share the output of my GWT application with a colleague over the Internet. So i forwarded the ports 8080 for the Jetty server and 9999 for the code server. Now when my friend tries to access the url http://<my public ip address>:8080/myproject/show/mainpage?gwt.codesvr=<my public ip address>:9999 in his browser, the client loads up, but he gets the message "Plugin unable to connected to hosted mode server on..." Any way to fix this ?

Thank You

Kris
  • 1,403
  • 3
  • 17
  • 26

2 Answers2

1

Are you running also the Jetty server? I mean you need to run in debug mode your GWT project.

As i see now your college want to connect "in debug mode":

"?gwt.codesvr= [my public ip address] :9999"

1) You should start first to ping your IP, if it is ok you can go to step 2.

2) Then try to connect to your web application without jetty: http://[my public ip address]:8080/myproject/show/mainpage

3) Then if you guys want to debug like your college test and you follow the jetty server, you need to start jetty server GWT Dev Mode w/ o Jetty server, then in optimal situation your college can attach with his plugin to your jetty sever.

Good luck;)

czupe
  • 4,740
  • 7
  • 34
  • 52
  • Im running the hosted mode server, and it works fine on my machine with the url http://localhost:8080/myproject/show/mainpage?gwt.codesvr=127.0.0.1:9999. But my friend is unable to connect to the code server on port 9999. I have forwarded both the ports i.e 8080 and 9999 . Am i not already running in debug/development mode ? – Kris Feb 16 '12 at 15:07
  • first try it without debug mode ok? i mean with this URL: " http://yourip:8080/myproject/show/mainpage " If it is good, than you can try the debug mode version and in this cause you shold run a jetty server.... – czupe Feb 16 '12 at 15:11
  • Without debug mode, i.e. by directly visiting http://:8080/myproject/show/mainpage works for him. Its only when im running in development/debug mode is that he is getting plugin unable to connect to hosted mode server message in his browser – Kris Feb 16 '12 at 15:13
  • I didnt get the part where u say , u should run the Jetty Server. When GWT development mode window opens, and i get the url http://localhost:8080/myproject/show/mainpage?gwt.codesvr=127.0.0.1:9999, doesnt that mean the inbuilt jetty server is already running ? – Kris Feb 16 '12 at 15:17
  • Yes gwt debug mode also start the jetty server, you have right, than my solution cant help, i will delete it... Gl. Maybe plugin delete and install can help, but have no more tought about this... – czupe Feb 16 '12 at 15:23
0

Possible solution from another SO question:

In eclipse open your debug configuration and add the param -bindAddress 192.168.1.2 (replace the ip with the local ip address of your machine) to the arguments > program arguments. That's how we debug in virtual box.

Community
  • 1
  • 1
Marcelo
  • 4,580
  • 7
  • 29
  • 46