You can but when you join it will lag a bit,or a lot if you have a rather low-end machine
just add <i>-port 270xx</i> where xx is anywhere between 16 to 20 <!--emo&:D--><img src='http://www.unknownworlds.com/forums/html/emoticons/biggrin.gif' border='0' style='vertical-align:middle' alt='biggrin.gif'><!--endemo-->
ie -port 27016
Just make sure you have your IP in hand because it doesn't always appear in your games list
yeah you just have to change the port in your target, but like he said it tends to double the lag. I suggest just a listenserver if you want to play and host, unless of course you want it still up while you arn't playing ns.
Here's a <a href='http://server.counter-strike.net/server.php?cmd=howto&show=serverclient' target='_blank'>write up</a> by the counter strike server site that tells you how to accomplish this.
For years I have hosted and played on the same machine without lag. However, I now use a dedicated Linux box on my same connection so It's no longer physically on my computer. However, I never had lag issues. But I have also never tried to do it with a NS server (as I said my NS server is on a dedicated Linux box now).
The moral of the story is this, both Half-Life client and Server try to use ports 27015 to serve/connect. Because of the nature of TCP you can only have one port in use by one program at a time you will not be able to serve and connect on the same machine.
I might sound like a nut, but I have tried using different port numbers and have found that I get the best results two ports different than my client. Add the following lines to your autoexec.cfg file located in your NS folder on your server install. If you do not have an autoexec.cfg file than create one using notepad or some other text editor.
port 27017 <-- This is the port that the server will use when it loads. maxplayers 10 <-- This number should reflect the amount of users you want to be able to connect. map ns_bast.bsp <-- This will be the first map that connects when the server loads.
I will attach a copy of my autoexec.cfg file incase you have any issues with the above.
Comments
just add <i>-port 270xx</i> where xx is anywhere between 16 to 20 <!--emo&:D--><img src='http://www.unknownworlds.com/forums/html/emoticons/biggrin.gif' border='0' style='vertical-align:middle' alt='biggrin.gif'><!--endemo-->
ie -port 27016
Just make sure you have your IP in hand because it doesn't always appear in your games list
Here's a <a href='http://server.counter-strike.net/server.php?cmd=howto&show=serverclient' target='_blank'>write up</a> by the counter strike server site that tells you how to accomplish this.
The moral of the story is this, both Half-Life client and Server try to use ports 27015 to serve/connect. Because of the nature of TCP you can only have one port in use by one program at a time you will not be able to serve and connect on the same machine.
I might sound like a nut, but I have tried using different port numbers and have found that I get the best results two ports different than my client. Add the following lines to your autoexec.cfg file located in your NS folder on your server install. If you do not have an autoexec.cfg file than create one using notepad or some other text editor.
port 27017 <-- This is the port that the server will use when it loads.
maxplayers 10 <-- This number should reflect the amount of users you want to be able to connect.
map ns_bast.bsp <-- This will be the first map that connects when the server loads.
I will attach a copy of my autoexec.cfg file incase you have any issues with the above.