You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a multihomed (multi-interface) server, and I need to ensure DNS requests are sourced from a specific IP Address on the server. The default for Udp/TcpClient is to source from the address "closest" from a routing point of view to the destination address. I need it to be sourced from a fixed IP Address regardless of which interface the request "leaves" the server on.
If this helps, for other code, I've used the UdpClient/TcpClient constructors that take an IPEndpoint allowing you to specify the local address the client binds to.
eg/
var udpClient = new UdpClient(new IPEndPoint(srcIPAddress,0));
The text was updated successfully, but these errors were encountered:
I have a multihomed (multi-interface) server, and I need to ensure DNS requests are sourced from a specific IP Address on the server. The default for Udp/TcpClient is to source from the address "closest" from a routing point of view to the destination address. I need it to be sourced from a fixed IP Address regardless of which interface the request "leaves" the server on.
If this helps, for other code, I've used the UdpClient/TcpClient constructors that take an IPEndpoint allowing you to specify the local address the client binds to.
eg/
var udpClient = new UdpClient(new IPEndPoint(srcIPAddress,0));
The text was updated successfully, but these errors were encountered: