Failed to set up listener: SocketException: Cannot assign requested address when using hostname

No route to host indicates a networking problem: there currently isn’t a valid network route to communicate with the target IP address.

If the target IP in that message is as expected and your firewall rules are open, one likely cause is that you may be trying to connect to private IPs (for example, 10.* in one of your earlier output examples) from a public IP. Private IPs are only routable within the same local network or VPN.

If the destination IPs are definitely not private IPs, this may be a networking or firewall issue to follow up on with your ISP/hosting providers.

Regards,
Stennie

1 Like