View Full Version : Trouble hosting DS at LAN

25-12-2017, 00:42
Hi everyone,
got some trouble hosting a (offline) dedicated server...

With "sports play: false" my dedicate server starts fine, it shows up on all connected engines in steam -> servers view.
I also can join, host,... games on it. But of course its only working with an internet connection.

If I enable sports play the dedicated server gets stuck at "[2017-12-25 01:23:45] INFO: Dedicated server is starting..." - no matter if theres an online connection.
Followed by a warning, everytime if I refresh the steam LAN servers list on any network device.
[2017-12-25 01:25:59] WARNING: Failed to parse incoming p2p packet from 8462073849389776895, size 17 - unknown message kind 114 set

Ports are free to use at the firewall settings, also tried various server.cfgs.
Always the same, all get stuck at starting on LAN mode.

Any ideas? Did I get something wrong?


25-12-2017, 00:54
I got the failed to parse incoming P2P, when the LAN server was an older version, than the client. Also you must use the -sportsplay commandline for the client to see that server ingame.

25-12-2017, 10:37
I run a dedi from my house but have noticed that when I connect via the in game lobby, just as I would any other MP server, my ping is about 5ms to everyone else’s 20 to whatever. From this it looks like I am connecting over the lan to the server. I never took any steps to make the server a LAN one.

So my suggestion would be to make sure there is an internet connection available on your LAN then just have everyone connect in the normal way via the lobby and it might auto connect everyone over the LAN.

If that doesn’t work it might just be I’m connecting over the net on a very short route as I have FTTP and an extremely good internet connection (many in the UK get 15-30ms ping times when connected to my server). I’d need to run a trace route to see how few hops I’m taking.

25-12-2017, 12:58
Thats happening on almost any dedicated server in almost amy type of game - or may say, thats what DS are made for.
Hosting games without connecting to offical server.
If you run the server on your local network ofcourse you connect via LAN, theres no reason to communicate to it via internet, since you create a direct connection to the server.

In case of pCars2 it's just a lil different, the dedicated server connects to Steam to show up in public lists, also may some kind of anti piracy stuff.
Thats the point my DS is failing on LAN mode, even if there's an internet connection it gets stuck at starting.

Also a normal DS works in LAN for some time if you cut down the internet connection, just until the next data-update-whatever ping to steam, or wherever, gets no response and the DS shuts down.

I got the failed to parse incoming P2P, when the LAN server was an older version, than the client. Also you must use the -sportsplay commandline for the client to see that server ingame.

Since the server doesn't even start I guess the client version doesn't even matter.
And also, as said, I can connect to it on internet mode.

Getting a good working internetconnection there would be bumpy as hell or almost impossible, since we'd need about 2-3 wlan repeaters of a few hundred meters cable.
So we decided to f* that and playing a LAN like in the late 90s.

25-12-2017, 14:22
pCars˛ multiplayer is provided by Steamworks. What I've not tried to do is launch steam in offline mode to see if the LAN server lists. What I did do, was enable sportsplay on my LAN server, and added -sportsplay to my client commandline. When I launched client, then go to servers, I can then see the LAN server to connect to it. Otherwise without the -sportsplay commandline parameter, the client never finds the server.

When I had forgotten to update the LAN server, the client preety much stays up to date, i got the failed to parse incoming P2P error.

And if I remember right, if you attempt to connect to any internet server, with the -sportsplay commandline parameter in place, pCars˛ poops itself, sideways...

25-12-2017, 15:46
And once again...
The client has absolutly nothing to do with it. So optional starting commands are way more than optional at this point.
Or in other words, doesn't matter what I do, the server will never show up to the client / steam overviews, since there is no server running.
The DS itself gets stuck on LAN mode / sportsplay and never switches to a running state.

also there should be no internet connection needed by the sportsplay description itself
"Recommended for offline LAN-only events."

25-12-2017, 15:52
and once again, pCars˛ multiplayer is provided by Steamworks. For the DS to not uplink to the master server, sportsplay must be enabled in the DS configuration. For a client to see the server in LAN, must have the -sportsplay commandline parameter added. If you have actually done this, you'd know. And if the server is not the most recent version, the client can't see the server.

25-12-2017, 16:17
Dont get me wrong, I'm happy someone is willing to help, but the problem is not finding my server, the problem is getting the server running at all - so it should have nothing to do with clients settings.

Sportsplay disabled: it starts, it runs, I find it, I can host games on it, it runs for hours.
Sportsplay eabled: DS getting stuck in starting and generating fails if I check for LAN Servers.

Also the DS should be latest, since I redownloaded and reinstalled it a couple times

25-12-2017, 16:21
Uninstall the LAN DS, reinstall it. Ensure to enable sportsplay in the server.cfg. For testing purposes, only configure the server.cfg, so comment out the rotation lua script.

Sadly, reinstalling the DS has made it work for one other person I was helping.

SMS also did release an update for the DS on like the 20th of December. With little to no fanfare, I updated my DS, but not my LAN DS. Will update it soon... I think, I have not been using my LAN DS very much lately.

27-12-2017, 23:18
Couple reinstalls and new configs later...
Seems to work now.