Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to open localhost:8080 in Cloud9 IDE?

I am developing an app engine project (golang) in Cloud9 IDE. For testing in desktop i would go to localhost:8080 in my desktop browser.

In Cloud9, I tried https://workspace-username.c9.io with $PORT set as 8080, but somehow its not working for appengine project. But it is working for normal go web project though.

How do i test app engine application in Cloud9 IDE? or

How do i open http://localhost:8080 in Cloud9 IDE?

like image 211
vvincirey Avatar asked Sep 29 '22 23:09

vvincirey


1 Answers

Available ports on a hosted Cloud9 workspace

If you're developing a server application, please note that you need to listen to 0.0.0.0 ($IP) and 8080 ($PORT). Listening to this port will enable your app to be viewable at https://-.c9users.io

You can also bind to ports 8081, and 8082, which can be accessed by https://-.c9users.io:8081 and https://-.c9users.io:8082 respectively.

Please note that 8080, 8081, and 8082 are the only available ports on a hosted Cloud9 workspace.

How to connect to the process running on 'localhost' that is inside of cloud9 server

like image 70
xgqfrms Avatar answered Oct 07 '22 02:10

xgqfrms