Skip to content

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

@random-developer

Description

@random-developer

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions