Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

iPad connect to localhost?

Is it possible to use the Safari browser on the iPad (or other browsers available in the app store) to connect to the localhost of a computer?

Windows Vista

Posted on Jul 28, 2010 11:06 AM

Reply
16 replies

Jul 28, 2010 1:02 PM in response to A.Lwin

Hi, I just did a quick evaluation on that topic…

1. I prefer App with a Light version, so you can try before you buy!
2. I believe Apps over 10$ are overpaid!

So with that in mind I came to the conclusion that "Mocha VNC Lite" or the full version (about 6$) are just perfect.

It took me less than a minute to establish a connection to my Mac without some manual reading, just out of my intuition (go to "Sharing" in the "System preferences", enable "Remote Management", click on "Computer Settings" and set a Password. In Mocha enter the IP and the Password - Thats It)

The webpage of the product is also nice and strait forward.

More you can find here:
http://discussions.apple.com/message.jspa?messageID=11934046#11934046

enjoy you magic machine

Jul 29, 2010 12:11 AM in response to lllaass

Its not for remote desktop connections.

Here is my setup, I have a laptop running IIS7 on Vista Ultimate for my work. With this I can send to other colleagues, through our LAN, a link for them to preview my work (e.g. http://mycomputername or computer's IP:port/path...html). When I tried to enter the same link on my iPad's safari browser it doesn't seem to work, telling me server not found.

My guess is either I'm doing something wrong or iPad's safari doesn't have everything like a full browser.

Jul 29, 2010 5:15 AM in response to apple4ever

apple4ever wrote:
iPad has no Java, maybe thats the problem…


This question has nothing to do with Java.

To the OP:

It should be possible for the iPad's Safari browser to access a web server (IIS) running on your PC. If your computer cannot be found then it may be a DNS problem. How are your local computernamesbeing found on your network? Have you tried your LAN's numeric IP address ( http://192.168...)?

Jul 29, 2010 7:11 AM in response to JimHdk

Yes I have tried both my computer's name and IP address on our network.

I'll have to check the DNS but I don't think this should be an issue as other computers work fine, its only for the iOS browsers which seem to not work.

Also going to test if WAMP works, may be an Safari just doesn't like IIS.

Jul 31, 2010 3:39 PM in response to A.Lwin

I am having the same problem. Even my iPod Touch can access the server running on my PC, but not my iPad. The server is running on an unusual port, 8080, but I can't access the port 80 server, either. The iPod does seem to have more trouble with access than a Mac or PC, but at least it does succeed, eventuallly/sometimes.

I don't know what WAMP is - was that part of your solution? And what firewall did you change? On the PC? Or a router? Or is there one on the iPad?

Thanks for any hints. I have been beating my head on this for months.

Jan 16, 2012 4:37 PM in response to A.Lwin

You can access the localhost on an iPad or iTouch by appending your local ip link to the beginning of any of your file paths. This link can be discovered by enabling web sharing.


If you use PHP, you can do it like this:


<?php

$localhost = 'http://your_localhost_ip_goes_here/~your_home_folder_goes_here';

?>


You can then append the path to each file using <?php echo $localhost;?>, like so:


<a href='<?php echo $localhost; ?>/~your_home_folder_goes_here/~the_relative_path_to_your_file>Link</a>


If you use HTML only, you can do it like this:


<a href='http://your_local_ip_goes_here/~your_home_folder_goes_here/the_relative_path_to_your_file>Li nk</a>


In both cases, you would do this for any external file (images, js, css, html, php, etc). What's nice is, if you have a Sites folder, you can do this and it will still work on your computer with the same url from your Sites folder. When you're ready to launch it live, simply return the file paths to how they were before. This can be simplified by doing a replace all.


The main cause of our problems with this is that we are using the Sites folder. Unfortunately I can't find an easier way to fix it than this.

Hope this helps.

Jan 17, 2012 12:59 AM in response to heatwaveo8

Sorry again, the second one had a typo as well. It needs to be without the tilde. This is the right one, I promise.


<a href='<?php echo $localhost; ?>/the_relative_path_to_your_file'>Link</a>


I sure wish we had a little more time on here to edit our posts! 🙂 Note that this will only work in PHP files. For HTML files and for external JS and CSS files, you will need to do the HTML version that I showed above.

iPad connect to localhost?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.