How to Replace source IP

Sock= socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);
if (Sock == INVALID_SOCKET)
{
//error
}

connect(Sock, (SOCKADDR*)&sockAddr, sizeof(SOCKADDR_IN)) != SUCCESS)
{
//error
}

Is there a way to replace the source IP programmatically in the
above CONNECT().
[303 byte] By [skybird200488] at [2007-11-19 7:22:27]
# 1 Re: How to Replace source IP
Nope you have to create a raw socket and create your own ip header and set the src field to the src ip that you want.
svenhag at 2007-11-9 13:49:14 >