COUNTAR STRIEK SERVAR

COUNTAR STRIEK SERVAR

Other Help — Page [1] 2
Rockbomb
Dog fucker (but in a good way now)

2009 Nov 13 • 2045
So... basically I got pissed off trying to set up a web server, and decided I'll set up a cs2.6 server instead.
So, I followed this tutorial, and got everything installed. But when I try to run it (the "starting the server" section at the bottom) I get:
Quote:
root@david-desktop:~# cd /usr/hlds
root@david-desktop:/usr/hlds# ./hlds_run -game cstrike +ip 97.121.168.14 +sv_lan 1 -nomaster +maxplayers 18 +map de_dust2
Auto detecting CPU
Using AMD Optimised binary.
Auto-restarting the server on crash

Console initialized.
scandir failed:/usr/hlds/./valve/SAVE
scandir failed:/usr/hlds/./platform/SAVE
Protocol version 48
Exe version 1.1.2.6/Stdio (cstrike)
Exe build: 16:56:04 Mar 8 2010 (4883)
STEAM Auth Server
WARNING: UDP_OpenSocket: port: 27015 bind: Cannot assign requested address
FATAL ERROR (shutting down): Couldn't allocate dedicated server IP port 27015.



Now, I'm guessing this has something to do with me not setting up the ip part correctly. In my router I have set it up to forward port 27015 (both tcp and udp) to my server computer.
Also, I did a netstat -a, and I don't see anything using port 27015.


Anyone know how to fix this?
 
 
2010 Aug 24 at 21:05 PDT
the_cloud_system
polly pushy pants

2008 Aug 1 • 3065
-6 ₧
stomp it in the nuts
I drink to forget but I always remember.
 
 
2010 Aug 24 at 21:19 PDT
SuperJer
Websiteman

2005 Mar 20 • 5922
Well, first of all you should not be running it as root. You shouldn't be running anything like that directly as root.

If the tutorial told you to do that, then it is a very bad tutorial.

You're probably right about the IP. You need to use your computer's actual IP, not the IP of your router.

The HL server can't bind to 97.121.168.14:27015 if that IP is not on the box.

You can find the actual IP with
code
ip addr show
or maybe
code
ifconfig
 
 
2010 Aug 25 at 00:31 PDT — Ed. 2010 Aug 25 at 00:31 PDT
SRAW
Rocket Man

2007 Nov 6 • 2525
601 ₧
Question, why is it that whenever I try to host a cs server now it just shows my lan ip? before it didn't do that
Free Steam Games
 
 
2010 Aug 25 at 02:30 PDT
Rockbomb
Dog fucker (but in a good way now)

2009 Nov 13 • 2045
Alright I'll try that SJ.
But, I don't think that computer has a unique IP... my router uses NAT, which makes all the devices connected to it have the same IP right?


Edit:The tutorial didn't say to run everything in root like that, I just got tired of typing sudo before everything while I was installing xD
I won't run it in root while I actually have the server going
 
 
2010 Aug 25 at 08:21 PDT — Ed. 2010 Aug 25 at 08:22 PDT
Rockbomb
Dog fucker (but in a good way now)

2009 Nov 13 • 2045
Ok I did the ip addr, and got this:
Quote:
david@david-desktop:~$ ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 00:13:20:bf:af:89 brd ff:ff:ff:ff:ff:ff
inet 192.168.0.11/24 brd 192.168.0.255 scope global eth0
inet6 fe80::213:20ff:febf:af89/64 scope link
valid_lft forever preferred_lft forever


So should I be using 192.168.0.11?
 
 
2010 Aug 25 at 08:38 PDT
melloyellow582
The Original Portmanteau

Brisk.
2005 Mar 21 • 12856
666 ₧
No, that's a default IP you're router gives you, just for local stuff. It doesn't connect to the net.
 
 
2010 Aug 25 at 09:55 PDT
Down Rodeo
Cap'n Moth of the Firehouse

