开发者

How can I verify a socket listener?

开发者 https://www.devze.com 2023-02-18 21:34 出处:网络
I have created an application which starts a listener (it is a WCF application). After I run the application, is it possible to verify whether listener is runni开发者_如何学JAVAng correctly, and port

I have created an application which starts a listener (it is a WCF application). After I run the application, is it possible to verify whether listener is runni开发者_如何学JAVAng correctly, and port it is listening to using a networking tool like wireshark,etc?


Use e.g. netstat, in a console type:

netstat -an


Another solution is to try to use another listener on the same port. You'll get a bind exception.


use http://porttest.blogspot.com/ to verify that connection open

0

精彩评论

暂无评论...
验证码 换一张
取 消