Store IP addresses properly in lua.