IP parsing in C#