System Information
| Field |
Value |
| Operating System |
Linux - Ubuntu 26.04 on x86_64 |
| Product |
AMP ‘Proteus’ v2.8.0.4 (Mainline) |
| Virtualization |
VMware |
| Application |
Application Deployment |
| Module |
ADSModule |
| Running in Container |
No |
| Current State |
Indeterminate |
Problem Description
Issue
Hello, first time using amp, I have a server a friend is able to connect to with my public IP but I cannot using that same IP, Im pretty new to linux and VMs (currently running TrueNAS Scale with a VM running Ubuntu and AMP is running on that). Sorry for bad description currently pretty new to software and linux.
Reproduction Steps
- Tried port forwarding TreuNAS server and Ubuntu Server
- Local IP does not work
- Friend can connect from external using public IP but i cannot
Is the server a local machine on your LAN or are you using a VPS?
No, I am not using a VPS. AMP is running on my own physical server at home behind my router. The server is on my lan and I am trying to make it accessible externally through port forwarding.
My setup is:
-
Physical server at home running TrueNAS SCALE
-
AMP running in an Ubuntu VM/container
-
Router is a Bell Gigahub
-
Local connections work, but I was having issues getting external connections working properly.
Let me know what other details you need.
Ok, since you are local to the server, you don’t want to use the public (external) ip as you would be going back and forth through your router multiple times. You just need your local IP of the machine to connect to. Normally it will be 192.168.*.*
You can run
ip addr
in the VM to get it. That should get you connected.
I know its best practice to use my local IP for LAN connection but unfortunately that doesn’t work either and i just time out. I’ve noticed when i connect using my local IP in the console it still shows "(/Public IP:56071) lost connection: Timed out " and even with my public ip it shows the same thing. If i turn off my port forwarding rule from my router it does let me connect with the local IP.
Are the systems are on different subnets or VLANs? In your router, did you set routing with a subnet mask of 255.255.255.255? If so change it to 255.255.255.0.
I have to step away for a couple hours, but will check back later or someone else can step in as well.
Not a problemI appreciate the quick response! No, I am not using any VLANs and everything should be on the same subnet.
My home network is using 192.168.2.x with the router at 192.168.2.1. The TrueNAS server and Ubuntu VM running AMP are both on the same LAN.
My subnet mask is 255.255.255.0, not 255.255.255.255.
enp42s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether fc:9d:05:03:32:bc brd ff:ff:ff:ff:ff:ff
inet 192.168.2.42/24 brd 192.168.2.255 scope global dynamic enp42s0
valid_lft 251413sec preferred_lft 251413sec
inet6 fe80::fe9d:5ff:fe03:32bc/64 scope link proto kernel_ll
valid_lft forever preferred_lft forever
Just to catch up on what I read… You turn on the port forward in your router and you’re no longer able to connect using the public or local IP when on the same network, but your friend is able to connect externally?
When you say you can’t connect do you mean to AMP’s web UI, the machine at all using SSH, or a game server?
Can you show the port forward setup in your router?
Yes that is correct, if i port forward my friend can connect but it then blocks me from connecting via local or public ip. Also a weird thing is when I’ve port forwarded and try and connect via my Local IP the console shows my public IP
Can you screenshot what you’re using to connect that gets switched to your public IP?
Port forward currently turned off for getting onto the server bwt
Where is it showing your public IP though?
If im connecting to the server with my port forward rule set to “ON” then instead of my local IP showing in amps console it will show my public ip instead
Interesting… It’s definitely something either misconfigured or a software flaw with your router. What model is the router specifically?
its a bell gigahub 2.0 router
Is your computer with Minecraft or the computer with AMP on wireless by chance?
no both have an ethernet connection
Just looking around the web it seems others have complained that the port forwarding on these routers is pretty bad. Even on their own forums. You can try turning off UPnP and restart the router first to see if that helps.
What devices are your two machines connected through? Any switches in between? Both connected directly to that router? etc…