none
TcpListener AntiFlooding? RRS feed

  • Question

  • Actually i would like to add anti flooder and attacker in my TCP server, 

    The way to flood : connect and disconnect about 1000 times

    Does anyone know how to prevent it?

    • Moved by Lisa Zhu Wednesday, June 19, 2013 7:18 AM network related
    Tuesday, June 18, 2013 11:20 AM

Answers

  • I think you want to develop a kind of throttling mechanism.

    The idea is to accept just a limited number of connections concurrently, specially if they are all from the same IP.

    You should make this additional check before accepting every new incoming connection, of course that your code should decide very fast if you want to accept the connection or not.


    Best regards,

    Fernando Rocha

    Tuesday, June 18, 2013 11:43 PM

All replies

  • I think you want to develop a kind of throttling mechanism.

    The idea is to accept just a limited number of connections concurrently, specially if they are all from the same IP.

    You should make this additional check before accepting every new incoming connection, of course that your code should decide very fast if you want to accept the connection or not.


    Best regards,

    Fernando Rocha

    Tuesday, June 18, 2013 11:43 PM
  • Hi,

    From your description, I ‘d like to move this post to  the most related forum.

    There are more  experts in this aspect, so you will get  better support and  may have more luck getting answers.

    Thanks for your understanding.

    Regards,


    Lisa Zhu [MSFT]
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Wednesday, June 19, 2013 7:19 AM