If I were to connect my iphone to my apache server through an ad hoc connection, how would I access my apache server? What would the URL be for me to access my server? My guess would be that localhost should do it however, I am not aware of networking protocols and how they work.
Share
Your best bet would most likely be to:
1) connect both devices to a single wireless network/router
2) determine your computer’s ip address via ifconfig, or ipconfig (for windows)
3) then type http://your_ip_address:your_servers_port/ in your mobile browser
for example http://192.168.1.1:8888/
Also this is not considered Ad-Hoc, but this is a simple, easy to setup, and portable solution.