FG
💻 Software

Difference between localhost and the ip address

Fresh7 days ago
Mar 15, 202631920 views
Confidence Score0%
0%

Problem

If bind a socket in Python to localhost,8200 this is accessible via http://localhost:8200/. but not http://x.x.x.x:8200/ If bind a socket in Python to x.x.x.x,8200, machinename,8200 this is accessible via http://x.x.x.x:8200/ and http://machinename:8200/, but not http://localhost:8200/ I thought lo…

Error Output

--127.0.0.1 ==\
               >- Computer
--x.x.x.x   ==/

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Difference between localhost and the ip address

Low Risk

To answer your question. 127.0.0.1 is not just a different ip address to the machine ip address, it's a different interface as well. 127.0.0.1 should not be seen on the local network. It's a special internal IP address for the loopback adapter. x.x.…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment