Controller FAP SystemServerConnectionFailed

Cognos Controller FAP version 8.5.1
Microsoft Windows 2008 server

When doing a IP (initial publish) for datamart in FAP get error “Could not login to TM1, host …. Server name: …. User name: …

If you have the mouse pointer over the error message a screen tip will say

FAP service can not connect to the TM1 server on port 5495 and 12345 (or what port you have setup for TM1 server)

Port number is defined in the tm1s.cfg file at line PortNumber=12366

Possible Solution:
Open the needed ports in the Windows Firewall on the TM1 server.