What's the API code to find all ports that are currently open?
Printable View
What's the API code to find all ports that are currently open?
i need this code as well...
EnumPorts shows you all available ports on the machine, if this will help you. It showed me the following available ports on my machine: COM1,COM2,COM3,COM4,file and LPT1.
That's not quite what I'm looking for. I don't mean ports in that respect... I want ports such as 25 (smnp), 23 (telnet), 21 (ftp), and others like that. There are 65535 total ports on a comp =] Thanks for any help in advance. Later,
-zer0 flaw
hmmmmm... this post doesn't give me a funny feeling of suspicion at alllllllllll...........
Bleh, if you don't trust me then don't post. heh
I do not think you can see information about port with VB....
nm, I figured it out on my own. heh, you can figure out a TON of info about ports =]
mind sharing with me how u did this? thx :)
i am also looking for a similar info...how do i make my application use one specific port number to work on a vpn. and maybe someone can also tell me how do i detect browser's proxy settings...or use specific proxy settings..
i know this is asking too much..but i need the info very urgently.
any help would be highly appreciated
_______________________________
Life is a ***** and u make it worse when you work with VB.....VB leaves me weeping...all the time ...everytime:confused: :( :mad:
sock.LocalPort = 2346
sock.Listen
2346 is the port you want to be opened up
make sure you have winsock control in your project
hi coolone
thanx for the info, that was something i needed ...
thanx once again
_____________________________________________
VB leaves me weeping
all the time ....everytime..
k np just make sure on program close you close the ports wanna make it as safe for the user =)
yeah sure..
i will remember that..will give it a try
thanx again
____________________________________
VB LEAVES A SOUL WEEPING
do you mind sharing what have you figured out that we can do thro vb to use ports in our application...Quote:
Originally posted by zer0_flaw
nm, I figured it out on my own. heh, you can figure out a TON of info about ports =]
thanx in advance
dev