check connection type