Solved

what app is using sockets

Posted on 2003-11-21
11
254 Views
Last Modified: 2010-05-01
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
0
Comment
Question by:RocketMan
11 Comments
 
LVL 9

Expert Comment

by:TooKoolKris
ID: 9800241
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
 
LVL 9

Expert Comment

by:TooKoolKris
ID: 9800248
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
 

Author Comment

by:RocketMan
ID: 9800387
i know that app, thaks.. but what i want is to code it myself :)
0
 
LVL 1

Expert Comment

by:anaadoul
ID: 9804995
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
 

Author Comment

by:RocketMan
ID: 9805591
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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Comment

by:RocketMan
ID: 9805592
em.. guys, does anybody know how do y ask for a PAQ/Refund? (no point for this question :))
0
 
LVL 6

Expert Comment

by:DominicCronin
ID: 9806310
Post  your request with a link to this topic in community support
0
 

Author Comment

by:RocketMan
ID: 9807281
thx dominicCronin
0
 

Accepted Solution

by:
SpazMODic earned 0 total points
ID: 9828466
PAQed, with points refunded (500)

SpazMODic
EE Moderator
0
 

Author Comment

by:RocketMan
ID: 9828489
thanks
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

932 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now