When I connect to a WLAN, I can get a result as following through ipconfig:
Ethernet adapter Ethernet:
IPv4 address . . . . . . . . . . . . : 172.19.83.237
Subnet Mask . . . . . . . . . . . . : 255.255.255.0
Wireless LAN adapter WLAN:
IPv4 address . . . . . . . . . . . . : 10.30.16.37
Subnet Mask . . . . . . . . . . . . : 255.255.0.0
But when I use a python script to check the host IP of my computer, the result is different. Codes:
import socket
host = socket.gethostname()
print("host: " + str(host))
host_ip = socket.gethostbyname(host)
print("host ip: " + str(host_ip))
Any help will be appreciated. QuestDiagnostics