Access Mac localhost from iPhone

Asked 2 years ago, Updated 2 years ago, 97 views

I would like to debug on the actual machine with iOS application development.
The server side is created locally with MAMP and is trying to access the localhost on the Mac from the iPhone.
Use the local hostname of the Mac with reference to the URL below.
http://qiita.com/shymst/items/4517a9b904c2c7f908ed

However, even if you access it,

"Not Found
The requested URL /was not found on this server"

will be displayed as .
I can see MAMP's browser icon itself, so I wonder if I can access it itself.I can't tell from here
What should I do? Thank you.

ios mamp

2022-09-29 21:56

1 Answers

Not Found The requested URL/was not found on this server should be returned by apache's server, and access itself is possible if the icon is displayed.

To verify MAMP operation, create info.php in the Application >htdocs directory.
The file contains the following code:

<?php phpinfo();

You can view PHP information by accessing http://**.local/info.php.


2022-09-29 21:56

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.