Projekt
„Nový hledač“
Změna IP adresy
Linux
http://www.google.cz/#q=linux+change+ip+address
#
ifconfig eth0 192.168.1.5 netmask 255.255.255.0 up
C#
http://www.google.cz/#q=C%23+webrequest+change+ip+address
public
static IPEndPoint BindIPEndPointCallback(ServicePoint servicePoint, IPEndPoint
remoteEndPoint, int retryCount)
{
Console.WriteLine("BindIPEndpoint called");
return new IPEndPoint(IPAddress.Any,5000);
}
public static void Main()
{
HttpWebRequest request = (HttpWebRequest) WebRequest.Create("http://MyServer");
request.ServicePoint.BindIPEndPointDelegate = new BindIPEndPoint(BindIPEndPointCallback);
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
}