Safari unable to open Angular app served on a different port

36 Views Asked by At

I am facing an issue with Safari when trying to open my Angular app served on a different port. The Angular app is running successfully on my PC using ng serve --host 0.0.0.0 --port 4210. However, when I try to access it from Safari on my iPhone using the URL http://192.168.10.104:4210/, Safari reports that the server has stopped responding.

Details:

I have confirmed that the Angular development server is running. The firewall settings allow incoming connections on port 4210. The iPhone is connected to the same Wi-Fi network as the PC. I use WebStorm IDE.

Command used to start the Angular server:

ng serve --host 0.0.0.0 --port 4210

My IP on my PC is :

Ethernet adapter Ethernet 3:   IPv4 Address. . . . . . . . . . . : 192.168.56.1
Wireless LAN adapter Wi-Fi:    IPv4 Address. . . . . . . . . . . : 192.168.10.104

I want to live-preview my Angular app on my iPhone for the responsive design.

0

There are 0 best solutions below