I'm looking for a function that will convert "10011101.11001001.01001100.00000000" to "157.201.76.0"
Asked
Active
Viewed 679 times
I'm looking for a function that will convert "10011101.11001001.01001100.00000000" to "157.201.76.0"
string ip = string.Join(".",
"10011101.11001001.01001100.00000000"
.Split('.')
.Select(x => Convert.ToInt32(x, 2).ToString(CultureInfo.InvariantCulture))
);