@Override
    public void connect(InetSocketAddress address) throws IOException {
        if (mVpnService.protect(socket())) {
            super.connect(address);
            mLog.i("Connect to remote server %s", address);
        } else {
            throw new IOException("[TCP]Can not protect remote tunnel socket.");
        }
    }
A TCP tunnel communicates with the remote server.

@author Megatron King
@since 2018-11-21 01:41
netbare-core/src/main/java/com/github/megatronking/netbare/tunnel/TcpRemoteTunnel.java