Hello, Just wondering if anyone has function for converting IPv4 address and Mac address to integer? and vise versa? Thanks.
http://www.justin-cook.com/wp/2006/11/28/convert-an-ip-address-to-ip-number-with-php-asp-c-and-vbnet/
I have used following method or way to convert ip to number declare @iptonum varchar(15),@ip varchar(15)SET @ip='10.5.25.255'select parsename(@ip,4)+right(('00'+parsename(@ip,3)),3)+right(('00'+parsename(@ip,2)),3) +right(( '00'+parsename(@ip,1)),3)
Yes, this one is the simplest one, I saw that on other forum. Do you do Mac too? And how about vise versa? Thanks.