socket.error:[errno 99] cannot assign requested address and namespace in python

后端 未结 4 569
忘掉有多难
忘掉有多难 2020-11-29 00:31

My server software says errno99: cannot assign requested address while using an ip address other than 127.0.0.1 for binding.

But if the IP

4条回答
  •  死守一世寂寞
    2020-11-29 00:56

    when you bind localhost or 127.0.0.1, it means you can only connect to your service from local.

    you cannot bind 10.0.0.1 because it not belong to you, you can only bind ip owned by your computer

    you can bind 0.0.0.0 because it means all ip on your computer, so any ip can connect to your service if they can connect to any of your ip

提交回复
热议问题