Re: How to setup http links on local machine with dynamically alocated IP address

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Jul 31, 2008 at 11:08, Bogdan Cristea <cristeab@xxxxxxxxx> wrote:
> For a Apache server in a local LAN with DHCP I want to use in a http link
> the actual IP address of a machine. Is this possible when the IP address is
> dynamically allocated?
> Example: I want to replace in "http://localhost/~bogdan/"; localhost with the
> actual IP address without needing to change each time the link when the IP
> address changes.

you can always use the IP address, eg:

http://192.168.1.12/some/page.html

But if your IP address changes, than you have to change the IP you use
in the link. If you keep using the old IP your browser will not be
able to contact your server. There is no solution to this.
However, just use relative links on your webpages, and you should be fine.

Krist





-- 
krist.vanbesien@xxxxxxxxx
krist@xxxxxxxxxxxxx
Bremgarten b. Bern, Switzerland
--
A: It reverses the normal flow of conversation.
Q: What's wrong with top-posting?
A: Top-posting.
Q: What's the biggest scourge on plain text email discussions?

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux