checking remote connection