Added ip and port in server logic