.NET implementation of libips (used by flips)