PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Monday, February 14, 2022

[FIXED] Accessing Localhost on iPhone using MAMP Pro

 February 14, 2022     apache, iphone, mamp, mysql, php     No comments   

Issue

I have scratched my Head for an hour on this. All Tutorials are outdated, and do not work for me. Even other answers on Stackoverflow are not helpful.

I have an iPhone, iPad, Mac Mini, and a Macbook Pro. All my development is on Macbook pro, using MAMP Pro. I use custom host names.

In system Preferences > Network. My Machines IP Address is 10.0.0.4. So, I am typing 10.0.0.4:80 in iPhone's Safari. I have tried a few different combinations, but none of them seem to work.

But, I am unable to access sites on Macbook's localhost, via my iPhone. This is important for me to speed up development.

Here are the settings in my Mamp.

enter image description here

enter image description here

If anyone could explain What needs to be done. I shall be Greatful.


Solution

That should work. Same setup here and it works.

What do you see on your phone when accessing the IP?

When I check your Screenshots, it seems that MAMP isn't running.
Sure your MAMP is running? :-)
If so, sure your phone is on the same subnet?
Post both IPs. Is there a firewall between?



Answered By - avarx
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing