If you are on a LAN (local area network i.e. in the same physical location), and a router is on the network, then the router may be configured to not allow local computers to connect to each other. If that is the case, then the router needs to be programmed to allow local are connections between the computers.
If you are trying to connect over the Internet, it is a violation of the terms of service and is not allowed.