Added get ip

get ip for sending the ip via up