These are the API/web UI addresses/ports, they have nothing to do with connections.
Connected to self is not in itself a problem, that usually happens if you have two devices listening on the same port behind a NAT.
If you get no connection, not even relay, you probably have a problem with firewall or docker networking. If you only get a relay connection, you need to either make sure local discovery (broad/multicasts) work or setup port forwarding (or enable upnp) on your router.