Port forwarding compatible with AMP sleep mode?

Pop!_OS 22.04 LTS
AMP Release “Callisto” v2.5.1.8, built 03/09/2024 11:47

I’ve found out that the service I’ve previously used for port forwarding, playit.gg, is somehow incompatible with AMP’s sleep mode for servers.

Is it necessary to choose between port forwarding and server sleeping, or does anyone know a way (or other service) that will work?

An alternative I know of would be localxpose, but it’s $6/mo. Ngrok used to be decent, but they’ve changed their pricing model and it’s not all that viable anymore.
Though considering that similar solutions might be tunneling similar to playit.gg, you might run into the same issue.
For Minecraft specifically, TCPShield has a free tier, but I’m not sure how well it works with modded servers.

1 Like

Okay, so, I don’t know how much of this is significant; it may have just been a result of power-cycling and exiting/entering NeoForge client enough times, but I got it to work. Here are my settings:

  • AMP Instance Manager

    1. Minecraft>Network>Server IP Address = 127.0.0.1 (Loopback (IPv4))
    2. Minecraft>Sleep Mode>Wake from sleep = When the server is pinged
  • playit.gg

    1. Tunnels>from-key-???>[My Tunnel]>Update Local Address>Local Address = 127.0.0.1
    2. Tunnels>from-key-???>[My Tunnel]>Update Local Address>Local Port = 25565

Again, no idea why this suddenly decided to start working, but I won’t complain (unless it stops again).

By the by, for anyone who may want it who found this page, I can save you a few minutes of writing a script to open AMP Instance Manager in browser and playit in the background:

#!/bin/bash

xdg-open http://192.168.50.171:8080/

if screen -list | grep -q “screen_playit”
then

  screen -S "screen_playit" -X kill

fi

screen -d -m -S “screen_playit”
gnome-terminal – screen -d -r “screen_playit”
screen -S “screen_playit” -p 0 -X stuff “playit \n”
screen -d -S “screen_playit”

screen my beloved lol, good to hear it’s working now!

1 Like

By the way, it looks like the trick to getting this to work consistently may be to relaunch playit after the server has entered sleep mode. I’m hoping to figure out how to do that in this thread.