what app is using sockets

I would like to know, in Windows (95 family or NT family) how can i, once i've got the TCP table or UDP table of my machine, asociate each socket with the app using it. for example:

i've got mirc runnig, and i run my app and it returns:
....        ........     .... (whatever)
local port:1090  ....... ......   ---> mirc.exe

 (solutions in vb6 or .net are wellcome :) thanks
RocketManAsked:
Who is Participating?
 
SpazMODicCommented:
PAQed, with points refunded (500)

SpazMODic
EE Moderator
0
 
TooKoolKrisCommented:
Go to this webpage and get the free program call FPort 2.0. When you run it it will tell you all of your current open ports and the exact .exe that is holding the socket.

http://www.foundstone.com/resources/intrusion_detection.htm
0
 
TooKoolKrisCommented:
Oh I forgot to mention that it runs on the command line so you can shell it out and retreive the std data from the window from inside your program.
0
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

 
RocketManAuthor Commented:
i know that app, thaks.. but what i want is to code it myself :)
0
 
anaadoulCommented:
maybe you can use the netstat.exe -nao
but the o parametre is only avalible in WINXP

---------------------------------
There Are 10 Kind OF People
Those Who Understands Binary AND Those Who Don't
0
 
RocketManAuthor Commented:
ok guys i've found myself what i was looking for :) thaks anyway:

ths url is:
http://www.planet-source-code.com/URLSEO/vb/scripts/ShowCode!asp/txtCodeId!49563/lngWid!1/anyname.htm
0
 
RocketManAuthor Commented:
em.. guys, does anybody know how do y ask for a PAQ/Refund? (no point for this question :))
0
 
DominicCroninCommented:
Post  your request with a link to this topic in community support
0
 
RocketManAuthor Commented:
thx dominicCronin
0
 
RocketManAuthor Commented:
thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.