I've been searching on Google and Stackoverflow but i couldn't find a way to do this. I have a proxy list (ip:port) which i want to use to open new connections.
This is my code which uses my network ip address:
static void Connect()
{
try
{
TcpClient client = new TcpClient(IP, PORT);
}
catch (SocketException e)
{
Console.WriteLine(e);
}
}
What do i want to achieve?
- Opening a connection with a proxy from a list.
Question:
How can i change the ip address that TcpClient is using? Not the ip address from the server but the ip address from the client.
Thanks in advance