Added changes to get ServerIp and ports