Connect iPhone to locally installed web server (XAMPP) on a PC via WLAN
Dear all,
I think I want to do a simple thing: I am developing a web page that shall work with both PC/Mac (real computers) and iPhone; it switches the page content depending on the user agent (Safari on iPhone or "normal" PC).
Anyway - the point is: I want to watch my page both with PC and iPhone; since I don't have connection of my PC notebook (on which I develop this) to the internet right now (I write this post here with the iPhone...), I got the idea to connect the iPhone to the PC via WLAN and use the locally installed webserver XAMPP on the PC which I use anyway for my development, so that I could open my developments on Safari on the iPhone by typing "localhost" in the adress bar on the iPhone.
However, it isnt as simple - and first problem is to establish a WLAN connection between PC and iPhone - and I dont know if what I plan would work anyway.
So, my question: can anybody tell me if this works? Any tutorial on the web? I could not find anything useful among the tons of material about tethering iPhone and PC to use iPhones internet connection by the PC... I would be very grateful for a step-by-step guide for establishing the connection between iPhone and PC.
The data: I use win XP SP3, XAMPP 1.6.6a and iPhone first generation; I can't download any additional software - but Bonjour is installed (cant find the version now - at least 1.0.6).
Okay - thanks for any hints! With kind regards - and: Merry Christmas!
Björn
I think I want to do a simple thing: I am developing a web page that shall work with both PC/Mac (real computers) and iPhone; it switches the page content depending on the user agent (Safari on iPhone or "normal" PC).
Anyway - the point is: I want to watch my page both with PC and iPhone; since I don't have connection of my PC notebook (on which I develop this) to the internet right now (I write this post here with the iPhone...), I got the idea to connect the iPhone to the PC via WLAN and use the locally installed webserver XAMPP on the PC which I use anyway for my development, so that I could open my developments on Safari on the iPhone by typing "localhost" in the adress bar on the iPhone.
However, it isnt as simple - and first problem is to establish a WLAN connection between PC and iPhone - and I dont know if what I plan would work anyway.
So, my question: can anybody tell me if this works? Any tutorial on the web? I could not find anything useful among the tons of material about tethering iPhone and PC to use iPhones internet connection by the PC... I would be very grateful for a step-by-step guide for establishing the connection between iPhone and PC.
The data: I use win XP SP3, XAMPP 1.6.6a and iPhone first generation; I can't download any additional software - but Bonjour is installed (cant find the version now - at least 1.0.6).
Okay - thanks for any hints! With kind regards - and: Merry Christmas!
Björn
Mac mini 2GHz Core 2 Duo, Mac OS X (10.5.2)