List all the open ports
-
Hi all, I want list out all the open ports for a particular IP Address in c# windows application. How can i do it ? Thanks in advance.
Have a look at this tip Find an open port on a machine using C#[^]. HTH.
When I was a coder, we worked on algorithms. Today, we memorize APIs for countless libraries — those libraries have the algorithms - Eric Allman
-
Hi all, I want list out all the open ports for a particular IP Address in c# windows application. How can i do it ? Thanks in advance.
You asked this question already, less than a day ago.
-
You asked this question already, less than a day ago.
Univote countered
Ideological Purity is no substitute for being able to stick your thumb down a pipe to stop the water
-
Have a look at this tip Find an open port on a machine using C#[^]. HTH.
When I was a coder, we worked on algorithms. Today, we memorize APIs for countless libraries — those libraries have the algorithms - Eric Allman
The problem with that approach is that it only works for the local machine. I believe the OP is looking to scan ports on remote machines.
*pre-emptive celebratory nipple tassle jiggle* - Sean Ewington
"Mind bleach! Send me mind bleach!" - Nagy Vilmos
CodeStash - Online Snippet Management | My blog | MoXAML PowerToys | Mole 2010 - debugging made easier
-
Hi all, I want list out all the open ports for a particular IP Address in c# windows application. How can i do it ? Thanks in advance.
What you are trying to achieve here is a port scanner. This[^] article should give you a decent head start - but there are a couple of things to be aware of. 1. If you are scanning all ports, you should consider running the checks via multiple threads. The reason for this is because checking a port is a time consuming process. 2. Just because the list identifies that a port is free, it doesn't mean that the port will be free when you come to request it. Another application could have taken that port before you get to it, so don't consider that the list is definitive.
*pre-emptive celebratory nipple tassle jiggle* - Sean Ewington
"Mind bleach! Send me mind bleach!" - Nagy Vilmos
CodeStash - Online Snippet Management | My blog | MoXAML PowerToys | Mole 2010 - debugging made easier
-
The problem with that approach is that it only works for the local machine. I believe the OP is looking to scan ports on remote machines.
*pre-emptive celebratory nipple tassle jiggle* - Sean Ewington
"Mind bleach! Send me mind bleach!" - Nagy Vilmos
CodeStash - Online Snippet Management | My blog | MoXAML PowerToys | Mole 2010 - debugging made easier
Ahh! Reading the question right is generally a good start :-O
When I was a coder, we worked on algorithms. Today, we memorize APIs for countless libraries — those libraries have the algorithms - Eric Allman
-
Hi all, I want list out all the open ports for a particular IP Address in c# windows application. How can i do it ? Thanks in advance.
If you are attempting to create a port scanner then I STRONGLY suggest that you consider the following.... Do not do this unless YOU own the network or you have PERMISSION from the owner of the network in WRITING to do this. People have been expelled from school, lost their network connectivity, been fired from jobs, have had civil judgments rendered against them and even criminally prosecuted because they did this. Even when they thought they had a legitimate need for the functionality.