Cant connect to my own server

when ever I try to join my own server that ive set up i get told failed to connect anyone know why?

How are you trying to connect? If your trying to connect through the server list to your own server then instead use direct connect, for your own server you keep everything default in the boxes and just hit connect. Also, can other people connect? or is it just you that cant.