Pinging a port
C#
2
Posts
2
Posters
0
Views
1
Watching
-
Is it possible to ping a port? like pinging an IP address + port. Although I created an application that does this but it is inefficient and slow because I try to access a certain port using a try-catch block....
Silvyster wrote:
Is it possible to ping a port? like pinging an IP address + port.
No. You cannot ping a port, just the IP address.
Silvyster wrote:
that does this but it is inefficient and slow because I try to access a certain port using a try-catch block....
That's about the only way to find out if a server is listening on said port.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008