
stormray73
Joined: Apr 21, 2015
|
Posted: Apr 21, 2015 10:57 PM
Msg. 1 of 22
So I would like to use the features of the dedicated server, but my internet plan is to small for me to be able to do port forwarding ('cause it will suck data like there's no tomorrow) so I was wondering if
1) Dedicated servers can be ran as a LAN server
2) Do I require another computer to be able to join my own server?
Many thanks,
Storm
|
|
|

BKTiel
Joined: Mar 18, 2014
strong independent bird needs no cage
|
Posted: Apr 21, 2015 11:18 PM
Msg. 2 of 22
If it's a local IP you shouldn't run into any issues. If the PC you're playing on is also the one hosting, just direct IP connect to localhost. Other computers on the network would do the same except to your local IPv4 address.
I've never found the LAN games function to work in any copy I've bought and installed, so can't really speak on that.
|
|
|

not giraffe
Joined: Jul 17, 2014
|
Posted: Apr 21, 2015 11:33 PM
Msg. 3 of 22
In the init.txt put 'sv_public false'. You should also change your client port in the settings of your game profile.
|
|
|

Dennis

Joined: Jan 27, 2005
"We are made of starstuff.” ― Carl Sagan
|
Posted: Apr 22, 2015 01:49 AM
Msg. 4 of 22
Quote: --- Original message by: stormray73 So I would like to use the features of the dedicated server, but my internet plan is to small for me To determine how many clients you can have connected to your server divide your up stream bandwidth (mega bits) by 40Mb/s. Quote: --- Original message by: stormray73 1) Dedicated servers can be ran as a LAN server
Yes. there is no difference between a lan and internet server except access to the net. Quote: --- Original message by: stormray73 2) Do I require another computer to be able to join my own server?
While not required, it is recommended. It all depends on how powerful your PC is and if there is enough processing power to run both lag free. If you decide to run both on the same PC, and I do not recommend you do so, you will have to change the ports of either the client or the server to allow them to talk to each other or else there will be a port conflict when you start the client game. The client, you see, locks the ports for its own server process.
|
|
|

stormray73
Joined: Apr 21, 2015
|
Posted: Apr 22, 2015 07:26 AM
Msg. 5 of 22
Quote: --- Original message by: raffgie In the init.txt put 'sv_public false'. You should also change your client port in the settings of your game profile. What exactly do you mean by this? I shouldn't use 2303?
|
|
|

not giraffe
Joined: Jul 17, 2014
|
Posted: Apr 22, 2015 04:39 PM
Msg. 6 of 22
Quote: --- Original message by: stormray73Quote: --- Original message by: raffgie In the init.txt put 'sv_public false'. You should also change your client port in the settings of your game profile. I shouldn't use 2303? You shouldn't if you are using default ports on your dedicated server. You can change 2303 to 2304 or pretty much whatever port you want that is open. Edited by raffgie on Apr 22, 2015 at 04:39 PM
|
|
|

stormray73
Joined: Apr 21, 2015
|
Posted: Apr 23, 2015 10:04 AM
Msg. 7 of 22
Quote: --- Original message by: raffgieQuote: --- Original message by: stormray73Quote: --- Original message by: raffgie In the init.txt put 'sv_public false'. You should also change your client port in the settings of your game profile. I shouldn't use 2303? You shouldn't if you are using default ports on your dedicated server. You can change 2303 to 2304 or pretty much whatever port you want that is open. Edited by raffgie on Apr 22, 2015 at 04:39 PM So how exactly do I do this?
|
|
|

Super Flanker
Joined: Oct 5, 2012
The length of your life depends on my aim.
|
Posted: Apr 23, 2015 10:18 AM
Msg. 8 of 22
Quote: --- Original message by: raffgie You should also change your client port in the settings of your game profile.
Edited by SS Flanker on Apr 23, 2015 at 10:19 AM
|
|
|

stormray73
Joined: Apr 21, 2015
|
Posted: Apr 23, 2015 11:44 AM
Msg. 9 of 22
Quote: --- Original message by: SS FlankerQuote: --- Original message by: raffgie You should also change your client port in the settings of your game profile.
Edited by SS Flanker on Apr 23, 2015 at 10:19 AM Ok... so I've done everything you guys have said. Server Port: 2302 Client Port: 2304 Init.txt file: sv_name "Shotguns Forever" sv_public false sv_maxplayers 16 sv_mapcycle_timeout 5 map_cycle_add beavercreek "Shottie Slay" map_cycle_add bloodgulch "Shottie CTF" map_cycle_add derelict "Shottie Slay" map_cycle_add timberland "Rocket King" map_cycle_add damnation "Shottie CTF" map_cycle_add prisoner "Shottie Slay" map_cycle_add extinction "Shottie CTF" Ip i put in client: localhost what am I doing wrong? I couldn't join the server.
|
|
|

