Viewing all ip you're connected to

Started by
5 comments, last by Dwiel 21 years, 4 months ago
Is there a way for me to find out what IPs I''m conected to? or connected me? If I''m downloading something, I''d like to see the IP from the source, if I''m connected to someone via ftp, I''d like to see that, If someone is downloading from me or I am downloading from them on kazaa. Is there a way to see who i''m connected to on each port? 21, 1214, ect? Thanx "The only thing worse than not having that new _______ , is when some rich kid has it, but can''t and/or doesn''t appreciate it."-me Tazzel3d ~ Dwiel
Advertisement
I have found that by typing netstat -n at the command prompt, you can see all of the active conections, which is what I want. Now I am wondering if there is an api call that can do a similar thing

Thanx!

"The only thing worse than not having that new _______ , is when some rich kid has it, but can''t and/or doesn''t appreciate it."-me
Tazzel3d ~ Dwiel
If you go to www.sysinternals.com, they''ve got a program there (TCPView) which lists your connections (and on Windows NT/2000/XP which process is using that connection). Also on there is the source code for the command-line version of TCPView (but I forget what it''s called, just go to the TCPView page and the link is there).

If I had my way, I''d have all of you shot!

codeka.com - Just click it.
The NeoTrace is a pretty good program
You can see all the stuff like the
-physical location you are connecting to on a map
-all the server ip you are going through

: )
system command:
netstat -an

for Windows and Unix
If you''re looking for a particular function, getpeername() is a solution.

RapscallionGL - arriving soon.
________________________________________________"Optimal decisions, once made, do not need to be changed." - Robert Sedgewick, Algorithms in C
Thanx guys! Just what I wanted dean harding!

"The only thing worse than not having that new _______ , is when some rich kid has it, but can''t and/or doesn''t appreciate it."-me
Tazzel3d ~ Dwiel

This topic is closed to new replies.

Advertisement