If CMC won't connect to CCC, doublecheck:
- CCC PC Name entered into CMC's Settings for typos
- CCC is Running
- All PC's for MM + CCC +CMC are on same VLAN
- PC's firewall is permitting CCC and CMC local network access
- CCC listens on inbound port # 1031
- CCC calls My Movies on port # 51415
Troubleshooting Connectivity Issues
As with most things in life, there's only one way things can go right, and infinite ways things can go wrong. That adage certainly applies to networking applications.
While we've tried to make using CCC with CMC as simple and trouble-free as possible, there are some common issues that might give you some trouble. In this chapter, we will detail the most common errors and how to fix them.
If you are not experiencing connectivity errors, congrats! Feel free to jump ahead to the next chapter: 203 - Syncing with CCC
Connectivity Test Error Messages
A "Socket Error #11001 - Host not Found" error message indicates that the remote PC is offline, or perhaps you entered the PC's name/IP address incorrectly:
A "Connect timed out." error message indicates that the PC is reachable but CCC is not running - check to make sure CCC is running:
VLANS
If you have segregated your home network into two or more VLANs, then you will need to make sure that My Movies, CCC and CMC are all on the same VLAN, or have designated routes and credentials to bridge VLANs.
If you don't know what a VLAN is, good - don't worry about it. And if you have configured VLANs for your home network, then you are obviously a technical user of advanced networking skills, and you certainly don't need me to tell you about VLANs (even though I was a Cisco Certified Engineer in an earlier career...).
Firewalls
If the above guidance didn't resolve your connectivity challenges, then you might have a firewall permissions issue.
If you're not sure what a firewall is, basically a firewall is software that prevents network traffic in order to protect your PC from malicious software. By default, most firewalls will block traffic for new programs until you grant access. If you have not granted network access for both CMC and CCC, then chances are you have one or more firewalls blocking communications.
While hardware firewalls do exist, these are typically expensive solutions used by businesses that are rarely found in a home environment (and if you happen to have one, then you certainly don't need to be reading this "intro to firewalls"). You might have a firewall built into the router for your home internet connection - those are fairly common - but these typically protect your home network from outside attackers, and don't block traffic inside your home network.
So for the purposes of this discussion, I will be assuming that you have a software based firewall, a.k.a. some kind of program running on your PC.
Chances are you have at one point in your life seen a firewall diagram like the following one, which illustrates how a firewall protects your home network from the scary internet:
Unfortunately, that is a very misleading image, as it suggests there is only a single firewall, and that it only affects internet traffic. Unless you have disabled the software firewalls running on your Windows PC's, that is simply not true. In addition to that firewall that protects you from the internet (this firewall probably lives on your internet router), each PC usually has a software firewall, and this firewall can block traffic from all PC's, even those in your home network. A corrected picture probably looks more like this:
This means you will need to make sure that every CMC and CCC PC has the correct exceptions added to its firewall rules.
The challenge here is that there are literally hundreds of different firewall programs - there is no way I can cover them all. Instead, what I will do is provide some guidance on the most common firewall solutions - hopefully yours will be one of them, and if not, then the guidance provided below should still be applicable to your personal firewall software.
But before we get to that, let's talk about CMC and CCC's networking requirements.
* Note that if you only have a single PC with everything running on it (My Movies + CCC + CMC), then the following info is of little interest to you, as it details with external networking connections which you are not using.
CMC <-> CCC Network Communications
CCC runs a very basic TCP server (TCP stand for Transfer Control Protocol, a common networking technology). When CCC is running, the TCP server is always listening on port 1031 (I chose that port number, because CMC v1.0 was released on Halloween, 10/31, so it should be easy to remember).
This means that whichever PC is running CCC, it must have port 1031 open for incoming traffic, in order to allow other CMC PC's to connect remotely. Typically when you grant network access, you are generally opening all ports, which is fine. CCC only listens on port 1031, but having other ports open won't cause any ill effects. But if you are an advanced user attempting to lock down their PC's network access, at the bare minimum you must allow CCC to listen on port 1031.
CMC runs a very basic TCP client. Each time CMC connects to CCC, it uses a different randomly assigned outgoing port #, which is by design so that CCC can distinguish subsequent connections from earlier connections coming the same PC. Since this port number is always changing, essentially you have to allow CMC full access on all possible outbound ports, at least with respect to accessing your CCC PC. Since it is extremely rare to specifically block outbound port #'s, this requirement probably has no impact on your firewall setup, but now you know just in case.
CMC should never have any incoming originating traffic on your network - CMC has no capability to listen for network traffic. This means that CMC always talks first, which establishes the network connection to CCC or other PC, so you can usually block inbound originating traffic to CMC and it won't break anything.
With regards to CMC, CCC will not have any outbound originating traffic - CCC always just sits quietly waiting for CMC to check in and ask for some data. But with regards to My Movies, CCC will have outbound originating traffic, as it always initiates the requests to the My Movies API service.
CCC <-> My Movies Network Communications
My Movies runs the API Service on port 51415. Typically, My Movies has already opened this port # when you installed it (plus a lot of other port numbers that it uses). But if CCC is failing to connect to My Movies, especially if you are running CCC on a different PC than where you installed My Movies, then make sure the My Movies PC's firewall is allowing inbound connections on port 51415.
CCC calls My Movies on port 51415 using a standard HTTP connection.