not giraffe
Joined: Jul 17, 2014
|
Posted: Apr 23, 2015 02:57 PM
Msg. 10 of 22
If you are connecting through direct IP, then you must also include the server port number. So for example it could be 'localhost:2302'. Also, it looks like you are trying to use SAPP. If you are using SAPP I would change the init.txt to this: Quote:
sv_name "Shotguns Forever" sv_public false sv_maxplayers 16 sv_mapcycle_timeout 5 load mapcycle_add beavercreek "Shottie Slay" mapcycle_add bloodgulch "Shottie CTF" mapcycle_add derelict "Shottie Slay" mapcycle_add timberland "Rocket King" mapcycle_add damnation "Shottie CTF" mapcycle_add prisoner "Shottie Slay" mapcycle_add extinction "Shottie CTF" mapcycle_begin Edited by raffgie on Apr 23, 2015 at 03:14 PM
|
|
|

RadWolfie
Joined: Dec 24, 2013
Programmer
|
Posted: Apr 25, 2015 04:28 PM
Msg. 11 of 22
Quote: --- Original message by: stormray73 1) Dedicated servers can be ran as a LAN server Yes, it can. Even your client can be a LAN too, if you choose to create one in LAN. You can tell by going in "multiplayer" menu. Quote: --- Original message by: stormray73 2) Do I require another computer to be able to join my own server? That's an optional. However both dedicated and client will not play nicely with default ports. So, either one need to set a number other than default for -port AND -cport. At first I thought it has to do with -port parameter issue, however it also need -cport included base on experienced and reverse engineering accidental discovery a dedicated server also uses client port as well. For what purpose? I'm not sure... Also, if want to see LAN Lobby listing the servers to work correctly (between multi-computers on one same local network). I believed your network need to be set as Home/Work network instead of Public network. I sort of able to remember from years, years ago... Using "Public network" just prevent communication between 2 or more computers on same network nor able to list another computer at "Network" in File Explorer.
|
|
|