Find the Hole II Participation Medal
2007 Oct 19 • 5485
57,583 ₧
Mello has it: the best thing to do is go to your router's webpage, as it will have the IP it is currently using prominently displayed somewhere. For instance, in this flat I go to http://o2wirelessbox/ which redirects to the config pages for the router. You can get there via an IP - it begins with 192, but I can't remember what it is for most routers :p
 
 
2010 Aug 25 at 10:26 PDT
Rockbomb
Dog fucker (but in a good way now)

2009 Nov 13 • 2045
Down Rodeo said:
Mello has it: the best thing to do is go to your router's webpage, as it will have the IP it is currently using prominently displayed somewhere. For instance, in this flat I go to http://o2wirelessbox/ which redirects to the config pages for the router. You can get there via an IP - it begins with 192, but I can't remember what it is for most routers :p

Its 192.168.0.1
And, the first IP I was usin I got from my router config page
 
 
2010 Aug 25 at 12:19 PDT
sprinkles

Chrome Whore
2009 Sep 6 • 2547
10 ₧
Rockbomb said:
192.168.0.1
And, the first IP I was usin I got from my router config page


That's probably the internal ip for your current rig. Your external (wan) ip will not start with 192.168, ever. Your ip address can be found here: http://www.superjer.com/ip/

Use that.
 
 
2010 Aug 25 at 12:38 PDT
Rockbomb
Dog fucker (but in a good way now)

2009 Nov 13 • 2045
sprinkles said:
Rockbomb said:
192.168.0.1
And, the first IP I was usin I got from my router config page


That's probably the internal ip for your current rig. Your external (wan) ip will not start with 192.168, ever. Your ip address can be found here: http://www.superjer.com/ip/

Use that.

Sprinkles, did you even read what DR said?

And the IP that link shows is the same one I used in my first post.
 
 
2010 Aug 25 at 12:42 PDT
sprinkles

Chrome Whore
2009 Sep 6 • 2547
10 ₧
Rockbomb said:
sprinkles said:
Rockbomb said:
192.168.0.1
And, the first IP I was usin I got from my router config page


That's probably the internal ip for your current rig. Your external (wan) ip will not start with 192.168, ever. Your ip address can be found here: http://www.superjer.com/ip/

Use that.

Sprinkles, did you even read what DR said?

And the IP that link shows is the same one I used in my first post.

You expect me to read!?!?!?
 
 
2010 Aug 25 at 12:49 PDT
jrkookid
Half Irish, half NOT FUNNY

2007 May 27 • 1415
110 ₧
You did portforward the port 27015 and set the IP address for that port to your server's local IP address right?
 
 
2010 Aug 25 at 19:13 PDT
Rockbomb
Dog fucker (but in a good way now)

2009 Nov 13 • 2045
jrkookid said:
You did portforward the port 27015 and set the IP address for that port to your server's local IP address right?

Yep.
 
 
2010 Aug 25 at 19:31 PDT
the_cloud_system
polly pushy pants

2008 Aug 1 • 3065
-6 ₧
Rockbomb said:
jrkookid said:
You did portforward hump the port 27015 women and set the IP address cock for that there port to your server's local ip ass, right?

Yep.

I drink to forget but I always remember.
 
 
2010 Aug 25 at 19:55 PDT — Ed. 2010 Aug 25 at 19:56 PDT
Rockbomb
Dog fucker (but in a good way now)

2009 Nov 13 • 2045
So... I just realized something.
My server comp has gone from being 192.168.0.11 to being 192.168.0.9

How the fuck am I supposed to port forward to a dynamic IP?
Is there a way to keep the LAN addresses from changing?


Edit: SJ would you mind adding me on messenger? If you wouldn't mind, I'll give you remote access to my server comp and my router... and if you can get my server accessible from outside my LAN I might be feeling generous enough to make a donation via PayPal
 
 
2010 Aug 29 at 17:58 PDT — Ed. 2010 Aug 29 at 18:03 PDT
the_cloud_system
polly pushy pants

2008 Aug 1 • 3065
-6 ₧
http://answers.yahoo.com/question/index?qid=20100829183047AAn8AjI

