New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Predict second port #93
Comments
What second port? |
INFO:remi.server:Started websocket server 127.0.0.1:52652 INFO:remi.server:Started httpserver http://127.0.0.1:8081/ httpserver starts on 8081 every time. websocket server is random. On Tue, Dec 1, 2015 at 10:59 AM John Stowers notifications@github.com
|
Callbacks don't seem to work without forwarding that port. None of my On Tue, Dec 1, 2015 at 11:01 AM Thomas Tufts thomas.j.tufts@gmail.com
|
The websocket port is a private implementation detail. Explain again why
|
My firewall blocks all ports. I tunnel via SSH and forward ports 8081 and XXX so that I can connect with On Tue, Dec 1, 2015 at 11:23 AM John Stowers notifications@github.com
|
Supporting this use-case seems out of scope for REMI |
I understand that supporting it or modifying REMI to support it might be It seems simple enough to offer an optional constant port. -Tom On Tue, Dec 1, 2015 at 11:27 AM John Stowers notifications@github.com
|
We had an optional constant port previously but that breaks the On 1 December 2015 at 17:30, ttufts notifications@github.com wrote:
|
https://github.com/dddomodossola/remi/blob/master/remi/server.py#L729 On 1 December 2015 at 17:30, ttufts notifications@github.com wrote:
|
I too have a problem with the random generated ports on AWS. My REMI App Server has a private IP address behind AWS security rules. When I connect to my REMI App Server using its host name and public IP (again NATted to its private IP address), I am able to see the UI however the UI is unresponsive and does not update. When I inspect the network activity I see that the AWS instances private IP address is sent to the REMI client (running in the browser) with a random web socket port. Thinking that a SSH tunnel would resolve the issue, I created one for 8081. However as "ttufts" observes a random websocket port is also created and used to support the UI. If I start a browser session and then observe the browser activity, e.g. spy on the app and find the websocket port. I can open that second port up in my SSH tunnel and the UI works great over the Internet. I see two problems here.
Minor details to make REMI more deployable in a greater number of use cases. Great work so far on the project! |
Hello @rseward. This Issue should be already fixed but I forgot to update it. Here is already the possibility to specify the websocket port, and this will solve your problem. start(websocket_port=57000) |
You can also bind to the specific public ip by passing that to |
I'll close this now, but please copy your comment and reopen a new issue with a clearer description if the issue persists. |
@rseward now you can specify also the host name in the start call, for example: start(address='0.0.0.0', port=8081, websocket_port=57000, host_name='myhostname.net') |
IMO having both address and host_name doesn't make sense. The constructor On 12 April 2016 at 12:15, Davide notifications@github.com wrote:
|
It is the case where a machine is behind a router. The address have to be the local network address. Instead the host_name have to be for example a dns name or a remote ip. You can't specify a the public remote ip as address. |
Yes. The host_name and websocket_port options work great for me. E.g.
works exactly as I need it. |
I want to run my code on a remote server and be able to SSH and tunnel my ports for connecting to the GUI.
My current problem is that I can't predict what the second port will be. It seems to be randomly selecting a port, but I'm not sure how.
The text was updated successfully, but these errors were encountered: