[Singleplayer] Connecting Over LAN

Having issues? Ask here!
Forum rules
- Search for existing answers before creating a new topic
- Topic titles must be descriptive and searchable
- Duplicate questions will be redirected to the existing answer(s) and locked.
Post Reply
User avatar
tinypanda
Noob
Posts: 3
Joined: Sat Aug 20, 2022 3:44 am

[Singleplayer] Connecting Over LAN

Post by tinypanda »

I'm having trouble having someone else connect to my singleplayer server via LAN. I can have two instances running on the same server from the same computer, but not on two different computers. I tried running the singleplayer BAT launch (server+client) on one computer, but can't seem to connect on the other, using the multiplayer client (as suggested in a different, but similar thread). When I try to boot up the launcher on a different computer I get the js5connect, server is down error. Any help would be appreciated.
User avatar
Ceikry
Site Admin
Posts: 577
Joined: Wed Aug 10, 2022 11:48 pm
Location: Draynor Village
Has thanked: 81 times
Been thanked: 93 times

Re: [Singleplayer] Connecting Over LAN

Post by Ceikry »

If you want to do this, you should just play the live server we host instead.

Given, of course, that you have a stable net connection, there is no reason not to.

If you absolutely insist on playing solo, however, despite the fact that the community will miss you, all you need to do is change the IP that the client is trying to connect to. You need to change it to the LAN-local IP of the computer on your LAN that is hosting the server. For the standard multiplayer client, location varies based on OS.

Windows: C:\Users\You\config.json
Linux: /home/you/.local/share/2009scape/config.json

You need to change both ip_address and ip_management fields to match that LAN-local IP.
Nerds
User avatar
tinypanda
Noob
Posts: 3
Joined: Sat Aug 20, 2022 3:44 am

Re: [Singleplayer] Connecting Over LAN

Post by tinypanda »

I really appreciate the reply. It's basically so just my wife and I can play together...

I'm still having trouble connecting. Basically the steps I'm doing are as follows (let me know if any of it is dumb, I'm quite new).

1. Run singleplayer launch on Machine 1. Loads server and client fine.
2. Edit the config.json file in Users on Machine 2 to the IPv4 of Machine 1.
3. Run 2009scape.jar.
4. Unfortunately it still won't connect, get's stuck at the "2009scape is loading - please wait" screen.

I tried running singleplayer client.jar on Machine 2 with the included config.json edited to the IPv4 of Machine 1 but it gets stuck at the same spot.

Do I have to edit the the default.conf in worldprops on Machine 1?
User avatar
Ceikry
Site Admin
Posts: 577
Joined: Wed Aug 10, 2022 11:48 pm
Location: Draynor Village
Has thanked: 81 times
Been thanked: 93 times

Re: [Singleplayer] Connecting Over LAN

Post by Ceikry »

You probably don't have the right ports open *or* you have misconfigured JSON.
Can you send the full config.json please?
Nerds
User avatar
tinypanda
Noob
Posts: 3
Joined: Sat Aug 20, 2022 3:44 am

Re: [Singleplayer] Connecting Over LAN

Post by tinypanda »

Oh my goodness it worked (sort of!) You've saved my marriage.

Basically I was getting super frustrated so I swapped machines and ran the server on the other machine and it worked. Not ideal, not sure why the one won't host but I got it working.

Thank you so much.
User avatar
Ceikry
Site Admin
Posts: 577
Joined: Wed Aug 10, 2022 11:48 pm
Location: Draynor Village
Has thanked: 81 times
Been thanked: 93 times

Re: [Singleplayer] Connecting Over LAN

Post by Ceikry »

Seems odd, but glad you got it working.
different default firewall configuration maybe? Who knows.
Nerds
Post Reply