Port listen error with C# program RRS feed

  • Question

  • I run my C# program on my sony laptop, it use Win7 home edition.

    But when I listen a port(like 12918), it can't receive any data from that port;

    Then I input "netstat -a" in cmd line, I found this connection(Also same result in XP compatible mode):

    TCP    [2001:0:4137:9e76:3899:3074:3f57:fe9b]:12918  [::]:0                 LISTENING

    Strange log.  And I also found a interesting thing: I still can start to listen a same port wiht a TCP tool, then netstat show a normal log to me (that strang log still exist):

     TCP              LISTENING

    now this TCP tool can receive data rightly.

    So I think maybe I should use another way to linsten port? I listen port with class "TcpListener".
    Or something setting need to be changed?

    Thanks for reply!
    Friday, March 12, 2010 2:13 AM


  • Hi,


    It appears this issue is related to program developing; since we have specific support for this, it is recommended that you go to our MSDN forum for help:


    Microsoft Developer Network Forums Home


    In addition, regarding TcpListener, I would like to share the following with you for your reference:


    TcpListener Class


    Thanks. Hope this issue will be resolved soon.

    Nicholas Li - MSFT
    • Marked as answer by Nicholas Li Friday, March 19, 2010 6:05 AM
    Tuesday, March 16, 2010 7:29 AM