public static NetworkAddress ConstructNetworkAddress(IPAddress ip, int port) { return new NetworkAddress ( Services: 1, // 1 (NODE_NETWORK services) IPv6Address: IPAddressToBytes(ip).ToImmutableArray(), Port: (UInt16)port ); }