Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Name instead of IP

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
Guest

Name instead of IP

#1 Post by Guest »

I'm having 2 computers at the moment. The have apache installed.
I would like to put a name in the browser instead of the ip of the other computer.

It was possible in windows so I think it wouldn't be a problem for linux. The only problem for me is: How is it done?

Guest

#2 Post by Guest »

(I'm assuming that you have static IP's)

Edit the /etc/hosts file. You have to add a line like this:
  • 192.168.0.1 OtherPc
edit the /etc/hostname on the other PC like this
  • OtherPc
Now you should type OtherPc in the the browser of the PC of which you have edited /etc/hosts and you should get the page from 192.168.0.1.

Post Reply