Is this for JA or JK2? Which version?
Show us the server.cfg file you're using (with your password blanked out of course)
Did you download the dedicated server binary appropriate for what you're trying to do?
Do you have the right ports open on your firewall/router?
There are many threads on this, but we should first establish what, if anything you're doing right so far...