Lan Waypoints

  • The FTB Forum is now read-only, and is here as an archive. To participate in our community discussions, please join our Discord! https://ftb.team/discord

Forabor

New Member
Jul 29, 2019
17
0
0
I dont want to run a server so when me and my brother play together i just open the game to lan.
Of course it chooses its own port everytime.
The problem is waypoints are saved based on ip address and port so every time my brother connects to me he loses his waypoints.
Does anyone know of a mod that works with Direwolf20 1.6.4 that lets me choose which port i open the lan to?
 

gallowglass

New Member
Jul 29, 2019
226
0
0
How I deal with this is I find the waypoints file and then make several other links to it.

For example, if the waypoints are in a file called something like 192.168.1.110 but now my server IP is 192.168.1.115, then I make files called 192.168.1.111, 192.168.1.112, etc. that are just links to 192.168.1.110.

Kind of a kludge, but it works.

Also, your router might have an option to reserve and IP address based on MAC address so that your machine doesn't move around.
 

loboca

New Member
Jul 29, 2019
416
0
0
Or he could hardcode his IP outside the DHCP range. If his router assigns 192.168.1.100 - 192.168.1.200 to DHCP, just set his host computer's IP to 192.168.1.25 or so.
 

Forabor

New Member
Jul 29, 2019
17
0
0
Or he could hardcode his IP outside the DHCP range. If his router assigns 192.168.1.100 - 192.168.1.200 to DHCP, just set his host computer's IP to 192.168.1.25 or so.

I already have a static ip address. The problem is that it opens up on a different port everytime. ie: 192.168.1.12:56047 or 192.168.1.12:63817
 

loboca

New Member
Jul 29, 2019
416
0
0
Well that's dumb.

Hrm, ok, well from here maybe run something like the below but change the "connectport" to whatever your LAN server opens it's port to::

netsh interface portproxy add v4tov4 listenport=4422 listenaddress=127.0.0.1 connectport=56047 connectaddress=192.168.1.12

Listenport is arbitrary on his workstation, but must be above 1024.
Listenaddress can also be his static IP or 127.0.0.1 (loopback).
Connectport will change everytime.
Connectaddress is your static IP.

Also from that webpage, make sure to have the IPv6 libraries installed in his windows machine (its linked in a comment under the answer).

If you want to run the script on your machine, so he doesn't have to deal with it, try swapping the addresses for the listenaddress and connectaddress (listenaddress=192.168.1.12 connectaddress=127.0.0.1).

Give that a shot and see if it helps.
 

MigukNamja

New Member
Jul 29, 2019
2,202
0
0
You could also run an MC server as a separate process. The stand-alone server always uses the same port. You can run the server from the same machine as one of the clients.
 
  • Like
Reactions: gallowglass