Python socket bind to any IP?

后端 未结 3 1171
Happy的楠姐
Happy的楠姐 2020-12-03 06:49

I have a small one sided message sender that works while I specify the IP to connect to in code, however, I am having trouble allowing the socket to accept connections from

3条回答
  •  离开以前
    2020-12-03 07:36

    Binding to 0.0.0.0 will allow it to accept connections from any IPv4 address that can route to it.

提交回复
热议问题