change local host name to ip address
Posted by: magesh.apr (59.97.88.---)
Date: November 15, 2008 11:53AM

hai to all,


i installed wamp server in my system, i wna to run my webpage, for that i will use ti give url like : httP//localhost/myfolder/file.php


i want to replace localhost name to my ip address that is [127.154.2.23].


For this what i want to do, where and all i want to change, can any one help me in this please, i wan to show my page to my local network systems using this.


Can any one help me please


thanks in advance,

Options: ReplyQuote
Re: change local host name to ip address
Posted by: stevenmartin99 (---.b-ras1.blp.dublin.eircom.net)
Date: November 15, 2008 12:59PM

is it only local that u want it? 127.x.x.x is not standard local? just left click wamp and press "put online"
this will allow all networked computers to see it

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote
Re: change local host name to ip address
Posted by: Airbag888 (196.192.81.---)
Date: December 12, 2008 02:34PM

I have what I believe is the same issue.

I've setup wamp on my machine. My IP is of the format 10.###.###.x and subnet 255.255.0.0

Wamp (Apache) is running on the 8080 port.

I can access my 'websites' fine from my local machine but once I try from the network it fails.
I'll be more specific, it loads the page I pointed it to but fails to load any assets (pictures, css, etc)

Reason is from any other computer it tries to load assets from localhost instead of my external IP (aka LAN IP)

So I see connecting to localhost.. and this obviously times out and no assets are loaded.

I was looking at adding the UseCanonicalName On and having ServerName 10.###.###.x:8080
I tried Listen 8080 and Listen *:8080 as well. Nothing changed.


When I hover the cursor on links i see they all show [localhost] instead of [10.###.###.x]

Why is this happening and what should I do to solve it.

Thanks for reading guys

When I hover on links from an external machine

PS: The server is set to be Online and I've restarted the service several times. No success sad smiley
Windows firewall is turned off



Edited 2 time(s). Last edit at 12/12/2008 02:37PM by Airbag888.

Options: ReplyQuote
Re: change local host name to ip address
Posted by: yfastud (Moderator)
Date: December 13, 2008 02:12AM


Options: ReplyQuote
Re: change local host name to ip address
Posted by: Airbag888 (196.20.154.---)
Date: December 14, 2008 06:14AM

Hi thanks for the reply.

Yes I double checked, like I said no firewalls are up.

Everytime i access the page from a computer on the lan it changes all links on that page to localhost and if that page references other files (images, css, etc) it tries to look for them at [localhost] location.

Options: ReplyQuote
Re: change local host name to ip address
Posted by: stevenmartin99 (---.b-ras1.blp.dublin.eircom.net)
Date: December 14, 2008 10:02AM

follow my guide. >>[pampserver.com] and explain where it goes wrong...

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]



Edited 1 time(s). Last edit at 12/14/2008 10:03AM by stevenmartin99.

Options: ReplyQuote
Re: change local host name to ip address
Posted by: Airbag888 (196.20.154.---)
Date: December 14, 2008 10:17AM

thanks i'll try it tomorrow. the wampserver is running on my machine at work.

i can't help but think something might be missing from my hosts. oh well we'll see. worse case i'll reinstall wamp and go from there

Options: ReplyQuote
Re: change local host name to ip address
Posted by: Airbag888 (196.192.81.---)
Date: December 15, 2008 03:36PM

Here's what happened.

Before I attempted a reinstall of Wamp. I reinstalled the blog itself. Instead of running the installation script from my localhost I did it manually and all links worked properly this time.
So for some reason the setup had every reference point to localhost instead of my LAN IP address.

Go figure. Anyways this is working now.

Another topic certainly, I was wondering if there was a way to automate a full proper backup of Wamp.

Thanks for the help.

Options: ReplyQuote
Re: change local host name to ip address
Posted by: stevenmartin99 (---.b-ras1.blp.dublin.eircom.net)
Date: December 15, 2008 03:47PM

yes u could use batch to do this. just make a batch file that will copy everyfile in the wapm folder into another folder. you could also use windows scheduler to run this batch file once a day a week or watever

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote
Re: change local host name to ip address
Posted by: Airbag888 (196.20.155.---)
Date: December 15, 2008 04:16PM

I thought about this and I was wondering what happens if at this very moment the database is being written to? corruption?

Options: ReplyQuote
Re: change local host name to ip address
Posted by: stevenmartin99 (---.b-ras1.blp.dublin.eircom.net)
Date: December 15, 2008 04:41PM

not a good idea. Ur bewst to switch wamp off to do this.

U can use a batch file i made to shut down wamp while u make a backup

>>>[pampserver.com]

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]



Edited 1 time(s). Last edit at 12/15/2008 04:43PM by stevenmartin99.

Options: ReplyQuote
Re: change local host name to ip address
Posted by: Airbag888 (196.20.155.---)
Date: December 15, 2008 04:43PM

sounds safer. thanks

hmm 404 on that one



Edited 1 time(s). Last edit at 12/15/2008 04:46PM by Airbag888.

Options: ReplyQuote
Re: change local host name to ip address
Posted by: stevenmartin99 (---.b-ras1.blp.dublin.eircom.net)
Date: December 15, 2008 04:45PM

sorry link was wrong its here>>> [pampserver.com]

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]



Edited 1 time(s). Last edit at 12/15/2008 04:47PM by stevenmartin99.

Options: ReplyQuote
Re: change local host name to ip address
Posted by: Airbag888 (196.20.155.---)
Date: December 15, 2008 04:57PM

cheers mate. i'll try it out tomorrow.

does anyone of you know of a decent blog that can use ldap authentication? i've installed b2evolution. Awesome all around except it requires a plugin for ldap auth and it's quite old, not maintained and with no documentation.

Options: ReplyQuote
Re: change local host name to ip address
Posted by: stevenmartin99 (---.b-ras1.blp.dublin.eircom.net)
Date: December 15, 2008 05:00PM

zimbra. but im not sure its so suited to ur use

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote
Re: change local host name to ip address
Posted by: Airbag888 (196.20.152.---)
Date: December 15, 2008 06:24PM

i'll look it up.

plus i need to understand how to integrate it in my php scripts

Options: ReplyQuote
Re: change local host name to ip address
Posted by: yfastud (Moderator)
Date: July 30, 2010 10:32PM

You need to setup Access, DNS, and VH; Access for permission to connect to your Wamp PC, DNS to tie domain(s) to your Wamp PC, and VH to host multiple Domains/Websites/IP's and even you have only 1 Domain/IP, you should use VH to set it up w/ the site you want to show up first on top and localhost on bottom and others in middle if having more than 1 site; w/ VH, other PC's, no matter w/i or outside LAN, can access/see websites/contents on your wamp PC. If dont have real Domain, just skip DNS guide

To setup Access, follow this
[blog.jlbn.net]

To setup VH, follow this
[blog.jlbn.net]

To setup DNS, follow this
[blog.jlbn.net]

Have fun,

FREE One A Day
FREE Photo
FREE Games
FREE Websites
FREE Portable GPS
FREE WAMP Guides

Options: ReplyQuote
Re: change local host name to ip address
Posted by: toumimi (---.44.75-86.rev.gaoland.net)
Date: July 31, 2010 12:05AM

[Topic unearthed by spammer]
Anyway, answer would be useful for others.

Florian

WampServer Patch (Screenshots)
Topic EN : www.wampserver.com
Topic FR : www.wampserver.com

Options: ReplyQuote


Sorry, only registered users may post in this forum.