You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Bogdan Cristea <cr...@gmail.com> on 2008/07/31 11:08:20 UTC

[users@httpd] How to setup http links on local machine with dynamically alocated IP address

   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.


Re: [users@httpd] How to setup http links on local machine with dynamically alocated IP address

Posted by Krist van Besien <kr...@gmail.com>.
On Thu, Jul 31, 2008 at 11:08, Bogdan Cristea <cr...@gmail.com> 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@gmail.com
krist@vanbesien.org
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org