Access Apache's Virtual Host from iPhone?

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
kind
Forum Newbie
Posts: 2
Joined: Tue May 25, 2010 4:02 am

Access Apache's Virtual Host from iPhone?

Post 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?!
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Re: Access Apache's Virtual Host from iPhone?

Post 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).
kind
Forum Newbie
Posts: 2
Joined: Tue May 25, 2010 4:02 am

Re: Access Apache's Virtual Host from iPhone?

Post 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.
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Re: Access Apache's Virtual Host from iPhone?

Post 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?
mikosiko
Forum Regular
Posts: 757
Joined: Wed Jan 13, 2010 7:22 pm

Re: Access Apache's Virtual Host from iPhone?

Post by mikosiko »

do you have any kind of firewall installed in your Ipod Touch?
Post Reply