Solved

what app is using sockets

Posted on 2003-11-21
11
258 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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
 

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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
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…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Suggested Courses
Course of the Month8 days, 15 hours left to enroll

615 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