[GH-ISSUE #1240] What's up with Arma3 ports? #966

Closed
opened 2026-02-27 02:54:33 +03:00 by kerem · 6 comments
Owner

Originally created by @UltimateByte on GitHub (Jan 12, 2017).
Original GitHub issue: https://github.com/GameServerManagers/LinuxGSM/issues/1240

Originally assigned to: @UltimateByte on GitHub.

Since only one is required and is set with start parms, then why are they into the cfg file?
And especially, why ERROR! Missing/commented ports in arma3-server.server.cfg error message even exists, since this is absolutely normal for them to be commented?

First time I'm looking into it, and I feel confused, maybe I'm missing something.
So does this guy with this error message http://steamcommunity.com/groups/linuxgsm/discussions/0/144513128846028225/

https://github.com/GameServerManagers/Game-Server-Configs/blob/master/Arma3/server.cfg#L14
https://github.com/GameServerManagers/LinuxGSM/blob/master/Arma3/arma3server#L31
https://github.com/GameServerManagers/LinuxGSM/blob/master/lgsm/functions/command_details.sh#L521

At first glanc,e I guess port info should come from the main port and some additions set here
https://github.com/GameServerManagers/LinuxGSM/blob/master/lgsm/functions/info_config.sh#L335

Originally created by @UltimateByte on GitHub (Jan 12, 2017). Original GitHub issue: https://github.com/GameServerManagers/LinuxGSM/issues/1240 Originally assigned to: @UltimateByte on GitHub. Since only one is required and is set with start parms, then why are they into the cfg file? And especially, why `ERROR! Missing/commented ports in arma3-server.server.cfg` error message even exists, since this is absolutely normal for them to be commented? First time I'm looking into it, and I feel confused, maybe I'm missing something. So does this guy with this error message http://steamcommunity.com/groups/linuxgsm/discussions/0/144513128846028225/ https://github.com/GameServerManagers/Game-Server-Configs/blob/master/Arma3/server.cfg#L14 https://github.com/GameServerManagers/LinuxGSM/blob/master/Arma3/arma3server#L31 https://github.com/GameServerManagers/LinuxGSM/blob/master/lgsm/functions/command_details.sh#L521 At first glanc,e I guess port info should come from the main port and some additions set here https://github.com/GameServerManagers/LinuxGSM/blob/master/lgsm/functions/info_config.sh#L335
kerem 2026-02-27 02:54:33 +03:00
Author
Owner

@dgibbs64 commented on GitHub (Jan 12, 2017):

Ideally parms should not be used and instead the config should be used. I recommend testing arma 3 with the port being using from the config and remove the parms port="2302"

We should only use parms if we have no choice. Make things less complicated

<!-- gh-comment-id:272297246 --> @dgibbs64 commented on GitHub (Jan 12, 2017): Ideally parms should not be used and instead the config should be used. I recommend testing arma 3 with the port being using from the config and remove the parms ```port="2302"``` We should only use parms if we have no choice. Make things less complicated
Author
Owner

@UltimateByte commented on GitHub (Jan 12, 2017):

OK, thx, will test it right now.

<!-- gh-comment-id:272306835 --> @UltimateByte commented on GitHub (Jan 12, 2017): OK, thx, will test it right now.
Author
Owner

@UltimateByte commented on GitHub (Jan 12, 2017):

So test 1) Remove port start parameter, and start with default commented config

23:44:55 Game Port: 2302, Steam Query Port: 2303
23:44:55 Initializing Steam server - Game Port: 2302, Steam Query Port: 2303
Arma 3 Console version1.66.139586  : port 2302

Test 2) Try altering config file:

// Server Port
serverport=2310;

// Steam Master Port
steamport=2320;

steamqueryport=2330;

Result:

23:47:18 Game Port: 2302, Steam Query Port: 2303
23:47:18 Initializing Steam server - Game Port: 2302, Steam Query Port: 2303
Arma 3 Console version1.66.139586  : port 2302

Arma3 don't care about ports set within config files.

Test 3) Remove anything about ports in cfg file, and try with port start parms

23:49:13 Game Port: 2330, Steam Query Port: 2331
23:49:13 Initializing Steam server - Game Port: 2330, Steam Query Port: 2331
Arma 3 Console version1.66.139586  : port 2330

Conclusion: Sadly, we have to remove port config from config file and use start parameters only.

<!-- gh-comment-id:272310351 --> @UltimateByte commented on GitHub (Jan 12, 2017): So test 1) Remove port start parameter, and start with default commented config ```` 23:44:55 Game Port: 2302, Steam Query Port: 2303 23:44:55 Initializing Steam server - Game Port: 2302, Steam Query Port: 2303 Arma 3 Console version1.66.139586 : port 2302 ```` Test 2) Try altering config file: ```` // Server Port serverport=2310; // Steam Master Port steamport=2320; steamqueryport=2330; ```` Result: ```` 23:47:18 Game Port: 2302, Steam Query Port: 2303 23:47:18 Initializing Steam server - Game Port: 2302, Steam Query Port: 2303 Arma 3 Console version1.66.139586 : port 2302 ```` Arma3 don't care about ports set within config files. Test 3) Remove anything about ports in cfg file, and try with port start parms ```` 23:49:13 Game Port: 2330, Steam Query Port: 2331 23:49:13 Initializing Steam server - Game Port: 2330, Steam Query Port: 2331 Arma 3 Console version1.66.139586 : port 2330 ```` Conclusion: Sadly, we have to remove port config from config file and use start parameters only.
Author
Owner

