Using RealVNC 4.0 with a firewall?!

I’m using a Vigor 2500 Router, And I know the ports for the VNC program are 5800 and 5900 but are they UDP or TCP or what?
Help needed please… :lol:

All VNC communication is TCP.