简体   繁体   中英

C# TCP/IP Client Server fake ip address

I have a server which is listening on a port. Now I want to do some stress testing with C# TCPClient by sending multiple clients and messages asynchronously. I want to assign the tcpclient an ip address, but i can only assign the ip address that is bound to my machine. Is there any way to create a fake tcpclient?

You can do this using raw sockets. See Socket Class

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM