[bugfix] Changes server status check from '.equals' to '.startsWith' 
and added method isPublicIp to separate public and private ips