dynamically pull server ip for socket