Since IPEndpoint contains a ToString() method that outputs:
IPEndpoint
ToString()
10.10.10.10:1010
There should also be
Apparently, IPEndPoint.Parse and IPEndPoint.TryParse were added in .NET Core 3.0.
IPEndPoint.Parse
IPEndPoint.TryParse
In case you're targeting it, give those methods a try! The implementation is seen in the link above.