Detect given server correctly