Complete.Org: Mailing Lists: Archives: freeciv: September 1999:
[Freeciv] Re: 'Failed looking up host' error
Home

[Freeciv] Re: 'Failed looking up host' error

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: "Edman, Tom R (MN65)" <Edman_Tom@xxxxxxxxxxxxxxxxx>
Cc: "'freeciv@xxxxxxxxxxx'" <freeciv@xxxxxxxxxxx>
Subject: [Freeciv] Re: 'Failed looking up host' error
From: lloy0076 <lloy0076@xxxxxxxxxxxx>
Date: Sat, 25 Sep 1999 13:11:31 +0930

> 
> The entries in the dialogue box are:
> 
> user is set to my login name
> host is set to 'localhost'
> port is set to '5555'
> 
> I'm suspecting that the problem is with my Linux environment, but any leads,
> helps or clues would be greatly appreciated.

Firstly you need to have the interface called "lo" up. Check this with
this:
[you should be root]

<~># ifconfig

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:3924  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 

If it's not up bring it up like this:

<~># ifconfig lo 127.0.0.1 up

After that edit your /etc/hosts file. Add a line like this

127.0.0.1       localhost

THEN the game should run. Your error is caused because freecive expects
a network style connection. The loopback device - i.e. a network style
device connected to your own machine - masquarades so to speak for it.

I hope you understand this. Check out some manuals if you need to get lo
(the looopback device) up at start up.

DL

Subscribe to the Linux C Mailing Lists Today!
  mailto:linuxCprogramming-subscribe@xxxxxxxxxxx
  http://users.senet.com.au/~lloy0076/linux_c_programming/index.html

[Prev in Thread] Current Thread [Next in Thread]