11-12-2005 07:20 PM - edited 03-05-2019 11:41 AM
Try to telnet a web server located in a LAN: telnet 192.168.1.2 80 but it failed.
I tried this even on the server itself, i.e., on the server, telnet 192.168.1.2 80 and it still failed.
What is wrong and how to resolve it?
Thanks to help.
Scott
11-12-2005 11:23 PM
Are you getting any response back?
Using telnet to connect to port 80 on a Web server should establish a TCP session, and you will see something like this:
HTTP/1.0 404 R
Content-Type: text/html
Can you connect to the Web server with a browser?
11-13-2005 09:27 AM
Thanks for the reply. First, there is no web site running yet. Second I issued the: telnet 192.168.1.2 80 on the same machine (not from a different PC). The message reads: "Could not open connection to the host, on port 80, connect failed."
But when I tried:telnet 192.168.1.2 5560 (which is port to access the database's isqlplus), the response is a new blank screen with nothing on it (at least it does not display any error message).
No clue why can not connect to the port 80 even on the same machine?
Thanks to help
Scott
11-13-2005 10:09 AM
Scott
If you say that there is no web site running yet, are you sure that the server is actually listening on port 80 yet?
It sounds to me like the server may not have started the service yet to serve up web pages. Is there some way that you can confirm whether it has opened port 80 for listening?
HTH
Rick
11-23-2005 11:05 PM
Maybe this can work...
X:\>netstat ?
Displays protocol statistics and current TCP/IP network connections.
NETSTAT [-a] [-b] [-e] [-n] [-o] [-p proto] [-r] [-s] [-v] [interval]
-a Displays all connections and listening ports.
-b Displays the executable involved in creating each connection or
listening port. In some cases well-known executables host
multiple independent components, and in these cases the
sequence of components involved in creating the connection
or listening port is displayed. In this case the executable
name is in [] at the bottom, on top is the component it called,
and so forth until TCP/IP was reached. Note that this option
can be time-consuming and will fail unless you have sufficient
permissions.
-e Displays Ethernet statistics. This may be combined with the -s
option.
-n Displays addresses and port numbers in numerical form.
-o Displays the owning process ID associated with each connection.
-p proto Shows connections for the protocol specified by proto; proto
may be any of: TCP, UDP, TCPv6, or UDPv6. If used with the -s
option to display per-protocol statistics, proto may be any of:
IP, IPv6, ICMP, ICMPv6, TCP, TCPv6, UDP, or UDPv6.
-r Displays the routing table.
-s Displays per-protocol statistics. By default, statistics are
shown for IP, IPv6, ICMP, ICMPv6, TCP, TCPv6, UDP, and UDPv6;
the -p option may be used to specify a subset of the default.
-v When used in conjunction with -b, will display sequence of
components involved in creating the connection or listening
port for all executables.
interval Redisplays selected statistics, pausing interval seconds
between each display. Press CTRL+C to stop redisplaying
statistics. If omitted, netstat will print the current
configuration information once.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide