automatic sending of ip address to server