Unable to connect to localhost from iPhone

Problems with the Mac OS X version of XAMPP, questions, comments, and anything related.

Unable to connect to localhost from iPhone

Postby dreamstepxd » 01. June 2019 11:34

Hey guys,

I've been trying for 2 hours to connect to my web-project from iPhone. I'm using XAMPP and on macbook pro (MBP) I'm connecting via http://localhost:8080/foldername.

That being said, I needed to check how the website looks on iphone. I tried running ifconfig in terminal and it provided me with the next local ip.
192.168.64.1. My XAMPP ip is: 192.168.64.2.

I tried connecting to it on iphone using all kinds of ip's. For now, I tried:
192.168.64.1 and 192.168.64.1:8080, 192.168.64.2 and 192.168.64.2:8080.

Nothing seemed to be working. The only thing I noticed was that it loaded for quite a long time before stopping.
Any ideas for fixes?

Best regards,
dreamstepxd
 
Posts: 1
Joined: 01. June 2019 11:27
XAMPP version: 7.3.5
Operating System: macOS Mojave 10.14.3

Re: Unable to connect to localhost from iPhone

Postby Nobbie » 02. June 2019 17:52

You have to connect your iPhone via WLAN to your router - did you do so?

And: if you have a Xampp VM Version running (in a virtual machine), none of the IPs are working, as Xampp is running in a virtual machine. I dont know if there is portforwarding in Xampp for the VirtualMachine, but without it cannot work. What kind of Xampp do you run, native OSX oder Xampp VM?

FInally, you might have a firewall problem. I dont know IOS, neithe OSX if there is an active firewall preventing requests on Port 8080?!
Nobbie
 
Posts: 13182
Joined: 09. March 2008 13:04


Return to XAMPP for macOS

Who is online

Users browsing this forum: No registered users and 6 guests