Rockbomb
Dog fucker (but in a good way now)
2009 Nov 14 • 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 25 at 04:05 UTC
|
|
|
|
stomp it in the nuts
I drink to forget but I always remember.
|
|
|
|
≡
|
2010 Aug 25 at 04:19 UTC
|
|
|
|
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 or maybe
|
|
|
|
≡
|
2010 Aug 25 at 07:31 UTC
— Ed. 2010 Aug 25 at 07:31 UTC
|
|
|
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
|
|
|
|
≡
|
2010 Aug 25 at 09:30 UTC
|
|
|
Rockbomb
Dog fucker (but in a good way now)
2009 Nov 14 • 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 15:21 UTC
— Ed. 2010 Aug 25 at 15:22 UTC
|
|
|
Rockbomb
Dog fucker (but in a good way now)
2009 Nov 14 • 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 15:38 UTC
|
|
|
|
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 16:55 UTC
|
|
|
Down Rodeo
Cap'n Moth of the Firehouse
2007 Oct 19 • 5486
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 17:26 UTC
|
|
|
Rockbomb
Dog fucker (but in a good way now)
2009 Nov 14 • 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 19:19 UTC
|
|
|
|
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 19:38 UTC
|
|
|
Rockbomb
Dog fucker (but in a good way now)
2009 Nov 14 • 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 19:42 UTC
|
|
|
|
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 19:49 UTC
|
|
|
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 26 at 02:13 UTC
|
|
|
Rockbomb
Dog fucker (but in a good way now)
2009 Nov 14 • 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 26 at 02:31 UTC
|
|
|
|
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 26 at 02:55 UTC
— Ed. 2010 Aug 26 at 02:56 UTC
|
|
|
Rockbomb
Dog fucker (but in a good way now)
2009 Nov 14 • 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 30 at 00:58 UTC
— Ed. 2010 Aug 30 at 01:03 UTC
|
|
|
|
|
|
|
|
≡
|
2010 Aug 30 at 01:27 UTC
|
|
|
|
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 31 at 01:27 UTC
— Ed. 2010 Aug 31 at 01:28 UTC
|
|
|
|
superjer
saves
the
day
I drink to forget but I always remember.
|
|
|
|
≡
|
2010 Aug 31 at 02:46 UTC
|
|
|
Rockbomb
Dog fucker (but in a good way now)
2009 Nov 14 • 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 31 at 03:28 UTC
|
|
|
Rockbomb
Dog fucker (but in a good way now)
2009 Nov 14 • 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 31 at 03:52 UTC
— Ed. 2010 Aug 31 at 16:24 UTC
|
|
|
|
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 Sep 1 at 02:55 UTC
|
|
|
Rockbomb
Dog fucker (but in a good way now)
2009 Nov 14 • 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 Sep 1 at 04:30 UTC
|
|
|
|
Rockbomb said:
BUY IT YOU LAZY BUM
I drink to forget but I always remember.
|
|
|
|
≡
|
2010 Sep 1 at 04:52 UTC
|
|
|
|
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 Sep 1 at 06:09 UTC
|
|
|
|