Teen Programmers Unite  


Return to forum top

frustrating internet problem

Posted by mop [send private reply] at August 04, 2002, 08:16:53 PM

When I start up gnome, it gives that cannot detect hostname, this may cause gnome to run with difficutly blah blah blah. The internet works, I get a 'connection refused' when I try to connect to my apache server (from anycomputer, including this one, unless I just type in localhost), and the weirdest of all, when I ping $HOSTNAME... it returns with unknown host!

I have ADSL btw.
I really want to use my computer through remote telneting and playing with my server! Just as I got php on it too...

my ipchains configurator doesn't work, it says something about mail and then closes itself (no matter what I choose), and the ipchains configuration file is emtpy

Posted by gian [send private reply] at August 05, 2002, 12:07:33 AM

What is eth0 broadcasting on, and is lo broadcasting at all? ifconfig might help you sort it out a bit.
Also, does your /etc/hosts file have an entry for localhost and your hostname?

Posted by mop [send private reply] at August 05, 2002, 02:14:44 AM

I only have localhost in the host file.
Okay, now I get a 'command not found' for ifconfig. grr.
I'm on red hat 7.3.
The login screen has my (real) hostname.
At this point I'd be happy if I could ping myself.

Posted by gian [send private reply] at August 05, 2002, 03:29:09 AM

Are you root? I think ifconfig lives in /sbin, which won't be in your path if you aren't root.
Try adding a line for your hostname in /etc/hosts.

Posted by unknown_lamer [send private reply] at August 05, 2002, 12:45:18 PM

What is $HOSTNAME set to? Also, for the web server rejecting connections, that could be because your ISP is blocking port 80.

Posted by mop [send private reply] at August 05, 2002, 05:41:13 PM

On my other computer ifconfig doesn't work either (in root), it can ping itself though.

Hostname on both returns blahblahblah.hsia.bc.telus.net
I used to be able to run the server perfectly, but I reinstalled redhat and now I can't. I'll try running the server on the other computer, and tell you what happens.

This leads me to think its a problem with the configuration.
I'll try adding the line to my hosts file. Both of my computers (the one that can ping itself and the one that can't) only have this in the hosts file:
# Do not remove the following line, or various programs
# that require network functionality will fail. localhost.localdomain localhost


Posted by mop [send private reply] at August 05, 2002, 10:33:31 PM

Apache works fine on the other computer. (gee, that must be a record for setting up a linux webserver! About a minute or so-while my mom was distracted).

pah. Well? It must be the ipchains or firewall thing or something. Maybe I'll just copy them directly over from the other computer. *sigh*

You must be logged in to post messages and see which you have already read.

Log on
Save for later automatic logon

Register as a new user
Copyright TPU 2002. See the Credits and About TPU for more information.