473,378 Members | 1,066 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

get application name by port

okay so i made this application, it monitors all the internet activity of internet, with protocols, so i get information about every packet being sent on internet, including destination and source, but i dont know how to get process name, when i run it shows a like a spam of packets being sent but cant recognize what application/process is sending em, so i want some way to get process of the packet sent.. any confusions?
Sep 29 '09 #1
4 3716
Plater
7,872 Expert 4TB
The output of netstat -no contains the ProcessID numbers for the port.
You could parse that?
There is bound to be a better way though.

Also maybe from here:
http://www.codeproject.com/KB/IP/iphlpapi.aspx
Sep 29 '09 #2
sorry but i didn't did it the way shown in code project, i attached the 2 .cs which i use to get packets
Attached Files
File Type: zip PacketMonitor.zip (5.3 KB, 156 views)
Sep 30 '09 #3
Plater
7,872 Expert 4TB
It doesn;'t matter how you get the packets, its how you go from ports->application name that you should be taking from those examples
Sep 30 '09 #4
i cant understand the examples...
Sep 30 '09 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: ^CeFoS^ | last post by:
Hi to everybody, due to I want to use the serial port of a server machine through an applet allocated in html document. > Then one application will run in the server machine and using > the serial...
3
by: Fredrik Andersson | last post by:
Hi I have a problem, I need to controle one app from another application. If I press a button in app1 then somthing is going to happend in app2. I hope somone understands what I mean. ...
4
by: Carlo | last post by:
How can I debug, from Visual Studio .NET, a web application running on a web server listening on TCP port 8080 rather than 80? Thanks in advance. Carlo
5
by: Mike | last post by:
I am relatively new to Web development and I have a pretty simple question. How do I get the web site identification information (from IIS) inside my aspx.cs? Spacifically I want the web pages...
3
by: mohamed farouk | last post by:
hi everyone i have a database on sql server that contain the name and the telephne number ,i have a combo box that contain the names i want to put button so when i click on it open port in the...
0
by: Max Vasserman | last post by:
I have several applications. Each one uses COM port. I want to know what is a application name, that uses current COM port.
2
by: astolpho | last post by:
I am using a slightly outdated reference book on J2EE programming. It gives 2 methods of creating a database used in its casestudies. The first is an ANT script that gives the following output: ...
1
by: enggwaqas | last post by:
I have downloaded a simple port blocker written in vb.net which is working fine, now i want to extend it so that it will display a popup window whenever any application trying to access the...
0
by: John Q | last post by:
In Silverlight Application it's possible to query current Application's hostname and port using namespace Windows.System and code like below. Iused it in WCF client call. String hostname =...
1
by: Cupric | last post by:
I have a python script that runs fine from the command line or from within IDLE, but doesn't work through the Vista Task Scheduler. The script downloads some csv files and then uses pywin32 to...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.