CopterExpress / clever-show

Software for making the drone show with 🍀
GNU General Public License v3.0
76 stars 42 forks source link

Broken binding with broadcast ip #11

Closed goldarte closed 5 years ago

goldarte commented 5 years ago

I get next messages when trying to connect to server with wrong ip:

Recieved broadcast message server_ip 1 9 2 . 1 6 8 . 1 . 1 0 4 from ('192.168.1.104', 47315) Binding to new IP: ('192.168.1.104', 47315) Waiting for connection, attempt 19 Waiting for connection: [Errno 111] Connection refused Too many attempts. Trying to get new server IP Recieved broadcast message server_ip 1 9 2 . 1 6 8 . 1 . 1 0 4 from ('192.168.1.104', 47315) Binding to new IP: ('192.168.1.104', 47315) Waiting for connection, attempt 20 Waiting for connection: [Errno 111] Connection refused Too many attempts. Trying to get new server IP

Expected reaction is to bind with new ip, but there is an error in the code.

goldarte commented 5 years ago

After broadcasting in json format, it's broken again:

Waiting for connection, attempt 9 Waiting for connection, can not connect: [Errno 113] No route to host Too many attempts. Trying to get new server IP Received broadcast message {"server_ip ": "port: 25000 host: 192.168.1.104"} from ('192.168.1.104', 52669) Received broadcast message {"server_ip ": "port: 25000 host: 192.168.1.104"} from ('192.168.1.104', 52669)

Client stucks in the loop.