Fix detect port server