stormray73
Joined: Apr 21, 2015
|
Posted: Apr 25, 2015 05:19 PM
Msg. 12 of 22
1) Reason for wanting to run dedicated server for LAN is this: I want to use the full features of a halo dedicated server (so i have the map cycle option etc) while playing at home with my brothers, but not using data by connecting to the internet. (I can explain this more if you need)
2) Can you explain the -port/-cport thing a little bit more?
3) My network is set to home (cause it's at home)
4) Just out of curiosity, would I be able run this off of like a website server? (I'm just thinking outside the box...)
Thanks for your continued feedback in my noobishness (I only just started playing Halo CE)
|
|
|

Dennis

Joined: Jan 27, 2005
"We are made of starstuff.” ― Carl Sagan
|
Posted: Apr 25, 2015 05:45 PM
Msg. 13 of 22
These should help: Running A Halo CE Dedicated Server http://hce.halomaps.org/index.cfm?nid=323Running multiple instances of the Server http://hce.halomaps.org/index.cfm?nid=317Keep in mind that when you start a client it essentially locks all the ports for it's own server. Each client has it's own server so you can host a game. So if you run the dedicated server on the same machine as the client then you have to treat the dedicated server as if it was a second instance and configure it as such. Edited by Dennis on Apr 25, 2015 at 05:45 PM
|
|
|

stormray73
Joined: Apr 21, 2015
|
Posted: Apr 25, 2015 05:57 PM
Msg. 14 of 22
Quote: --- Original message by: DennisRunning multiple instances of the Server http://hce.halomaps.org/index.cfm?nid=317Keep in mind that when you start a client it essentially locks all the ports for it's own server. Each client has it's own server so you can host a game. So if you run the dedicated server on the same machine as the client then you have to treat the dedicated server as if it was a second instance and configure it as such. Edited by Dennis on Apr 25, 2015 at 05:45 PM Should I put this into the target (like adding console) or should I run this in command line?
|
|
|

RadWolfie
Joined: Dec 24, 2013
Programmer
|
Posted: Apr 25, 2015 06:48 PM
Msg. 15 of 22
Quote: --- Original message by: stormray73 2) Can you explain the -port/-cport thing a little bit more?
-port is used for server port number specifically to host whilst -cport is client port. Quote: --- Original message by: stormray73 3) My network is set to home (cause it's at home)
Then you should be able see 1 or more dedicated servers on your LAN lobby. Quote: --- Original message by: stormray73 4) Just out of curiosity, would I be able run this off of like a website server? (I'm just thinking outside the box...) It all depends on your server's system spec to able support a game server like Halo. If talking about hosting company that only provide a web host, then no that's not even permitted if there is a way to bypass it. As for "Running multiple instances of the Server" tutorial, it also needs -cport included. Don't ask me why, that's how halo dedicated server programmed to do since it does use client port. Or else no one else will be able to join in same server on same computer when you join in your own server. Quote: --- Original message by: Dennis Keep in mind that when you start a client it essentially locks all the ports for it's own server. Each client has it's own server so you can host a game. So if you run the dedicated server on the same machine as the client then you have to treat the dedicated server as if it was a second instance and configure it as such. Client does not lock all the ports. If that were true, then we will have xfire, steam, web browsers, etc, etc, having problem receiving data, aka connecting, either locally and/or Internet except for the client of course. The real fact is Client will lock only TWO ports which are client & server ports. I'm guessing Dennis didn't read his reply carefully? Quote: --- Original message by: stormray73 Should I put this into the target (like adding console) or should I run this in command line? Either one will work fine.
|
|
|

Dennis

Joined: Jan 27, 2005
"We are made of starstuff.” ― Carl Sagan
|
Posted: Apr 25, 2015 11:33 PM
Msg. 16 of 22
Quote: --- Original message by: RadWolfieAs for "Running multiple instances of the Server" tutorial, it also needs -cport included. Don't ask me why, the dedicated server port is specified on the command line with "port XXXX". The cPOrt command is only for the client not the server. Quote: --- Original message by: RadWolfie Client does not lock all the ports. It locks the server and client ports specified in the settings of the client. The recommendation is to not run a client on the same PC as the dedicated server since the client has it's own server anyway. It is redundant. Start the client host a game and then just leave HaloCE running and minimize it if you are not playing.
|
|
|

not giraffe
Joined: Jul 17, 2014
|
Posted: Apr 25, 2015 11:41 PM
Msg. 17 of 22
Quote: --- Original message by: sparky The setting should be "sv_public 0", not "sv_public false". It's a boolean. True or false, on or off, and 1 or 0 are accepted values. Edited by raffgie on Apr 25, 2015 at 11:48 PM
|
|
|

Btcc22
Joined: Dec 17, 2012
|
Posted: Apr 25, 2015 11:48 PM
Msg. 18 of 22
Quote: --- Original message by: Dennis Start the client host a game and then just leave HaloCE running and minimize it if you are not playing. Then the entire game grinds to a halt because there's nobody there to manually start the next game. If you're not going to be around for a while or you'd like to take advantage of some of the server mods, it's better to use the dedicated server. Edited by Btcc22 on Apr 25, 2015 at 11:49 PM
|
|
|

stormray73
Joined: Apr 21, 2015
|
Posted: Apr 26, 2015 12:41 AM
Msg. 19 of 22
Quote: --- Original message by: DennisQuote: --- Original message by: RadWolfieQuote: --- Original message by: Dennis
The recommendation is to not run a client on the same PC as the dedicated server since the client has it's own server anyway. It is redundant. Start the client host a game and then just leave HaloCE running and minimize it if you are not playing. I want to be able to run several maps in sequence, as well as having the sv_mapcycle commands. You do not have that option with the client games (I tried) Edited by stormray73 on Apr 26, 2015 at 12:43 AM
|
|
|

Dennis

Joined: Jan 27, 2005
"We are made of starstuff.” ― Carl Sagan
|
Posted: Apr 27, 2015 07:56 PM
Msg. 20 of 22
Quote: --- Original message by: Btcc22 Then the entire game grinds to a halt because there's nobody there to manually start the next game. If you're not going to be around for a while or you'd like to take advantage of some of the server mods, it's better to use the dedicated server.
Good point I forgot about that.
|
|
|

stormray73
Joined: Apr 21, 2015
|
Posted: Apr 27, 2015 09:22 PM
Msg. 21 of 22
Yup. That and I want to be able to skip maps (again, not a feature of the client game)
|
|
|

stormray73
Joined: Apr 21, 2015
|
Posted: Apr 28, 2015 08:46 PM
Msg. 22 of 22
Therein lies why I wish to play LAN games with the dedicated server. I'm going to try to run the dedicated server off of my PC emulator on my mac. Hopefully it will work.
|
|
|