optimization how to getting server ip address