Page 1 of 1

Access Apache's Virtual Host from iPhone?

Posted: Tue May 25, 2010 4:16 am
by kind
Hey guys!
OK, quick question! I've got an Apache server, and it works on my local network, now I wanna browse it on my iPod Touch that is connected to my computer via ad-hoc, I can't!! What do I do?! :D

Little details:
Apache is configured to listen to all the IP Addresses on port :2222, (I've checked others like 80 and such)
If I connect other computers to my computer via network cable, i can just type in the server's IP Address:2222 and the site will show up.
On the iPod, it simply times out, tried on both miniOpera and Safari, didn't work! Forced it to use a static IP Address, didn't work, tried DHCP Dynamic IP Address, nothing!
Apache runs on Windows Vista.
I thing there is a problem with my DNS or Default Gateway settings. I don't know how to fix it :D
Any ideas?!

Re: Access Apache's Virtual Host from iPhone?

Posted: Tue May 25, 2010 8:01 am
by Weirdan
If I connect other computers to my computer via network cable, i can just type in the server's IP Address:2222 and the site will show up.
Adhoc connection has different ip, so you should be connecting to that from your iPod. Use 'ipconfig /all' from cmd.exe command line to determine what ip adhoc interface is assigned. To be able to connect to ethernet ip from iPod you need to convince your windows server to act as a router (this can be done, for example, using ICS).

Re: Access Apache's Virtual Host from iPhone?

Posted: Tue May 25, 2010 1:28 pm
by kind
Weirdan wrote:Adhoc connection has different ip, so you should be connecting to that from your iPod. Use 'ipconfig /all' from cmd.exe command line to determine what ip adhoc interface is assigned. To be able to connect to ethernet ip from iPod you need to convince your windows server to act as a router (this can be done, for example, using ICS).
I tried all the IP addresses, still got nothing. I even set the ip addresses manually, again didn't work!
I kind of had the same problem when i was trying to use ICS to make my laptop act as a wifi hotspot to connect the iTouch to the internet. I worked it around by some dns configurations, then i tried to use the same connection to send a page request from iTouch to Apache, but it timed out.

Re: Access Apache's Virtual Host from iPhone?

Posted: Tue May 25, 2010 2:07 pm
by Weirdan
well, it's hard to diagnose the problem without accessing the devices directly... can you post the following?:
  1. output of 'ipconfig /all' from your vista computer
  2. output of 'route print' from your vista computer
  3. whether ICS is enabled for the wireless connection
  4. 'traceroute 8.8.8.8' and 'ping apache_ip' from the iPod (you would need some external tools for this though)
  5. apache's config
  6. contents of apache's error_log
Have you tried starting (or restarting) Apache after the connection is set up?

Re: Access Apache's Virtual Host from iPhone?

Posted: Tue May 25, 2010 2:22 pm
by mikosiko
do you have any kind of firewall installed in your Ipod Touch?