Closed thevickypedia closed 2 years ago
removed: local_ip = socket.gethostbyname(socket.gethostname())
local_ip = socket.gethostbyname(socket.gethostname())
inserted:
s = socket(AF_INET, SOCK_DGRAM) s.connect(("8.8.8.8", 80)) local_ip = s.getsockname()[0]
removed:
local_ip = socket.gethostbyname(socket.gethostname())
inserted: