Requesting assistance with the IP forwarding issue.
Requesting assistance with the IP forwarding issue.
Yesterday I chose to build my own Ubuntu server using some spare components. The setup went smoothly, and connecting through FileZilla and PUtty worked perfectly. After installing Spigot, I even managed to link via LAN. When trying IPv4 (public): XXX.XXX.XXX.XXX failed, I added a rule in my internet settings using the online guide. Still no success—I’m puzzled. Shouldn’t Linux be open to many ports by default? I had its built-in firewall enabled initially, but I now have an exception for 25565, which also caused the issue. I’ve set up UFW on Linux to block the firewall, but I’m not sure if that’s the problem. Since I can connect on LAN, it seems okay. Help?
You can use putty, filezilla and minecraft through your LAN, but not via WAN. Or perhaps you only attempted to portforward the Minecraft server and didn’t use putty/filezilla? If not, try those tools to check if port forwarding fails or if the issue lies with the Minecraft server. Also, make sure you didn’t specify a port number when connecting to the Minecraft server—XXX.XXX.XXX.XXX:25565. It’s not safe to expose your external IP if you could connect directly now.
Check your router settings to see if the WAN IP matches what appears when visiting sites like 'whatismyip.com'. If not, you're likely behind a CG-NAT and need a public IP from your ISP. Confirm whether you're trying to access your own public IP inside the network or from outside. If inside, the firewall may block the connection.
These three options function well on the lan, though they don't work over wan. I don’t have any sensitive data on it at all, so it doesn’t matter much. If I manage to fix it, I’ll remove all the information. I haven’t really tried 25565, but I don’t see any reason it wouldn’t work since I’ve never faced that problem before. I’ve been using hosted for a long time and never tried it myself.
It's the same everywhere. Changing commands on both machines and searching gives the identical IP address. Initially I used a WLAN IP, but someone warned it was ineffective, so I switched to a 4G laptop with another network, but it didn't work. As mentioned, the LAN IP functions correctly.
The port forwarding setup seems fine, but if you're confident the numbers are correct, the next step would just be to restart the router to verify everything is working properly. It likely points to a router-related issue.