another update to detect ip address