Avatar of flasht
flasht

asked on 

GetTCPTable - howto?

Hi... i need to know how to get a list of opened ports on computer + if its possible application executable that opens it... I need to know if it "acts as a server" or just client...

I know that i should use GetTCPTable, but have no idea how, and didnt find any useful information on google... would be very greatful for some example.

Delphi 6.
Programming Languages-OtherDelphiTCP/IP

Avatar of undefined
Last Comment
flasht
Avatar of CodedK
CodedK
Flag of Greece image

Hi.

Check out this source :
http://users.pandora.be/dirk.claessens2/downloads/tcpipmon15.zip

Tool for monitoring network activity.
-ARP table : remote MAC-address <-> remote IP
-TCP table : currently open TCP connections
-UDP table : currently open UDP ports
-TCP statistics
-UDP statistics
-IP statistics
-ICMP statistics
-IP address table
-IP routing table: equivalent of "route print" command
-Adapters table : currently installed adapters data
-Interface Table: currently installed interfaces
-Round Trip Time & HopCount measurement.

Inside you will see how to use GetTCPTable.

Hope this helps :)
Avatar of flasht
flasht

ASKER

Ok... seems to be fine example but it doesnt show what process listens... :-(
Avatar of flasht
flasht

ASKER

... i mean the executable of process that is listining.
Avatar of CodedK
CodedK
Flag of Greece image

This cannot be done i thing :(
I hope someone will prove me wrong :)
Avatar of Wim ten Brink
Wim ten Brink
Flag of Netherlands image

I think it can be done since I have seen applications just do exactly this. TCPView from SysInternals seems to do exactly this. Just don't know how, though.
Avatar of CodedK
CodedK
Flag of Greece image

Here is another source ... It can display more info, but not the application

Check it out :
http://www.magsys.co.uk/delphi/magmonsock.asp
ASKER CERTIFIED SOLUTION
Avatar of CodedK
CodedK
Flag of Greece image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of CodedK
CodedK
Flag of Greece image

Full source included :)
Avatar of flasht
flasht

ASKER

Cool.... thanx :)
Delphi
Delphi

Delphi is the most powerful Object Pascal IDE and component library for cross-platform Native App Development with flexible Cloud services and broad IoT connectivity. It provides powerful VCL controls for Windows 10 and enables FMX development for Windows, Mac and Mobile. Delphi is your choice for ultrafast Enterprise Strong Development™. Look for increased memory for large projects, extended multi-monitor support, improved Object Inspector and much more. Delphi is 5x faster for development and deployment across multiple desktop, mobile, cloud and database platforms including 32-bit and 64-bit Windows 10.

60K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo