Cannot access 127.0.0.1 on my Mac even though localhost works

Hi Team,

I am a software engineer and developing my service. It always works well, and I can test my service by the URL

http://localhost:5173/. But when I tried to access my service from my iphone, http://192.168.1.131:5173, 192.168.1.131 is my ip address, it does not work.

Seriousely, I cannot access http://127.0.0.1:5173/ from Chrome, Safari and curl. Same port, same http protocol, same time slot, but different result. And my firewall is inactive either.

Please help to check.

Thank you,

Gavin Xu




[Edited by Moderator]

MacBook Pro 16″, macOS 14.2

Posted on Jan 13, 2024 10:55 PM

Reply

Similar questions

There are no replies.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Cannot access 127.0.0.1 on my Mac even though localhost works

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.