fix getipaddress