Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7442135
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T11:07:47+00:00 2026-05-29T11:07:47+00:00

I have developed a small server that recives connections (using basically the example here:

  • 0

I have developed a small server that recives connections (using basically the example here: http://msdn.microsoft.com/en-us/library/system.net.sockets.tcplistener.aspx)

The problem is that i dont know how but whenever a connection is made, it cannot send data (or de data sent does not reach the server, the method Read of the NetworkStream from GetStream of the TcpListener just blocks and does not get any data byte.

I tried to just telnet it, instead of using the client i have and the problem is the same. The funny thing is that if i do “telnet localhost 2000” it works perfectly!!

It seems that something is blocking the communications (previously not even localhost was working until i upgraded .NET Fw on the server), but i dont know what can it be that just blocks the data but allows the connections, actually did not know than an application could do it!

Any help with this will be much appreciated!
Thank you!

EDIT:

The line

TcpClient client = server.AcceptTcpClient();            

Gets the tcp connection properly then i get the networkstream and when i try to read from it, there is no data received (i == 0):

i = stream.Read(bytes, 0, bytes.Length)
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T11:07:48+00:00Added an answer on May 29, 2026 at 11:07 am

    It was a firewall… apparently there is some common service on port 2000 that has a specific protocol, and the firewall blocked all the data that was not following this protocol :/

    Even though, thank you for your help!!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an Out-of-process COM server executable which was developed using Visual Studio 6.0
Hey guys, I have developed a small site that i would like to embed
I have a small website developed using VS2005 and mySQl, it's just 2 webforms
We have a small 3 developer team that is currently using Subversion for our
I have developed a small WCF service which handles HTTP request. I want to
I have a small Sinatra application that is calling a library I developed named
I have a small web application developed using Icefaces 1.8.2 and jsf 1.1 which
I have a small TCP server that listens on a port. While debugging it's
I have develop small Asp.net MVC3 application using Telerik rad Controls with in that
I have to develop a small application that will connect to a Linux server

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.