title: Keep on getting 127.0.0.1 as my IP address instead of 176.191.77.130 with Python socket
body: <p>So I've been trying to get my computer's IP address with Python socket programming. Here is my code:</p>
  <pre><code>import socket
  print(socket.gethostbyname(socket.gethostname())
  </code></pre>
  <p>However, the output is always '127.0.0.1' instead of the actual IP, which is 176.191.77.130</p>
  <p>For your knowledge, I have MacOS. What can be the problem here, guys?</p>
  <p>Thanks in advance!</p>