A
A
Alexander2019-01-30 12:11:28
linux
Alexander, 2019-01-30 12:11:28

Docker "No route to host" what is the problem?

socket connection:

import socket
mysocket = socket.socket(socket.AF_INET,socket.SOCK_STREAM)
host = '0.tcp.ngrok.io'
port = 11111
mysocket.connect((host, port)) #connecting to host

Error:
[Errno 113] No route to host
I tried everything, added rule for firewall but didn't help. You can't disable the firewall because gitlab-runner won't work.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
ky0, 2019-01-30
@ky0

The error has to do with routing, not firewall. Do you have a route to this host or a default gateway capable of sending packets to the right place?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question