I was try to spoof my IP while using HttpWebRequest. I've searched here for a solution and found this piece of code:

request.ServicePoint.BindIPEndPointDelegate = delegate { return new IPEndPoint(IPAddress.Parse("Spoofed IP Goes Here"), 0); };

Yet this code does not work for me, can you guys give me another solution?

有帮助吗?

解决方案

It can be done by using SharpPCap. See this answer by Evan.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top