Click to See Complete Forum and Search --> : How to access Linux IP alias from networked windows PC web browser.


peDey
04-13-2003, 12:30 AM
Using a web browser, I would like to be able to access my Linux PC from my Windows PC by alias via http, e.g.:
http://aliasname/ instead of http://192.168.0.x/

This is my home network:

Router/Hub - IP address 192.168.0.1
PC running Windows 2k
PC running RH7.2

On my Linux PC in etc/hosts I have the following:

192.168.0.1
127.0.0.1 localhost localhost.localdomain linuxbox

I know that the alias works from the linux box, because if I enter http://linuxbox/ using a browser on the Linux PC, then it works. I would like to be able to do the same from my Windows PC. How could I go about doing this using my current setup?

I am a noob, so layman's terms appreciated ;)

linnov
04-13-2003, 10:10 AM
add the host name to the windows pc under c:\windows\hosts

or on NT/XP/2K c:\$windir\system32\drivers\etc\hosts

peDey
04-13-2003, 10:59 PM
Originally posted by linnov
add the host name to the windows pc under c:\windows\hosts

or on NT/XP/2K c:\$windir\system32\drivers\etc\hosts

Thanks linnov, this works.

If I had a number of windows (or perhaps Linux too) PC's that needed to access the Linux PC using an alias, is there any way that I can do this with a single configuration, instead of manually editing each PC's etc/hosts file?

linnov
04-13-2003, 11:01 PM
Use and internal DNS server or WINS