Skip to content

Unable to start with custom url as endpoint #1098

Description

@padraic-padraic

Hello,

I am trying to setup an OPC-UA server and I'm not quite clear on the behaviour of Server.set_endpoint. If I try to use anything other than 0.0.0.0, I get an error from asyncio that it cannot bind to the address. For example, using localhost gives

server.set_endpoint(`opc.tcp://localhost:4840`) .....
OSError: [Errno 99] error while attempting to bind on address ('::1', 4840, 0, 0): cannot assign requested address

And a similar error, with the public IPv4 addres substituted for ::1, if using the server IP.

Am I not using this correctly?

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