"Shaniqua Jones" wrote in message
news:utWJjhzUEHA.412@TK2MSFTNGP10.phx.gbl...
: I've designed a C# application consisting of two EXEs: a client and
: server. The server runs on my Win2000 Server box, and the client runs on
my
: customers' machines -- typically XP. The client app connects to the
server,
: makes a request, and awaits a response. The server sends back the response
: at which point the client disconnects. The connection takes place on port
: 20198 (TCP). My server app was coded in such a way that only 10
simultaneous
: connections are allowed from any client IP address. I did this to prevent
: certain types of DOS attacks. Everything is working well -- except for one
: customer.
:
: This customer is saying that he is unable to connect to my server. The
: server is rejecting his connection because his IP address has already
: established 10 connections with my server. Sure enough, if I do a
: "netstat -n" on my server, I see 10 connections from his IP. What makes
this
: interesting is that this customer does NOT have 10 connections open to my
: server. I did a 'netstat' on *his* computer, the only machine in his
office,
: and NO such connections appeared. Even after physically turning his
machine
: OFF, these connections refuse to die. I can still see them via 'netstat'
on
: my server.
:
: The only ways to get rid of these connections is to do ONE of the
: following:
:
: 1) restart server.exe on my server.
: 2) reboot the customer's firewall.
:
: Clearly, what is happening is that when my customer's client
application
: closes the connection, his LOCAL computer closes the connection, but his
: firewall does not. It keeps it open indefinitely. I've never encountered
: such bizarre behavior from a firewall.
:
: Since the problem started yesterday, I asked my customer's I.T. person
: if he made any changes to the firewall that day. He said that he HAD made
a
: change to his GnatBox firewall -- the change being that he added a VPN
: tunnel to another branch office. However, I don't see how such a change
: would be causing the odd behavior being exhibited by his firewall.
:
: This problem only occurs with this one particular app that uses port
: 20198. Another almost identical app which uses port 8721 does NOT exhibit
: the problem. Is there anything special about port 20198 that I should
know?
: When designing the app, I just chose 20198 at random. I've read that it's
: best to use high-numbered ports for custom apps so as not to conflict with
: the lower-numbered "well known" ports.
Are you telling the client to close the connections or just hoping they will
on their own? It sounds like the proxy is keeping it open. Your app should
not depend on the remote hardware to determine when the connection should be
closed but rather notify it to terminate the connections from the server.
--
Roland Hall
/* This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose. */
Online Support for IT Professionals -
http://support.microsoft.com/service...p?fr=0&sd=tech
How-to: Windows 2000 DNS:
http://support.microsoft.com/default...b;EN-US;308201
FAQ W2K/2K3 DNS:
http://support.microsoft.com/default...b;EN-US;291382