Guys i started to programing with java with tcpip or socket programing and i want to make a server that i try to ddos it from out side i need to get client's ip that try to atack my server and Block or redirect it some how any of u can help me
What I have tried:
i find alot of code in internet but not a one code that what i want like i find tcpip code for java but not anti ddos for that
解决方案
First, you'd need to have multiple clients "attacking" the server in order to generate enough traffic.
Second, the server itself will typically NOT implement the redirection or filtering of traffic to mitigate the attack. That is normally handled at the router level.
Now, if you're attacking a web server, a simplistic "attack" could just be creating HTTP requests and send those requests as fast as you can, ignoring any responses.
There are many different ways of attacking a server. What you do as a "client" is going to change depending on exactly what you're attacking, like the router in front of the server, the network interface in the server, or the web server running on it.