locked
How to limit number of connection on spacific port RRS feed

  • Question

  • Hi,

    I installed  an application and it run on port 1935

    on windows server 2008 R2 SP1

    kindly advice how to limit number of connection on this port ?


    Ramy

    Saturday, August 2, 2014 6:43 PM

Answers

All replies

  • Hi Ramy,

    As far as I know, we can't limit the number of connection on a specific port by Windows Server itself.

    You may try to use Microsoft Forefront Threat Management Gateway.

    Here is an overview of flood mitigation,

    Overview of flood mitigation

    http://technet.microsoft.com/en-us/library/cc995196.aspx

    If you have any question about Forefront TMG, please post your question on the forum below,

    http://social.technet.microsoft.com/Forums/forefront/en-US/home?forum=Forefrontedgegeneral

    Hope this helps.



    Steven Lee

    TechNet Community Support

    Monday, August 4, 2014 7:08 AM
  • If this is a web application, I recommend server 2012 R2 where you have fine control in IIS 8.5 on limiting concurrent connections per source IP or subnet

    If net, you can edit this reg key:

    [HKEY_LOCAL_MACHINE \System \CurrentControlSet \Services \Tcpip \Parameters]
    TcpNumConnections = 0x00fffffe (Default = 16,777,214)

    This limits the maximum number of connections that TCP may have open simultaneously on the server. This is not per port though.

    You can also edit this key:

    [HKEY_LOCAL_MACHINE \System \CurrentControlSet \Services \Tcpip \Parameters]
    MaxUserPort 

    This changes the default range for dynamic ports which is 49152-65535, which makes available 16,384 outbound concurrent connections for each IP Address. Again not port specific.


    samb

    • Proposed as answer by Sam Boutros Friday, August 8, 2014 12:44 PM
    Friday, August 8, 2014 12:44 PM