update target runtime to .NET 4 and support IPV6 addresses