Hosting Server Error

Grab your favourite IDE and tinker with the innards of game engines

Hosting Server Error

Postby stukabomber44 on Mon Apr 16, 2012 10:22 am

Hey guys,

not sure where to post this - but I can't host a game, and get my friends to join. They get the following error "lan servers are restricted to local clients" can anyone help me out pretty please??

Sb44
stukabomber44
Regular
Regular
 
Joined: Sun Nov 14, 2010 7:33 pm
Location: Canada

Re: Hosting Server Error

Postby Blink on Mon Apr 16, 2012 10:23 am

Open the console and try sv_lan 0
User avatar
Blink
Cool 'n that
Cool 'n that
 
Joined: Fri Oct 08, 2004 4:16 pm
Location: UK

Re: Hosting Server Error

Postby stukabomber44 on Mon Apr 16, 2012 10:52 am

I tried that, but nothing worked. After reading quite a bit of forum talk on this, there's something called server.cfg in the hl2mp/cfg file, but I don't have that file. Any ideas where to get it??

I also port forwarded everything, friend can see my server but can join! :'(

Please help!!

sb44
stukabomber44
Regular
Regular
 
Joined: Sun Nov 14, 2010 7:33 pm
Location: Canada

Re: Hosting Server Error

Postby Blink on Mon Apr 16, 2012 11:21 am

You need to create it yourself. A template file can help. I found this on my first google search - http://forums.srcds.com/viewtopic/10/2
User avatar
Blink
Cool 'n that
Cool 'n that
 
Joined: Fri Oct 08, 2004 4:16 pm
Location: UK

Re: Hosting Server Error

Postby stukabomber44 on Mon Apr 16, 2012 7:30 pm

Hmmm well that was a step in the right direction I'm sure, but it still doesn't let friends connect - I've also enabled the program to pass the firewall. >.<
stukabomber44
Regular
Regular
 
Joined: Sun Nov 14, 2010 7:33 pm
Location: Canada

Re: Hosting Server Error

Postby iain555 on Sun Apr 22, 2012 1:06 am

Here's what I do for listen servers:
Code: Select all
sv_lan 0
ip <yourexternalip>
heartbeat
changelevel <mapname>



The changelevel is crucial for some reason
User avatar
iain555
Regular
Regular
 
Joined: Tue May 05, 2009 3:59 pm
Location: Britain

Return to Programming

Who is online

Users browsing this forum: No registered users