Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iPhone - access XAMPP server (localhost) on my mac in the same network

Tags:

iphone

xampp

I want to create an iPhone app which makes calls to a web service. For testing, I want to first create the API calls on my mac (server running XAMPP) and if it works fine there I want to port it to the actual server.

If my iPhone and mac are on the same network, can I access the web service using the IP address of my mac?

Thanks.

like image 764
lostInTransit Avatar asked Nov 21 '25 01:11

lostInTransit


2 Answers

Any time someone answers with "why not," ignore the post. This just takes up space and adds absolutely no value...their post imitating their life.

Anyway, I access my laptop localhost (WAMP stack) from my iPod Touch by entering the IP address of my laptop on my Touch location bar. There is some configuration that needs to happen for this to work. I found what I needed at:

http://www.frihost.com/forums/vt-88381.html

Good Luck!

like image 88
Randy Avatar answered Nov 23 '25 17:11

Randy


I can not speak about actual development, however I access intranet pages from a Ipod Touch all the time by either typing http ://ip or http://local_dns_name

As long as the iphone / ipod is on the network correctly (e.g. through standard wifi and not 3g/whatever) you should be able to access any and all local resources.

like image 25
Wil Avatar answered Nov 23 '25 17:11

Wil



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!