Skip to content
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

Add support for workers running behind a NAT router #81

Open
gchlebus opened this issue Jan 21, 2020 · 2 comments
Open

Add support for workers running behind a NAT router #81

gchlebus opened this issue Jan 21, 2020 · 2 comments

Comments

@gchlebus
Copy link

The worker currently registers itself with the nameserver using its internal location, which causes problems (i.e., the worker is not accessible from outside) when the worker runs behind a NAT router. These scenario can happen when workers run within separate docker containers started without the --net=host option. After looking at the Pyro4 documentation [1], I think that the solution could be to add nathost and natport parameters to the Worker class, which would be passed to the Pyro4.core.Daemon object. This would ensure, that the worker process would register itself with the external address.

[1] https://pythonhosted.org/Pyro4/tipstricks.html#pyro-behind-a-nat-router-firewall

@totifra
Copy link

totifra commented May 4, 2020

Hey there. Is there any progress in this issue? I would also be quite interested to run an optimization within several docker containers without using the --net option.

@gchlebus
Copy link
Author

I added support for workers running behind a NAT router in this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants