get server ip from a variable