How can I make my TF2 server public?

I've looked into this for a while and I have no idea what I'm doing. I tried to port forward but it only let me play on LAN, and all the guides I've looked through said to type sv_lan 0
into the console but it doesn't seem to do anything.
Help would be much appreciated.
Oh and I'm using SteamCMD.
Pictures about "How can I make my TF2 server public?"



How do I make my TF2 server public?
Type sv_lan 0 if you want the game to be public, or sv_lan 1 for LAN only. Type map <mapname> , replacing <mapname> with the name of the map you want to play. If the server is public and you don't want anyone to intrude, you can set a password: Type sv_password <pass> , replacing <pass> with some simple password.How do I get people to join my TF2 server?
Instead of joining an existing server, players can opt to create their own servers to host the game.Can I host my own TF2 server?
Run Your Own Custom TF2 Server for CHEAP!
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Kampus Production, Kampus Production, Kampus Production, Kampus Production