Mousa
Mousa

Reputation: 3036

Using python code on a local server on Mac OS X, What is the simplest way?

I've worked on a python project for GoogleAppEngine and I'm testing it locally using the GoogleAppLauncher and every thing is good till now. But lately I needed to test it on my iPad so I need to enable web sharing on my Mac book and use the local Apache server which I couldn't figure out how, so could please help me with any tutorial or any suggestions to accomplish this. And to clarify more I've the following url: http://localhost:8095/?title=XYZ which gets me some results about the given title when it gets called locally if the associated python application is run using GoogleApplicationLauncher I need to use this URL on my iPad to get me the same results by sharing the web on my Mac book.

Sorry for the poor description, but I couldn't make more clear. Any help would be greatly appreciated, and many thanks in advance.

Upvotes: 0

Views: 467

Answers (2)

aschmid00
aschmid00

Reputation: 7158

why aren't you accessing the app from the the devices local ip address? something like: http://192.168.0.3:8095

Upvotes: 0

Jakub Roztocil
Jakub Roztocil

Reputation: 16252

When you go to Launch Settings of your app and insert --address=0.0.0.0 into the Extra Flags field, you should then be able to access the app from your iPad (0.0.0.0 stands for "any interface"). Just make sure that that your firewall isn't blocking the connection.

Upvotes: 1

Related Questions