i want to preform a dos attack on my local web server
Unplugging the computer would probably be the easiest way to perform a denial of service attack on yourself. If you want a better answer, I suggest you provide more details about what exactly you want to do, and why. Use caution, since this is not a place to discuss illegal activities.