12hours of searching :( Im trying to run chromium(cef) browser from specific ethernet but no luck to find specific answer hope someone help me, thanks in advance
i tried these code
ChromiumWebBrowser chrome;
var frame = chrome.GetMainFrame();
var request = frame.CreateRequest(initializePostData:true);
HttpWebRequest httpRequest = (HttpWebRequest)request;
httpRequest.ServicePoint.BindIPEndPointDelegate =
new BindIPEndPoint(BindIPEndPointCallback);
...
private static IPEndPoint BindIPEndPointCallback(ServicePoint servicePoint,
IPEndPoint remoteEndPoint,
int retryCount)
{
if (remoteEndPoint.AddressFamily == AddressFamily.InterNetwork)
{
return new IPEndPoint(IPAddress.Parse("192.168.16.100"), 0);
}
// Just use the default endpoint.
return null;
}
but it doesnt work and error
just combine codes from these links
...
Choose one of many Internet connections for an application
...
i found similar question but did not get right answer from this CefSharp choose local end point