How to specify the use of LAN network?

37 Views Asked by At

server.py

server = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
server.bind(("0.0.0.0", 1314))

I used the IP address 0.0.0.0 to use the local IP, but it seems to be connecting to the external IP address 26.238... How can I control it to prevent it from accessing the external network?

I attempted to use 192.168.255.255, but it doesn't seem to work. -w-

0

There are 0 best solutions below