hey W1zrd i enetered that command but it didnt make a difference got any other solutions???
Are you trying to set up the server on the same computer as you are playing on?
There are sources saying that it's not possible to make a dedicated server, and then play on the same machine, connecting to you server.
Of course here are ways around it (no rules without exceptions), but it's not easy nor advisable.
If you are setting up your server on another computer, then make sure that you set either dedicated 1 (for LAN/Internal Networks) or dedicated 2 (for public server). In your servers configuration file you can enter: set sv_snaps "40" to ensure large amounts of data is being sent out as snapshots and then make sure that the connection between your server and computer is working before connecting.
It might help to use the console and type /connect [servers-ip] [servers-port]
For example: /connect 123.321.123.321:27960
If you want to run it as a purely dedicated server, then you would be advised to use .bat files under Windows or .sh scripts under Linux.
[edit: read
this thread]