Raised This Month: $32 Target: $400
 8% 

lhds_run problems under ubuntu


Post New Thread Reply   
 
Thread Tools Display Modes
vivalavida
Senior Member
Join Date: Jan 2009
Location: Fairfield County, CT
Old 02-12-2009 , 22:13   Re: lhds_run problems under ubuntu
Reply With Quote #11

jeremy@Jeremy:~$ ./hlds_run -game cstrike +exec server.cfg +ip 192.168.2.1 +port 27015 +maxplayers 26 +map de_dust2
Auto detecting CPU
Using AMD-Opteron (64 bit) Optimised binary.
Auto-restarting the server on crash

Console initialized.
scandir failed:/home/jeremy/./platform/SAVE
Protocol version 48
Exe version 1.1.2.6/Stdio (cstrike)
Exe build: 18:01:18 Oct 24 2008 (4352)
STEAM Auth Server
couldn't exec language.cfg
couldn't exec listip.cfg
couldn't exec banned.cfg
WARNING: UDP_OpenSocket: port: 27015 bind: Cannot assign requested address
FATAL ERROR (shutting down): Couldn't allocate dedicated server IP port 27015.
Add "-debug" to the ./hlds_run command line to generate a debug.log to help with solving this problem
Thu Feb 12 22:138 EST 2009: Server restart in 10 seconds
__________________
ew its sticky!
vivalavida is offline
P4rD0nM3
Veteran Member
Join Date: Feb 2006
Old 02-13-2009 , 00:52   Re: lhds_run problems under ubuntu
Reply With Quote #12

OH whoops my bad.

This one...

netstat -antuwp | egrep "(^[^t])|(*LISTEN)"

And

iptables --list if you're using iptables.

Because it looks like 27015 is being used. Try starting it on a different port...27016 or whatever.

Last edited by P4rD0nM3; 02-13-2009 at 00:56.
P4rD0nM3 is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 02-13-2009 , 01:06   Re: lhds_run problems under ubuntu
Reply With Quote #13

Why are you trying to bind it to the gateway IP? Is that really your internal IP for that specific computer?
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
vivalavida
Senior Member
Join Date: Jan 2009
Location: Fairfield County, CT
Old 02-13-2009 , 01:17   Re: lhds_run problems under ubuntu
Reply With Quote #14

jeremy@Jeremy:~$ sudo netstat -antuwp | egrep "(^[^t])|(*LISTEN)"
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 4495/cupsd
udp 0 0 0.0.0.0:68 0.0.0.0:* 5509/dhclient
udp 0 0 0.0.0.0:59210 0.0.0.0:* 4461/avahi-daemon:
udp 0 0 0.0.0.0:5353 0.0.0.0:* 4461/avahi-daemon:


iptables

Chain INPUT (policy ACCEPT)
target prot opt source destination

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination
jeremy@Jeremy:~$

@ yami i looked at my routers status and it say 192.168.2.6 is my desktop and i only got one desktop

and ive tryed like 8 ports
ill keep tryin
__________________
ew its sticky!

Last edited by vivalavida; 02-13-2009 at 01:19. Reason: duidnt do sudo
vivalavida is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 02-13-2009 , 01:27   Re: lhds_run problems under ubuntu
Reply With Quote #15

Then your +ip should be set to 192.168.2.6 if that is the IP of your machine
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
vivalavida
Senior Member
Join Date: Jan 2009
Location: Fairfield County, CT
Old 02-13-2009 , 01:41   Re: lhds_run problems under ubuntu
Reply With Quote #16

ya thats what i set it to.

tryed port 99993, 75467, 43578,70158 and they dont work..

all say fatal error can allocate port
jeremy@Jeremy:~$ ./hlds_run -game cstrike +exec server.cfg +ip 192.168.2.6 +port 70158 +maxplayers 26 +map de_dust2
Auto detecting CPU
Using AMD-Opteron (64 bit) Optimised binary.
Auto-restarting the server on crash

Console initialized.
scandir failed:/home/jeremy/./platform/SAVE
Protocol version 48
Exe version 1.1.2.6/Stdio (cstrike)
Exe build: 18:01:18 Oct 24 2008 (4352)
STEAM Auth Server
couldn't exec language.cfg
couldn't exec listip.cfg
couldn't exec banned.cfg
WARNING: UDP_OpenSocket: port: 70158 bind: Cannot assign requested address
FATAL ERROR (shutting down): Couldn't allocate dedicated server IP port 70158.
Add "-debug" to the ./hlds_run command line to generate a debug.log to help with solving this problem
Fri Feb 13 01:401 EST 2009: Server restart in 10 seconds
__________________
ew its sticky!
vivalavida is offline
NIREUS
New Member
Join Date: Feb 2009
Old 02-13-2009 , 04:32   Re: lhds_run problems under ubuntu
Reply With Quote #17

maybe your box is behind a firewall like iptables.

service iptables stop

/etc/init.d/iptables stop

try to disable them..
NIREUS is offline
alexinno
Senior Member
Join Date: Mar 2007
Location: C:\
Old 02-13-2009 , 06:14   Re: lhds_run problems under ubuntu
Reply With Quote #18

i don't think there is any port number "70158"
max port number is 65535
alexinno is offline
Trafalete
Senior Member
Join Date: Sep 2008
Location: Bucuresti ( Printre nori
Old 02-13-2009 , 06:15   Re: lhds_run problems under ubuntu
Reply With Quote #19

i have this problem too sometimes...all i do is stop the process and try running it again...usualy after 3-4 starts it runs smoothly....i am not sure why this is happening....but i know that finnaly it starts working and anyone can join it if i give them my ip

ps: port is not blocked by linux firewall or router firewall ;
__________________



Last edited by Trafalete; 02-13-2009 at 06:17.
Trafalete is offline
P4rD0nM3
Veteran Member
Join Date: Feb 2006
Old 02-13-2009 , 11:41   Re: lhds_run problems under ubuntu
Reply With Quote #20

Allow UDP 27015.
P4rD0nM3 is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 20:29.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode