Originally posted by MurOllavan
I am not sure if I understand. This is my hosts file.
127.0.0.1 shamrock.net shamrock //name of my pc
what should I do?
You cannot do this as 127.0.0.1 is reserved for localhost. If say your ethernet card has an address of 192.168.0.1 then in your hosts file it would be;
now if your buddies ethernet card address is 192.168.0.3 and the name in his /etc/hostname file is abc.org then add this to your hosts file;
This will allow name resolution by your system so if you have a home directory ( eg. john) on his system you can do from a console ssh firstname.lastname@example.org
. If he is running an Internet server you could enter in the address bar http://www.abc.org
and it will show his index.html. You can speed up the loading of favourite sites by doing the same thing if you know the ip address of your favourite sites. Another useful tricks applied to this file is if you don't want adverts on web pages then resolve their addresses to localhost and because they aren't there, they won't be displayed eg.;
127.0.0.1 adbanners.bizland.com or