@UltimateByte commented on GitHub (Jan 14, 2017):

Also, port info is broken atm.

ERROR! Missing/commented ports in arma3-server.server.cfg.

DESCRIPTION              DIRECTION  PORT  PROTOCOL
> Game                   INBOUND    2302  udp
> Steam: Query           INBOUND    udp
> Steam: Master traffic  INBOUND    udp

Will be a hotfix, since it's quite critical for ARMA IMO, and also, because we need to make sure to alter cfg file at the same time as the master commit.

<!-- gh-comment-id:272637639 --> @UltimateByte commented on GitHub (Jan 14, 2017): Also, port info is broken atm. ```` ERROR! Missing/commented ports in arma3-server.server.cfg. DESCRIPTION DIRECTION PORT PROTOCOL > Game INBOUND 2302 udp > Steam: Query INBOUND udp > Steam: Master traffic INBOUND udp ```` Will be a hotfix, since it's quite critical for ARMA IMO, and also, because we need to make sure to alter cfg file at the same time as the master commit.
Author
Owner

@UltimateByte commented on GitHub (Jan 14, 2017):

Proper output:

Ports
==================================================================================================
Change ports by editing the parameters in:
arma3server

Useful port diagnostic command:
netstat -atunp | grep arma3server

DESCRIPTION              DIRECTION  PORT  PROTOCOL
> Game                   INBOUND    2302  udp
> Steam: Query           INBOUND    2303  udp
> Steam: Master traffic  INBOUND    2304  udp
> Undocumented Port      INBOUND    2305  udp

Awaiting merge.

<!-- gh-comment-id:272639542 --> @UltimateByte commented on GitHub (Jan 14, 2017): Proper output: ```` Ports ================================================================================================== Change ports by editing the parameters in: arma3server Useful port diagnostic command: netstat -atunp | grep arma3server DESCRIPTION DIRECTION PORT PROTOCOL > Game INBOUND 2302 udp > Steam: Query INBOUND 2303 udp > Steam: Master traffic INBOUND 2304 udp > Undocumented Port INBOUND 2305 udp ```` Awaiting merge.
Author
Owner

@lock[bot] commented on GitHub (Jul 19, 2018):

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

<!-- gh-comment-id:406129311 --> @lock[bot] commented on GitHub (Jul 19, 2018): This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Sign in to join this conversation.
No labels
Atomic
Epic
cannot reproduce
command: backup
command: console
command: debug
command: details
command: fast-dl
command: install
command: mods
command: monitor
command: post-details
command: restart
command: send
command: start
command: stop
command: update
command: update-lgsm
command: validate
command: wipe
distro: AlmaLinux
distro: Arch Linux
distro: CentOS
distro: Debian
distro: Fedora
distro: RedHat
distro: Rocky Linux
distro: Ubuntu
distro: openSUSE
engine: goldsrc
engine: source
game: 7 Days to Die
game: ARMA 3
game: Ark: Survival Evolved
game: Assetto Corsa
game: Avorion
game: BATTALION: Legacy
game: Barotrauma
game: Battalion 1944
game: Battlefield 1942
game: Black Mesa: Deathmatch
game: Blade Symphony
game: Call of Duty 2
game: Call of Duty 4
game: Call of Duty: United Offensive
game: Counter-Strike 1.6
game: Counter-Strike 2
game: Counter-Strike: Global Offensive
game: Counter-Strike: Source
game: Day of Infamy
game: Dayz
game: Death Match Classic
game: Don't Starve Together
game: ET: Legacy
game: Eco
game: Factorio
game: Factorio
game: Garry's Mod
game: Half-Life
game: Hurtword
game: Insurgecy
game: Insurgecy
game: Insurgency: Sandstorm
game: Just Cause 3
game: Killing Floor
game: Killing Floor 2
game: Left 4 Dead 2
game: Minecraft
game: Minecraft Bedrock
game: Mordhau
game: Multi Theft Auto
game: Mumble
game: Natural Selection 2
game: No More Room in Hell
game: Pavlov VR
game: Post Scriptum
game: Project Zomboid
game: Quake 3
game: QuakeWorld
game: Red Orchestra: Ostfront 41-45
game: Return to Castle Wolfenstein
game: Rising World
game: Rust
game: San Andreas Multiplayer
game: Satisfactory
game: Soldat
game: Soldier of Fortune 2
game: Squad
game: Squad 44
game: Starbound
game: Stationeers
game: Sven Co-op
game: Team Fortress 2
game: Teamspeak 3
game: Teeworlds
game: Terraria
game: The Front
game: Unreal Tournament 2004
game: Unreal Tournament 3
game: Unreal Tournament 99
game: Unturned
game: Valheim
game: Wurm Unlimited
game: Zombie Master Reborn
game: label missing
good first issue
help wanted
info: alerts
info: dependency
info: docker
info: docs
info: email
info: query
info: steamcmd
info: systemd
info: tmux
info: website
info: website
needs more info
outcome: duplicate
outcome: issue resolved
outcome: issue resolved
outcome: issue unresolved
outcome: pr accepted
outcome: pr rejected
outcome: unconfirmed
outcome: wontfix
outcome: wrong forum
potential-duplicate
priority
pull-request
type: bug
type: feature
type: feature
type: feature request
type: game server request
type: refactor
waiting response
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/LinuxGSM#966
No description provided.