Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I have setup a laptop with iis and have a test website running on it. I have created an adhoc network between my laptop (running Windows 7) and my Ipad 2. On the laptop I can enter a url in firefox and it knows it is a local site, by entering details of this into the hosts file.

When I try to enter the url into the browser on the Ipad 2, I get a message of: Safari cannot open the page because it is not connected to the internet.

Any suggestions on how I can get this to work?

Many thanks.

share|improve this question
    
Can the iPad connect to the laptop at all? Do you rely on using a URL versus IP for host configuration/virtual hosting? –  jmlumpkin May 15 '11 at 13:36
    
You can't hit the web site by IP because IIS is not configured to route a request for a given IP to a given web site. Configuring IIS to do so would be the simplest solution. This then becomes an IIS question, not an OS X related question. –  Tricon May 17 '11 at 9:34

3 Answers 3

This isn't an Apple specific question, but the simplest way to do this is to use the IP address of the laptop. There are various ways of determining the IP address of the laptop. You may be able to find it by hovering your mouse over the wifi icon in the taskbar, or if not open a command window and run 'ipconfig'.

Once you have the ip address, you can browse to it from the iPad at the URL:

http://a.b.c.d/

where a.b.c.d is the IP address of the laptop.

You will have to ensure your Windows firewall is allowing access and ensure IIS is listening to this IP address - by default it listens to all IP addresses on the machine, so unless you changed it, you should be ok.

share|improve this answer

Try hostname instead of IP. And make sure that your webserver is allowing access from other IP as well instead of just 127.0.0.1/localhost

share|improve this answer

You need to find out what your server software is listening for. Is it just a hostname? an IP-address? Usually, you should be able to use the http://hostname.local address, and it should work over the ad-hock network.

A clever little network utility called Localghost should work with any ad-hoc network you create on the same machine as the server, by the by. If you have special hostname needs.

share|improve this answer
    
the server (laptop) is expecting a full url subdomain.domain.co.uk when I enter this into the ipad I get: Safari cannot open the page because it is not connected to the internet. –  McFry May 16 '11 at 16:42

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.