Checking Gateway functionality with Local and Remote connection control