You configure ports mainly on your router. You can find instructions on this very good website:
[Only registered and activated users can see links. Click Here To Register...]. Some over protective firewalls might also mess things up, but this is most often not the case. If it is, consult your firewall's online documentation.