I had some trouble with getting AMP going in UnRaid as I'm brand new to both it and Docker. For any other newbies that may be cruising around looking for a brief step-by-step, I hope this helps. **As an aside, this is primarily for addressing port issues**
My goal was to migrate my existing Valheim world from my ancient Dell R300, bare metal Linux server, to my newly built custom chassis with UnRaid. Here's what worked:
Edit the AMP container and follow these instructions:
By default, the container will have a 'Port:' variable for you to populate. You'll notice in that variable that it's commented as 'Web Interface Port'. This will be the port you use to get to AMP's GUI. Pick a port that's not being used by anything else on your network.
Now we need to add the ports the game server needs. For my Valheim server, port 2456 is default, so that's what I'm going to add. First, navigate to the bottom of the page and click "+ Add another Path, Port, Variable, Label or Device".
On the configuration window that opens, select "Port" from the drop-down, choose a name for the new config. (this can be anything you like), and then put your game server port in "Container Port", "Host Port", and "Default Value". Now, for connection type, you're going to select TCP or UDP. You'll need both of these, so once you finish creating this one as TCP, you'll create another config. for UDP using the same ports.
Once you have all of this done, you should see all of these ports being mapped to AMP in your docker tab
And now, specifically for the folks who want to run a cross-play Valheim Server, you'll need to do a couple of things before it will work.
Enable cross-play in your Valheim configuration in AMP
Next, you're going to need to install some dependencies in your AMP Docker container. To do this, navigate to the Docker tab in Unraid, click on the AMP icon, and select Console. Your first command should be 'apt update'. Once the repo is updated, enter this: 'apt install libpulse-dev libatomic1 libc6'. Once these packages install, restart AMP and you should be good to go.
Most of this is probably common knowledge, but I hope it helps someone!