ios - How do I get my iphone to connect to local Xampp server on my mac while testing an xcode app -


i doing ray wenderlich tutorial how make app "instagram". it's first time setting database. using xampp , hosting on mac.

i can app run xcode simulator , can log in , works server. when run iphone device runs app when go login through app says "could not connect server".

what missing? think permissions set etc... again i'm totally new using database. seems though if simulator can phone should able to. it's not provisioning problem, profile valid , wouldn't run on app if wasn't. cant database device.

any awesome!

if app isn't able connect server, there might issue server address.

when running on simulator, you're still on mac, http://localhost/database_alias enough. when running on different device, no longer true.

to keep things simple, should make sure iphone connected same network mac , replace localhost either mac local ip or bonjour address, instance: http://your_mac_name.local/database_alias.

to find out bonjour address, open system settings , find machine name under sharing. example, if called "herbie macbook", address "herbie-macbook.local".


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -