How can I connect to my dedicated server over the internet? (Works locally)

Is the server set to listen on any connection or is specifically listening at say ‘localhost’ instead of listening “globally” at its ip address?