LAN Server Doesn't Show on the In-Game Server List
Just curious if there is any information on how to setup an AAPG LAN server so that it will show up in the game browser list under LAN.... split from Problems Hosting LAN Party Server - Can't Connect
We are gearing up to run a weekend-long tournament style LAN Party with 4-6 servers and 50-100 people in the end of November, so while the console command (> open 000.000.000.000 works, it would be really good to be able to pick the server from the in-game server list.
Any help appreciated.
Comments
On the server side (AAGame.exe /SERVER) I can see it listening for the LAN Server Query on port 49001
And I can see it broadcasting its "I'm Alive" packets
However on the client side (AAGame.exe) running the in-game browser on the LAN tab (refresh) there is no connection listening to the port LAN Server Broadcast Port (49000) to receive the "I'm Alive" broadcast.
Interestingly there is a connection listening to LAN Server Broadcast Port (49000) for AALauncher32.exe, which is where the server browser used to live during the beta.
By the way, a tournament is a great idea! This is an in-person, BYOC* event?!
( * - Bring Your Own Computer)
This has been a test of the emergency flame-fest system. Please do not adjust your set.
We are planning to let people bring their own keyboards, mice, etc., but we'll control the computer setup.
Ensure that those firewall profiles are disabled, also, try to multi-home the server to your lan address.
DISCIPLINED AGGRESSION =|= AAPG SIGS
Tried the Multihomed setup ... which is intended to allow us to run multiple game servers on a single host, right? ... no change in LAN behavior.
Based on what I'm seeing in NETSTAT, it looks like the AALauncher32.exe is the only thing looking at the LAN Server Broadcast port (49000).
My guess is that the LAN portion of the In-Game server browser hasn't been fully moved from the AALauncher32.exe to the new post-beta interface in AAGame.exe. I don't expect that will be patched before we'd need it at the end of November.
Looking for a Plan B :-)
I managed to write (i.e., cobbled together from the talented work of others) a PHP script that listens for a few seconds for the server UDP LAN broadcast on 255.255.255.255:49000 and builds a list of hosts. Then it loops thru the list and issues a TCP Host Query on each host in the list building an HTML table of the information. So far so good.
If you execute "c:\path-to-aapg\AAGame.exe 192.168.1.69?Name=FocacciaBread" at the CMD prompt AAGame opens right into the LAN server running on that IP and the connected player name is set to FocacciaBread whether Steam is running or not.
I can't find a way to launch AAGame from that HTML page with the serverIP as a parameter. I can get close by setting up a Custom URI Scheme called AAPG to run AAGame. This which allows me put something like this in a HTML HREF:
"AAPG:192.168.1.69?Name=Francus"
After a little regediting Internet Explorer (other browsers won't work) will run AAGame.exe when it sees this scheme in a link. See this article for more information:
Registering an Application to a URI Scheme
But I can't get it to handle any parameters like serverIP or username. It just runs AAGame.exe which comes up on the main menu.
Any help appreciated.
steam://connect/IP:QueryPort
example
steam://connect/192.168.1.69:27020
This should work on a lan, as the query is sent directly to the game server and is not ushered via steam.
Default steam works query port for AAPG is 27020
DISCIPLINED AGGRESSION =|= AAPG SIGS
I don't know what else to do for you from here, Sorry Guy!
DISCIPLINED AGGRESSION =|= AAPG SIGS
But in the Meantime PLAN "B" is complete: I built my own LAN Server Browser.
I built a PHP web page that:
- listens on UDP 49000 for AAPG LAN Server Announcements
- Displays a list of servers in a table with a JOIN button
- Clicking the JOIN button launches AAGame.exe with the server IP and an optional player name which loads directly into the selected LAN server
Works with Internet Explorer and Chrome (both give a bunch of security warnings initially, but you can switch them off).The key was setting up a URI Scheme to launch AAGame.exe from the browser, which required two parts:
- a .bat file to launch the game with the parameters properly formatted.
- a registry key to trigger the .bat file when the scheme is used in the browser
This setup allows me to have a link in a web page that looks like this: Clicking the link invokes the aapg URI scheme which in turn runs the .bat file which in turn formats the arguments properly for AAGame.exe and runs the game.DISCIPLINED AGGRESSION =|= AAPG SIGS
Any Chance you'll donate your PHP code to the community?
(Happy to donate the code ... be warned it's kind of h-a-c-k and slash.)