Page 1 of 1

Connecting to localhost over wifi?

Posted: Fri Jul 20, 2012 6:30 pm
by OldRod
As I'm tinkering with my project, I want to make sure I am iPad/mobile friendly with my browser layout/code. Is there a way I can connect to the localhost of my desktop machine with my iPad? They are both on the same wifi network.

I tried accessing the ip address of the desktop, but that didn't work. I have opened port 80 (I think) on my router, but since both are behind the router that shouldn't matter should it? I don't have Windows firewall running on the desktop at the moment, so the only firewall I have is my router.

I've google'd this and found several possible ways to do it, but so far nothing has worked.

Has anyone done this?

Re: Connecting to localhost over wifi?

Posted: Sat Jul 21, 2012 3:52 am
by xcalpro
I am assuming your running a web server on your desktop like xammp or wamp. If your server is running correctly then in theory you should be able to access the desktops local ip.

Re: Connecting to localhost over wifi?

Posted: Sat Jul 21, 2012 11:07 am
by OldRod
Yeah, I'm using WAMP.

I figured I should be able to also... no luck yet though :)

I'll keep looking.

Re: Connecting to localhost over wifi?

Posted: Sat Jul 21, 2012 7:41 pm
by Jackolantern
Could it be a firewall issue? I have actually never tried to connect to localhost from another machine on the same LAN. To test mobile I have always put it up on a free shared host, but this would be much easier. I am interested to know if it is possible :)

Re: Connecting to localhost over wifi?

Posted: Wed Jul 25, 2012 2:59 pm
by hallsofvallhalla
You have to put it online.

Image

Re: Connecting to localhost over wifi?

Posted: Wed Jul 25, 2012 3:06 pm
by OldRod
I did that.

Still no luck.

I read somewhere that I need to edit some settings in my Apache config file, but haven't had a chance to try that yet.

Re: Connecting to localhost over wifi?

Posted: Wed Jul 25, 2012 8:07 pm
by hallsofvallhalla
yep, have to change deny all to allow all or allow specific IP as well.

Re: Connecting to localhost over wifi?

Posted: Wed Jul 25, 2012 9:04 pm
by OldRod
OK, I got it working, finally!

Changed my http.conf file to "allow from all"
Created a custom rule in ESET Smart Security (my firewall) to allow port 80 to be accessed.

Set ESET to automatic mode with exceptions (to allow the rule to run)

It works!!

My iPad can now run my browser game :D

My earlier attempts I forgot that I was running ESET - I had Windows firewall disabled, but I had to modify ESET too :)

Re: Connecting to localhost over wifi?

Posted: Thu Jul 26, 2012 1:58 pm
by hallsofvallhalla
nice!