Faster detection of direct connection