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

nameserver reports the wrong host for remote clients of local services #568

Open
random-developer opened this issue Dec 19, 2024 · 0 comments

Comments

@random-developer
Copy link

I've got a nameserver running on host A, and also a service running on the same host is registering itself with:

server = ThreadedServer(MyService, registrar=registrar)

That is, it's taking the default hostname, ":param hostname: the host to bind to. By default, the 'wildcard address' is used to listen on all interfaces."

On host B I am running a client; this client connects to the nameserver of host A to find MyService. It's given the correct port however it's given '127.0.0.1' as the host -- which is obviously wrong when dealing with cross-machine traffic. If I programmatically replace that bad host with the same hostname I used to perform the lookup in the first place I can talk to the service, but I shouldn't need to do that in the client should I?

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

1 participant