Home > Software engineering >  Mac Localhost I cannot access from my phone
Mac Localhost I cannot access from my phone

Time:10-29

Hi everyone I try to access my localhost on my iphone or android phone I have the 2 I followed several tutorials, without success I thought I really did everything before asking for help here. here are some details: My config: Mac os big on Ethernet connection not wifi (maybe that's the problem) is that I already did, I type my ip in the browser of my phone (Setting -> shared). ifconfig sa did not work. thanks in advance.

CodePudding user response:

Try this:-

these are the steps to open localhost:3000 in your phone.

  1. Make sure your iPhone and mac are on the same WIFI.

  2. Click the WIFI button in the top-right corner of your screen. Then select Network Preferences.

2.Next, select your network.

  1. You'll find your IP address there. See the image below for more info. IP address

  2. Now, in your iPhone, open up http://<YOUR MAC'S IP ADDRESS>:3000 (Substitute <YOUR MAC'S IP ADDRESS> WITH THE IP address you found earlier. Replace :3000 with the number after localhost. If there are no numbers, use :80 as the number.)

If you cannot find your IP address in this method, try the methods here.

CodePudding user response:

thanks but it still doesn't work my mac's ip

I use an ethernet cable it may be for that

  • Related