Click to See Complete Forum and Search --> : Cannot Telnet to my APACHE Server over LAN!


Troyh
01-12-2003, 06:40 PM
I am setting a new home LAN and am new to LINUX.

My configuration is simply a Linux Server(10.0.0.1) and one WIN98(10.0.0.2) Client
The domain name I have choosen is "infoserve.com" and my host names are "winpc" and "linpc"
I am running an APACHE Web Server on the LINUX Server.
I have the network setup and can ping both machines from both directions.

I am trying to access a webpage on the server from the WIN98 machine but am unsuccessful.
In tracing the problem and from discussions on various forums I believe the problem can be
solved in debugging telnet, which at present dosn't work

I cannot telnet to the server from the WIN98 Machine using the command
telnet 10.0.0.1 80

What usually happens is that:
1 - The "Dial-Up Connection" Window pop's up (My modem is located in the Win98 Machine)
I press cancel.
2 - The telnet window appears but with no prompt visible, eventually it times out with
the response "Could not open a connection to 10.0.0.1"

From the SERVER (Linux Machine) I tried the telnet function
telnet 10.0.0.1 80

I get connected and on entering the "GET /" command, am returned the HTML Code
from the test page followed by the message "Connection closed by foreigm host"

I can also telnet the localhost using "telnet localhost" and am prompted to enter
the login and password as expected.

I have been fiddling around with such settings as those in
"/etc/hosts.allow"
"/etc/hosts.deny"
"/etc/xinetd.d/telnet"

but am unsure as to the problem.

I believe if I get to telnet from the WIN98 Machine to the LINUX Apache Server then
my problems will be solved!!!

Any help would be greatly appreciated.
- Troy

HighOrbit
01-13-2003, 12:22 AM
Do you have firewalling enabled on the linux machine? That could be why you can't connect with either http or telnet.

OK.. the fact that you got some html output (probably "method not implemented") when you tried to telnet to port 80 means that your server is actually running.
What apache is telling you is that your are trying to connect via the wrong protocol. Telnet and http are different protocols.