Convert IP address decimal to dotted decimal and back