Python - socket.error: Cannot assign requested address

32,916

By checking errno.h, errno 99 is EADDRNOTAVAIL. The man page bind(2) says:

EADDRNOTAVAIL A nonexistent interface was requested or the requested address was not local.

It is often caused by a wrong IP address. You can use the command ifconfig to check whether your machine has this IP address.

Share:
32,916
Admin
Author by

Admin

Updated on July 16, 2020

Comments