Convert Long to IP in C#
IPAddress Long2IP(long addr)
{
	try
	{
		return IPAddress.Parse(addr.ToString());
	}
	catch
	{
		return null;
	}
}
Categories: C# Tags: , ,
%d bloggers like this: