Click here to Skip to main content
15,889,872 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
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
Posted
Updated 3-Oct-18 2:26am

1 solution

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.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900