I'm working on a website testing framework, and I'd like to be able to spoof the user ip. I've read, that software like Loadrunner can do this, and I'd like to be able to do this as well.
A tutorial on how to use a socket normally can be found here, but I if I want to spoof the ip, I'll have to somehow edit ip header. Is this done on socket level, or is there an other, deeper level in .Net, which would let me do this?
You can't anymore, as access to raw sockets has been restricted in the desktop versions of Windows:
(From Dev Center - Desktop - TCP/IP Raw Sockets)
You can create a raw socket fairly easily:
At which point its on you to construct the appropriate datagram (which would be a separate question if you don't have the documentation on how to do this to hand)