Port Number Q

Hey, I got a question. I have been trying to learn more about servers, ports, etc. I’m not that good at this type of things… in fact, everything I had on my old server was put there by my older bro. So I don’t know as much, other than making minor things and having him help. But now I want to learn more in this general direction, but have a question on port number. In order to have my chatroom connect, I need my IP address and port number. I know how to find my ip, I just don’t know much about ports. Can anyone help me?