Question Locked

Locating FTP connection from list of active connections in command prompt

0 helpful
2 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I have two command prompts open. One that is ftp to ftp.microsoft.com , but didn't not completely log on with a user name and password. In the other command prompt window I entered "netstat -an" to view the list of active connections. However, I do not see the connection to the FTP site. Is there a reason why I am not able to view the connection?

2 replies

by vallum halo

Nope. No reason that I can think of why the above command does not work. On my machine (a Windows 2008 server), the netstat -an output looks like this:

TCP 192.168.1.101:51834 134.170.188.232:21 ESTABLISHED

NOTE: 134.17.188.232 is ftp.microsoft.com -- 192.168.1.101 is my machine.

At a command prompt, I simply issued the following command to search for port 21 (the standard FTP port.)

netstat -an | find ":21"

I just connected, ran the command above while the ftp session was prompting for the user name.

Hope this helps.

This discussion is closed to new replies.