python public ip with sockets (err:cannot assign requested addr)
问题 After allowing my raspberry pi to access port 9999 of my router socketname.bind(96.231.140.202,9999) in python gives me a cannot assign error To port forward I used: myfiosgateway.com/#/firewall/portforward (the same method worked fo my apache server) and I have verified that 96.231.140.202 is my pub ip 回答1: You cannot bind to your public IP. Your router is doing that. You instead want to bind to your private IP and port forward traffic destined to 9999 to your bound IP on your pi, this