network devices communicate with each other by IP addresses. in your case the server is searching for an ip address of the host
localhost. this information is saved in a /etc/hosts file. 127.0.0.1 ip address points the machine to itself whatever the ip address that it has.
try to do:
if it came back with a reply that means your tcp/ip stack is installed properly.
then try :
if you got replies that means that your /etc/hosts file is good to go. if you didn't get any replies, that will requier you to edit /etc/hosts. here is /etc/hosts file from my machine:
Code:
# hosts This file describes a number of hostname-to-address
# mappings for the TCP/IP subsystem. It is mostly
# used at boot time, when no name servers are running.
# On small systems, this file can be used instead of a
# "named" name server. Just add the names, addresses
# and any aliases to this file...
#
# By the way, Arnt Gulbrandsen <agulbra@nvg.unit.no> says that 127.0.0.1
# should NEVER be named with the name of the machine. It causes problems
# for some (stupid) programs, irc and reputedly talk. :^)
#
# For loopbacking.
127.0.0.1 localhost
# End of hosts.
if you have the same information in your file, ther must be a firewall running on your machine. most likely it's iptables.
try above and if you have a problem post back