share localhost across lan
Posted by: giggly (---.belf.cable.ntl.com)
Date: August 19, 2006 04:04PM

Hi there,

Trying to find out how to share my localhost and aliases (e.g [cvo.x]) that are running under Wamp, across my LAN.

Basically I want to type the same address in my lan Laptop (e.g 127.0.0.1) and have the Wamp pc's 127.0.0.1 appear (so that Wamp's 127.0.0.1 has been shared to become the mobile's 127.0.0.1).

Hope that makes sense - thanks for any help!

Regards,
Giggly

Options: ReplyQuote
Re: share localhost across lan
Posted by: Andy (---.cable.ubr11.azte.blueyonder.co.uk)
Date: August 23, 2006 05:12AM

Hi Giggly,

127.0.0.1 is known as a loop back address. It's a reserved address that can't be used on other machines. It basically tells your computer's network card to look at itself. So when you type in 127.0.0.1 it will look at the computer you are currently using for the website. (Applies to all IP based stuff, not just WAMP).

If you want to access your WAMP server from another computer, simply open a browser window on your other computer and type in "[<<WAMP] server IP address>>" to access it.

To obtain the IP address of your WAMP server, simply open a DOS box on the WAMP server (START>RUN/CMD) and type in IPCONFIG and it'll tell you the WAMP server's IP address.

N.B If you are using something like a router or are connected to a company LAN, both of which usually use DHCP (ie. you didn't have to setup your IP setting manually) then your IP address of your WAMP server may change from time to time so you'll need to redo the above if your WAMP server stops being contactable.

You'll need to make sure your WAMP server is allowing connections from other PCs. If you've got it locked to LOCALHOST only it won't work.

There are ways around the 127.0.0.1 loopback but I strongly recommend you don't persue these for many reasons. The 127.0.0.1 gets used by more programs than most people think and shouldn't be played around with. Just stick with plain ole IP. Works best. Again, if your WAMP server is on DHCP and its IP address changes you'll need to keep editing this so it's not usually worth the hassle unless you know how to knock your WAMP server off DHCP.

As for the alias, you can edit your hosts file on your laptop to point the "[cvo.x"]; to your WAMP server's IP address but again, unless you have a real reason to do so I'd stick with IP as it's easier. Yet again, this is another one that will require editing every time your WAMP server changes IP address if it's on DHCP lol.

SUMMARY: Ensure your WAMP server is NOT locked to LOCALHOST and then use its IP address on your laptop. Think that's the easiest way.

If ya need to know more about the bits I've mentioned I'll happily answer so just post ya question.
Anyway, I hope it's of some help.

Andy.

Options: ReplyQuote
Re: share localhost across lan
Posted by: animja (---.156.175.122.airtelbroadband.in)
Date: February 02, 2013 01:37PM

i use above process but this results shown
You don't have permission to access / on this server.

Options: ReplyQuote
Re: share localhost across lan
Posted by: RiggsFolly (---.as13285.net)
Date: February 04, 2013 12:44PM

Put your wampserver online

wampmanage -> Put Online

Options: ReplyQuote


Sorry, only registered users may post in this forum.