PDA

View Full Version : Can i edit anything? IP?


R4NG3R
June 6th, 2003, 06:46 AM
i have a counter-strike server on linux and i want to edit the server.cfg folder located

/hlds/hlds_l/cstrike/server.cfg


i open it but i can't type at all! help please. Also, I want to let people join my server, but when i set my server up it says:

IP: 127.0.0.1:27015


that aint my ip. if anyone can help please let me know!

twistedcranium
June 6th, 2003, 01:54 PM
127.0.0.1 is the loopback interface, aka 'lo'. You should REALLY read the following:

http://www.redhat.com/docs/manuals/linux/RHL-9-Manual/ref-guide/ch-networkscripts.html

before you go and tinker with any of the network settings.

*and to edit that file, you probably need to be 'root' to do so*

PostCode
June 6th, 2003, 02:12 PM
Yeah, you probably have to have root privilages to edit it. Open a terminal and type in:

su

Then the password. Now type:

pico /hlds/hlds_l/cstrike/server.cfg

If pico isn't installed, then you can use joe. Ude the same command like the one above except use the word joe instead of pico.

Also, you could invoke kwrite from the terminal after you have logged on as root. Just type in "kwrite" without the quotes, and then open the file in it.


Hope this helps.

PostCode
June 6th, 2003, 02:13 PM
BTW, just edit the IP, not the port. Leave it intact.

R4NG3R
June 6th, 2003, 03:57 PM
where do i edit the ip? btw the postcode, it worked thanks!

twistedcranium
June 6th, 2003, 04:17 PM
In the file /hlds/hlds_l/cstrike/server.cfg

R4NG3R
June 6th, 2003, 04:36 PM
no, thats where i edit things like the name of my game server or how long each cs map lasts. I'm talking about the actuall IP Address. Because for some reason when i start up my server it says my IP address is 127.0.0.1:27015 when that's not it. I need to make it my LAN ip address the 192.168.xxx:27015 you know what i'm saying?

twistedcranium
June 6th, 2003, 04:50 PM
Be nice now...taking a smartie-pants approach to those that are lending a hand might keep the hand from being extended next time.... and can I assume that you are NOT going to read any of the reference material?

If you look in that configuration file there is likely to be a line that tells the gaming program what the server IP address is. Look inside that file for the occurrance of 127.0.0.1:27015 and change the 127.0.0.1 to what you have your IP address set to. (and this must be a fixed IP address if you're going to use it for a server connection such as this).

R4NG3R
June 6th, 2003, 05:05 PM
sorry i didn't mean to come off so rude. I did read those files and found the folders where it says localhost and stuff but i didn't know what to do there. What do you mean by "fixed" like external or internal ip? something like that? Well, i won't be answering back for awhile, i'm going to go play some golf, be back around 1. But i'll be back then to talk. Thanks

R4NG3R
June 6th, 2003, 05:09 PM
btw, here is my server.cfg file:

// Use this file to configure your DEDICATED server.
// This config file is executed everytime the server changes levels.

// disable autoaim
sv_aim 0

// disable clients' ability to pause the server
pausable 0

// default server name. Change to "Bob's Server", etc.
hostname "[84th] 24/7 Assault Clan Server"

// maximum client movement speed
sv_maxspeed 320

// 20 minute timelimit
mp_timelimit 60

sv_cheats 0



That's all there is to the server.cfg

twistedcranium
June 6th, 2003, 05:19 PM
For the network card, are you using a fixed IP address or allowing DHCP to assign it an address?

twistedcranium
June 6th, 2003, 05:22 PM
Also try these resources:

http://server.counter-strike.net/linuxbasic.html

http://server.counter-strike.net/faq.html#linuxquestions

twistedcranium
June 6th, 2003, 05:28 PM
To determine what IP address your network card is currently assigned (or manually fixed to) jump back to this thread (http://www.cybertechhelp.com/forums/showthread.php?s=&threadid=18410&highlight=ifconfig) and reference PostCode's post on ifconfig.

R4NG3R
June 6th, 2003, 11:46 PM
ok, i did that and i get

eth0 and the addrees is 192.168.X.XXX and that's what i want. but on the lo i get the address of 127.0.0.1 and that's what my server starts up at. its using the lo instead of the eth0. somehow i just gots ta switch em'.

R4NG3R
June 7th, 2003, 12:00 AM
muhhhahahahah, it works! thanks guys, all along it was my DMZ i thought it was something else but i was wrong., srry... but thanks for your service. don't worry i'll be back the next time i screw something up. lol, be back soon!