Cant get in a city

i just made a server the other day and i can see the server when i type in the list of servers but when somoene tries to join me to help test things we get a connection failed and beside it says server might be offline… help anyone…thanks.,