Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Websocket port on google managed vm

I have tried to use managed vm to run an web socket server over port 3000 but i can only connect to it via the ip of the instance, and not by my own domain or "appspot" domain.

When i access the app on port 80 i get the right response that the app sends out on port 8080.

my app.yaml:

network:
  forwarded_ports:
  - 3000

handlers: 
- url: /.*
  script: server.js

I also enabled the port on the firewall to 0.0.0.0/0.

How can i fix this?

like image 686
Dor Shay Avatar asked Oct 20 '22 10:10

Dor Shay


1 Answers

This is currently expected behaviour of the appspot and custom domains front-end servers. Unfortunately, IP-of-instance is what you'll need for now, although I highly recommend you to star the relevant public issue tracker feature request thread, so that it gets higher priority and accelerates the appearance of a solution from the pipeline.

like image 54
Nick Avatar answered Oct 21 '22 23:10

Nick