>:O
I drink to forget but I always remember.
 
 
2010 Aug 29 at 18:27 PDT
SuperJer
Websiteman

2005 Mar 20 • 5922
OK LISTEN.

You need to use your LOCAL IP. The gameserver doesn't care what your router's IP is. The gameserver needs to know the REAL ACTUAL IP that it will see packets at.

When people join your server they need to use your router's IP. The router will forward the traffic to your server's real local 192.X.Y.Z IP.

You need to assign a local static IP to your server. Find out what range of local IPs is OK for this on your router and pick one. Then, on your server, tell your server what it's IP is in the network config.

You also need to make sure the port(s) are forwarded in your router. Or you can put your server in the router's DMZ.

 
 
2010 Aug 30 at 18:27 PDT — Ed. 2010 Aug 30 at 18:28 PDT
the_cloud_system
polly pushy pants

2008 Aug 1 • 3065
-6 ₧
superjer
saves
the
day
I drink to forget but I always remember.
 
 
2010 Aug 30 at 19:46 PDT
Rockbomb
Dog fucker (but in a good way now)

2009 Nov 13 • 2045
ZOMGWTFNOERROR

So yeah, I ran my cs1.6 server with no errors coolface.jpg

But uh... I went to connect to it from my laptop and first I tried my IP + :27015 and got nothing. Then I tried the LAN IP for the server comp and it tried to connect but I got this error message:
Quote:

This server is using a newer protocol ( 48 ) than your client ( 47 ). You should check for updates to your client


So... what do?
Also, why can I connect to it via LAN but not when I use my WAN IP? My IP is 97.121.168.14 if anyone wants to try connecting... I'll leave the server running, now that it is maybe working :O
 
 
2010 Aug 30 at 20:28 PDT
Rockbomb
Dog fucker (but in a good way now)

2009 Nov 13 • 2045
WOOHOOOOOOOOOOOOOOO!
Sprinkles connected to my server!
Sadly he also got:
Quote:
This server is using a newer protocol ( 48 ) than your client ( 47 ). You should check for updates to your client

So I gotta figure that one out now... but at least someone from outside my LAN was able to connect

Edit: So, anyone have a patch that enables both protocol 47 and 48?
Or at least just protocol 47, cuz I use a nosteam client and cant connect to m own server :S
 
 
2010 Aug 30 at 20:52 PDT — Ed. 2010 Aug 31 at 09:24 PDT
SuperJer
Websiteman

2005 Mar 20 • 5922
Well obviously you need the same version as the server. I can't really help you with that except to say:

Stop using the Steam version off Steam. Just use 1.5 or something. Why would you want all of the trouble of Steam and none of the benefits?
 
 
2010 Aug 31 at 19:55 PDT
Rockbomb
Dog fucker (but in a good way now)

2009 Nov 13 • 2045
superjer said:
Why would you want all of the trouble of Steam and none of the benefits?

Well, everyone I play with plays 1.6, I don't wanna make them all get 1.5 just so they can play on a server that probably won't have many people in it

I think I got the protocol thing figured out. After letting the server run for a while it eventually popped up with an error saying that it couldn't run cboost (which patches it to 47/48) because metamod was outdated.

Now my problem is, I downloaded the latest version of metamod and I can't get it to work. So once I figure out how to get this newest metamod working, everything should run fine
 
 
2010 Aug 31 at 21:30 PDT
the_cloud_system
polly pushy pants

2008 Aug 1 • 3065
-6 ₧
Rockbomb said:



BUY IT YOU LAZY BUM
I drink to forget but I always remember.
 
 
2010 Aug 31 at 21:52 PDT
sprinkles

Chrome Whore
2009 Sep 6 • 2547
10 ₧
Rockbomb said:
So once I figure out how to get this newest metamod working, everything should run fine



More than likely you need to update libstdc++. And, btw, I can get you the stuff you need to patch your server for both 47 and 48 protocols.
 
 
2010 Aug 31 at 23:09 PDT
Page [1] 2