Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
void Main()
{
int x = System.Net.IPAddress.HostToNetworkOrder((127 << 24) | 1);
var y = new System.Net.IPAddress(x);
Console.WriteLine(x);
Console.WriteLine(y);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment