Quantcast
Channel: Getting 127.0.1.1 instead of 192.168.1.* ip ubuntu python - Stack Overflow
Viewing all articles
Browse latest Browse all 7

Answer by Remy for Getting 127.0.1.1 instead of 192.168.1.* ip ubuntu python

$
0
0

This solution works for me on Windows. If you're using Linux you could try this line of code instead:

IPAddr = socket.gethostbyname(socket.getfqdn())

Viewing all articles
Browse latest Browse all 7

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>