Can anyone give me some good replys of how to use deticated server.

I created it and everything and then when I start it and its up and running but when people try to join and stuff they can for some reason but when i have the program and everything up and running it seems fine but no one can join it. But they say it starts then it says cannot connect to server.