[Mono-list] ipv6/ipv4 multiple IP's, MONO uses wrong interface for reply

pjsmith pjsmith at mtgsy.net
Thu May 8 10:50:17 UTC 2014


When binding to IPv6 any on Linux, the dual-stack also binds to IPv4. This
means I have disabled ipv4 support in my app and only listen on ipv6 any and
still get the ipv4 responses with ::ffff: type IPv4 addresses. This part is

The problem is that although I can receive packets sent to any of the IP's,
mono seems to use any arbitrary interface to send the packets back out. The
client does not get the response. If you do a tcpdump on the client end, you
will in fact get the packets back to the client, but as they are addressed
from the wrong IP (not the one the query was sent to), the client does not
associate them with the request.

I guess binding to specific IP's might be the only way forward.

Does anyone know if there is a way to correct this behaviour? I'd have
throught it would have made sense to have packets when listening on 'any' go
back out the interface they came in?


View this message in context: http://mono.1490590.n4.nabble.com/ipv6-ipv4-multiple-IP-s-MONO-uses-wrong-interface-for-reply-tp4662709.html
Sent from the Mono - General mailing list archive at Nabble.com.

More information about the Mono-list mailing list