At a command (CMD) prompt try NETSTAT -A
It will show you what port you system is listening on for TCP and UDP
Cheers,
Gary
Main Topics
Browse All TopicsHi Experts!
How do I check if port 21 is open on a specific box?
Tried: http://www.canyouseeme.org
It's saying that it could not see the service connection refused and connetion timed out.
T I A !
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
you can always try a
telnet host.ip.address.here 21
######## OUTPUT ##########
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
220 (vsFTPd 2.0.5)
HELO
530 Please login with USER and PASS.
##########################
that means the FTP daemon is listening on port 21
No, the services file just defines the service ports and provides a lookup for certain systems, it is nothing to do with whether a port is open or not.
Have you port-forwarded port 21 on your external router to the box concerned?
What is providing the FTP? IIS Server? Can you ftp to the box internally?
Keith,
However, I was not able to FTP to my co-workers workstation, different from where the app is, and could not FTP or telnet with port 21. But on his box he's able to do a DOS FTP.
This does not mean that port 21 is closed on his workstation, right?
So, we don't know if port 21 is closed on where the app is, right?
Thanks for your help!
Yes, it is closed. Remember, port 21 is the destination port, not the source port for ftp. Therefore you can all ftp out to a system that is running an ftp service such as the app server. Dos ftp is an ftp client that could use any free port that it wants above 1024, it is not a server service that listens on port 21 (or whatever other port is may be using)
IIS for example provides an ftp service that listens on port 21. DOS ftp provides a client that you use to connect to an ftp service.
Assuming this is a windows 2000/2003 server that hosts the app or a windows xp machine (whatever) then netstat -a from a cmd prompt on any machine will tell you the position regarding ports open.
You will see a list produced that will give an ip address, a protocol, a port number and its state. If tou see tcp port 21 listed then that port is open.
Job done :)
Thanks in advance for your help!
On the server that I want to run the WS FTP Pro app:
Microsoft Windows [Version 5.2.3790]
(C) Copyright 1985-2003 Microsoft Corp.
C:\>netstat -a
Active Connections
Proto Local Address Foreign Address State
TCP ServerA:http ServerA.mydomain.com:0 LISTENING
TCP ServerA:epmap ServerA.mydomain.com:0 LISTENING
TCP ServerA:microsoft-ds ServerA.mydomain.com:0 LISTENING
TCP ServerA:1040 ServerA.mydomain.com:0 LISTENING
TCP ServerA:1062 ServerA.mydomain.com:0 LISTENING
TCP ServerA:1095 ServerA.mydomain.com:0 LISTENING
TCP ServerA:1101 ServerA.mydomain.com:0 LISTENING
TCP ServerA:1311 ServerA.mydomain.com:0 LISTENING
TCP ServerA:ms-olap1 ServerA.mydomain.com:0 LISTENING
TCP ServerA:ms-olap2 ServerA.mydomain.com:0 LISTENING
TCP ServerA:msolap-ptp2 ServerA.mydomain.com:0 LISTENING
TCP ServerA:3189 ServerA.mydomain.com:0 LISTENING
TCP ServerA:ms-wbt-server ServerA.mydomain.com:0 LISTENING
TCP ServerA:4215 ServerA.mydomain.com:0 LISTENING
TCP ServerA:5001 ServerA.mydomain.com:0 LISTENING
TCP ServerA:8000 ServerA.mydomain.com:0 LISTENING
TCP ServerA:8080 ServerA.mydomain.com:0 LISTENING
TCP ServerA:8081 ServerA.mydomain.com:0 LISTENING
TCP ServerA:12162 ServerA.mydomain.com:0 LISTENING
TCP ServerA:netbios-ssn ServerA.mydomain.com:0 LISTENING
TCP ServerA:1086 Server10079.mydomain.com:m
TCP ServerA:1101 ServerA.mydomain.com:1110 ESTABLISHED
TCP ServerA:1107 Server10244.mydomain.com:1
TCP ServerA:1110 ServerA.mydomain.com:1101 ESTABLISHED
TCP ServerA:1136 Server10003.mydomain.com:1
TCP ServerA:1140 Server10244.mydomain.com:1
TCP ServerA:1152 Server10004.mydomain.com:m
TCP ServerA:1200 Server10235.mydomain.com:e
TCP ServerA:1201 Server10235.mydomain.com:1
TCP ServerA:1209 Server10004.mydomain.com:e
TCP ServerA:1210 Server10004.mydomain.com:1
TCP ServerA:1214 Server10003.mydomain.com:l
TCP ServerA:1216 Server10003.mydomain.com:l
TCP ServerA:1217 Server10004.mydomain.com:m
TCP ServerA:1220 Server10004.mydomain.com:l
TCP ServerA:1224 Server10076.mydomain.com:m
TCP ServerA:1227 Server10077.mydomain.com:m
TCP ServerA:1230 Server10078.mydomain.com:m
TCP ServerA:1233 Server10004.mydomain.com:e
TCP ServerA:1234 Server10004.mydomain.com:1
TCP ServerA:1235 Server10004.mydomain.com:l
TCP ServerA:1236 Server10004.mydomain.com:l
TCP ServerA:1237 Server10136.mydomain.com:m
TCP ServerA:1241 Server10137.mydomain.com:m
TCP ServerA:1243 Server11016.mydomain.com:n
TCP ServerA:ms-wbt-server dell-56hb2c1.mydomain.com:
D
TCP ServerA:ms-wbt-server dell-3zyjp21.mydomain.com:
TCP ServerA:3640 Server10003.mydomain.com:1
TCP ServerA:3921 ServerA.mydomain.com:5001 ESTABLISHED
TCP ServerA:3922 ServerA.mydomain.com:5001 ESTABLISHED
TCP ServerA:3923 ServerA.mydomain.com:5001 ESTABLISHED
TCP ServerA:3924 ServerA.mydomain.com:5001 ESTABLISHED
TCP ServerA:3925 ServerA.mydomain.com:5001 ESTABLISHED
TCP ServerA:3926 ServerA.mydomain.com:5001 ESTABLISHED
TCP ServerA:3927 ServerA.mydomain.com:5001 ESTABLISHED
TCP ServerA:3928 ServerA.mydomain.com:5001 ESTABLISHED
TCP ServerA:3933 EBAPPD04:microsoft-ds ESTABLISHED
TCP ServerA:4524 Server11029.mydomain.com:m
D
TCP ServerA:5001 ServerA.mydomain.com:3921 ESTABLISHED
TCP ServerA:5001 ServerA.mydomain.com:3922 ESTABLISHED
TCP ServerA:5001 ServerA.mydomain.com:3923 ESTABLISHED
TCP ServerA:5001 ServerA.mydomain.com:3924 ESTABLISHED
TCP ServerA:5001 ServerA.mydomain.com:3925 ESTABLISHED
TCP ServerA:5001 ServerA.mydomain.com:3926 ESTABLISHED
TCP ServerA:5001 ServerA.mydomain.com:3927 ESTABLISHED
TCP ServerA:5001 ServerA.mydomain.com:3928 ESTABLISHED
TCP ServerA:ms-rule-engine ServerA.mydomain.com:0 LISTENING
TCP ServerA:11001 ServerA.mydomain.com:0 LISTENING
TCP ServerA:11020 ServerA.mydomain.com:0 LISTENING
TCP ServerA:11021 ServerA.mydomain.com:0 LISTENING
UDP ServerA:snmp *:*
UDP ServerA:microsoft-ds *:*
UDP ServerA:isakmp *:*
UDP ServerA:1025 *:*
UDP ServerA:1026 *:*
UDP ServerA:1104 *:*
UDP ServerA:1105 *:*
UDP ServerA:1137 *:*
UDP ServerA:1138 *:*
UDP ServerA:ms-sql-m *:*
UDP ServerA:1964 *:*
UDP ServerA:ipsec-msft *:*
UDP ServerA:4525 *:*
UDP ServerA:8081 *:*
UDP ServerA:8082 *:*
UDP ServerA:ntp *:*
UDP ServerA:netbios-ns *:*
UDP ServerA:netbios-dgm *:*
UDP ServerA:ntp *:*
UDP ServerA:1027 *:*
UDP ServerA:1057 *:*
UDP ServerA:1148 *:*
UDP ServerA:1170 *:*
UDP ServerA:1213 *:*
UDP ServerA:3630 *:*
UDP ServerA:4200 *:*
UDP ServerA:4494 *:*
C:>
Thanks Keith.
My laptop does not show port 21 as you've mentioned when I did a netstat /a.
However, I was able to telnet VPN IP 21 <-- using port 21?
I know you said port 21 is receiving/destination (listening).
Even if I'm able to telnet using port 21, it doesn't mean it's open?
I know I'm a pain, but really appreciate your help!
Business Accounts
Answer for Membership
by: allanau20Posted on 2007-04-25 at 17:23:28ID: 18978542
I see port 21 on this file:
ers\etc\se rvices
%SystemRoot%\system32\driv
# <service name> <port number>/<protocol> [aliases...] [#<comment>]
ftp 21/tcp #FTP. control
Does it mean it's open?
T I A