I get a 127.0.1.1 address when I use the socket library.
I'd like to get my router assigned IP address which is 192.168.0.10. I can find this IP running ifconfig on my wifi adapter which is inconsistently named between my PC and my laptop so using subprocess is not the most efficient way to do this.