Jump to content

Hey!
So yesterday I decided to make my own ubuntu server because I had some spare parts (always wanted to try it). The installation was flawless, and connecting via filezilla and PUtty went flawlessly and after installing spigot I could even connect.. via lan. Trying to connect using ipv4 (public): XXX.XXX.XXX.XXX did however not work. I then tried the obvious and added a rule in my internet config panel: https://gyazo.com/c83281c3d727ac5aab30eaf8db0a952f according to guides online. It still does not work though, and I wonder why? shouldn't Linux Server be very port-open by default? I had its built in firewall when I first tried it, I now have it on with an exception on 25565, same result though.

I have configured UFW on linux so the firewall shouldn't be the issue, though I am not sure (but since I could connect on lan it should be fine right?)

Help?

 

Ubuntu version: 18.04.3 LTS

Minecraft version: 1.14.4

Router: Com Hem WiFi Hub C2

 
 
Thanks,
olesien
Link to comment
https://linustechtips.com/topic/1100889-ip-forwarding-not-working/
Share on other sites

Link to post
Share on other sites

So you can use putty, filezilla and minecraft over your lan, but not over wan? Or did you only try to portforward the minecraft server and didnt try putty/filezilla? If you havent you can try those two to see if the portforwarding doesnt work or its just and issue with the mc server...

 

Edit: also did you specify the port number when trying to connect to the mc server? XXX.XXX.XXX.XXX:25565

Also its unwise to make your external IP public, if i wanted I could connect to your server right now...

Link to post
Share on other sites

On your router, is your WAN IP the same as when you go to a site like 'whatismyip.com' or similar?

If not then you're behind CG-NAT and you can't really do anything unless your ISP is willing to give you a real public IP address.

Are you trying to connect to your public IP from inside your own network or outside? If you're inside the network and trying to connect then it won't work, the firewall in your gateway won't allow it to hairpin back in.

Current Network Layout:

Current Build Log/PC:

Storage Server Setup:

 

Prior Build Log/PC:

Link to post
Share on other sites

18 minutes ago, Olaf6541 said:

So you can use putty, filezilla and minecraft over your lan, but not over wan? Or did you only try to portforward the minecraft server and didnt try putty/filezilla? If you havent you can try those two to see if the portforwarding doesnt work or its just and issue with the mc server...

 

Edit: also did you specify the port number when trying to connect to the mc server? XXX.XXX.XXX.XXX:25565

Also its unwise to make your external IP public, if i wanted I could connect to your server right now...

All of those 3 work perfectly on lan (though non work over wan). I have no senstive data at all on it btw, so I really don't care. Will delete all the info if I manage to fix it. I have not really tried doing 25565 no, but I don't see why it would not work as I have never ever had that be an issue before (been using hosted for a long time, never tried it myself)

Link to post
Share on other sites

1 minute ago, Lurick said:

On your router, is your WAN IP the same as when you go to a site like 'whatismyip.com' or similar?

If not then you're behind CG-NAT and you can't really do anything unless your ISP is willing to give you a real public IP address.

Are you trying to connect to your public IP from inside your own network or outside? If you're inside the network and trying to connect then it won't work, the firewall in your gateway won't allow it to hairpin back in.

It's all the same. When I do different cmd lines on both computers and when I just search it I get the same IP. At first I tried with WLAN IP, but someone else told me that was pretty stupid so I setup a 4G Laptop with a different network, still no work. and as said the LAN ip works fine

Link to post
Share on other sites

2 minutes ago, olesien said:

All of those 3 work perfectly on lan (though non work over wan). I have no senstive data at all on it btw, so I really don't care. Will delete all the info if I manage to fix it. I have not really tried doing 25565 no, but I don't see why it would not work as I have never ever had that be an issue before (been using hosted for a long time, never tried it myself)

Well the port forwarding picture looks alright so if you are sure that all the numbers are correct (IP's etc.) i cant do much more than suggesting to restart the router to make sure all the port forwards are active... It must be a router issues then.

Link to post
Share on other sites

1 minute ago, Olaf6541 said:

Well the port forwarding picture looks alright so if you are sure that all the numbers are correct (IP's etc.) i cant do much more than suggesting to restart the router to make sure all the port forwards are active... It must be a router issues then.

Yeah I almost figured, have restarted it plenty of times xd

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×