'Cannot access local server using localhost but works via IP

I'm viewing a locally hosted website (React ). I can view it via IP http://192.168.1.100:3000/ (192.168.1.100 is my local IP address), but not via http://localhost:3000/ or http://127.0.0.1:3000/

I can access my locally hosted content at http://localhost:5000/ from the node express service, but I cannot access my serverless offline from http://localhost:5050/.

I haven't had this trouble before, it is not working since last week. Do you have any idea what needs to change?



Solution 1:[1]

The problem is the ITS do some updates, and it caused this issue. If you have the same issue, please check any internal policy updates. Some company has some software that may cause the issue.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1