Samples showing how to support both IPv4 and IPv6 for the same Socket with .NET Core TCP Client/Server Sample UDP Client/Server sample Read more in this article: Supporting IPv4 and IPv6 dual mode network with one socket