I need help with Iptable (i dont know anything about it)
The server version is: 1.21
im using the latest Java version
Alright so i recently created a minecraft server and I can join it without any problems but my friends cant.
I was searching the forum and i found someone with my exact problem this is the link to that forum:
https://www.minecraftforum.net/forums/support/server-support-and/2948958-trouble-with-port-forwarding-connection-timed-out
and so he mentioned that he fixed it like this:
Checked 'sudo iptables -S' rule set to confirm proper rules were in place.
Noticed 25565 was not present. Flushed all rules with 'sudo iptables -F'
Confirmed rules were flushed, again 'sudo iptables -S'
Re-enabled most common rules: SSH, HTTP, HTTPS and 25565
sudo ufw allow
sshsudo ufw allow
httpsudo ufw allow
httpssudo ufw allow 25565
sudo ufw enable
Launched minecraft server, and confirmed connectivity with canyouseeme.org.Problem resolved!
can someone help me do this
thanks
Trouble with Port Forwarding / connection timed out error - Server ...
Specs and Relevant Information
OS: Ubuntu 16.04.
Java: Installed, OpenJDK is at the latest version
Server Version: 1.13
Modem: Xfinity
Router: Luxul ABR...
192 Replies
Thanks for asking your question!
Make sure to provide as much helpful information as possible such as logs/what you tried and what your exact issue is
Make sure to mark solved when issue is solved!!!
/close
!close
!solved
!answered
Requested by r.radvin#0
Are you using windows or linux
windows 11
Right then that entire guide is useless for you
oh
is there any way that i can fix it?
Maybe try to run this in a windows administrator command line;
Does that work?
this is a guide for linux
the way to fix this is to wipe your windows install and use linux
or dualboot
Also, just like how the person you linked about had to reset their configuration first, you can accomplish that by runnning
but I would see if the first command works
alr thanks
will reset factory fix it?
Don't listen to this guy, he's just being facetious for no reason
oh
rude
Yes u are
you're running an entirely different OS
that guide is intended for another operating system which you're not running
ik if i ran linux then i already fixed it
thats the exact reason why im here to ask for help
a good tech just needs a CLI to work with, OS is not important. I could tshoot templeOS lol its just networking
you'd have to switch operating systems
yes he came to ask how to do it in windows
sure but the guide is not intended for his issue
"i need help with iptables"
the issue is you're trying to run something that doesn't run on your OS
did you port forward with router?
OS-level is not enough
yes
that's progress
Did the command work?
windows has a GUI firewall manager afaik
never touched it
nope
im trying the second one
might wanna check that one
though I have no idea how to interact with windows firewall
should i just disable firewall and try it?
You can flick it on and off to isolate the issue to the firewall sure
Do note theres a chance you are cgnatted, also check if you have any other firewall etc from antivirus programs
!cgnat
We may have bad news for you :C
Open your router's configuration interface. Somewhere you'll see something like 'external' or 'public' IP.
If your external IP is in one of the following ranges, you're basically screwed as long as portforwards go:
- 10.0.0.0/8
- 172.16.0.0/20
- 192.168.0.0/16
- 100.64.0.0/10
- any IPv6 address/range - This shouldn't be a problem, but Minecraft's IPv6 support is still rather quirky. You're at your own but we're happy if you share your experience.
You should ask your ISP for a public and IPv4 address (but this may cost you money).
NB: your internal IP should and most probably will be in one of the first three ranges, don't mix them up
Admincraft Canned Responses
alr
i turned the firewall off
its not working
Oh ok. So it's not an issue with firewall settings.
is something wrong with my port forwarding on my router
You have multiple computers on your LAN you can connect to this server from correct?
i only have a single computer connected to my router via LAN
is your host computer have the internal IP 192.168.1.101?
You can check by running
ipconfig
in cmdyes
Ethernet adapter Ethernet:
Connection-specific DNS Suffix . : homestation.setup
IPv4 Address. . . . . . . . . . . : 192.168.1.101
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.1.1
And you can connect via localhost correct?
yeah
i can join it without any problems
what ip are you giving your friends?
my friends can not join it tho
my external ip
Try to disable antivirus not firewall
so the one that shows up if you put whats my ip into google?
and see if tht has an affect
i even checked it at canyouseeme.org
Open Port Check Tool -- Verify Port Forwarding on Your Router
A free open port check tool used to detect open ports on your connection. Test if port forwarding is correctly setup or if your port is being blocked by your firewall or ISP.
ok
disable windows defender and any antivirus you may have installed
Error: I could not see your service on (my ip) on port (25565)
ok
in your server.properties the ip field is blank correct?
Could not get the server status…
yep
your on ethernet right?
yes
and only ethernet
i did this one too
do you have any antivirus installed othrr the windows defender?
nope
and i just turned it off
Go to whatismyip and see if it is different than the router page at 192.168.0.1 to rule out you having a dynamic IP and not a static one
It would be really useful if you had a 2nd machine on your home network to try to connect with
i can use my phone
if you got an android phone you could use pojav launcher
idk if ios has pojav
alr
Can also try to disable UDP on the port rules and only allow TCP but id be surprised if that works tbh
ok
you disabled windows defender?
actually you can just use minechat aswell if you dont wanna use pojav
i dont have any minecraft on my phone
i can ask my friend to come over and test it
just download minechat or pojav launcher
what should he put at the server address on his minecraft?
IP:port
its alr he livins near my house
just IP if you use the 25565 port
which seems like you do
and yes external IP
external ip?
alr
in this case, 192.168.1.101:25565
unless if he's connected to your network
no
yes that is what we are testing
ok
oh
we're testing internal connections to troubleshoot?
okay
you coukd also check urself using an app on ur phone...
like the ones i suggested
then you dont need an outside guy to come over
alr then
what should i download
porjav or minechat
you mean a connector?
If you can-
connect locally using internal IP,
port is forwarded to 192.168.1.101(the host) and tcp is enabled,
firewall and antivirus are off,
and still can't connect externally, it may be firewall settings set up on ISP side and you'd want to give them a call.
Also maybe look up the router model online and see if there are any builtin rules for port 25565 (sort of unlikely but worth checking)
port forwarding has always been hell
:sad:
alr i will try it
actually u can try this too and is quick check
netsh interface portproxy show all
and see if 25565 is even therethere is nothing there
Ok now try this
(c) Microsoft Corporation. All rights reserved.
C:\Windows\System32>netsh interface portproxy show all
C:\Windows\System32>
either as they both eould allow you to ping/attempt to join normally
i did it
lets try again
C:\Windows\System32>netsh interface portproxy show all
Listen on ipv4: Connect to ipv4:
Address Port Address Port
--------------- ---------- --------------- ----------
192.168.1.101 25565 192.168.1.101 25565
try to connect to the server
or restart the mc server once
then try
ok
should i turn firewall off?
yeah
alr
the server doesnt load
it just pop up for a sec and the closes
The console crashes?
yeah
Ok
and see if that stops it from crashing
its still crashing
Ok, very weird. Can restart your pc, then after that there are crash logs that you can try or you can just try to move your server files to a fresh server.jar directory
alr i will restart now
alr im back
i moved it to a new folder and its still crashing
We have uploaded your file to a paste service for better readability
Paste services are more mobile friendly and easier to read than just posting a file
crash-2024-07-07_17.06.25-server.txt
Requested by r.radvin#0
btw every time that i my friends tried to join my server they had this error
so apparently that is a sort of newer issue happening on multiple microsoft games over the past few months, which is one thing,
but your server not even being able to start now is sort of an issue lol
yeah:alot:
it was working fine like 30min ago
I'd keep just whatever is essential to your server suchas your map file, delete literally everything else and completely reinstall java
its my first server so i dont have any maps
alr i will reinstall java
also if it crashes again on boot;
it did and
max-tick-time=60000
this one?
yes
server ip is blank
Ok
Ethernet adapter Ethernet:
Connection-specific DNS Suffix . : homestation.setup
IPv4 Address. . . . . . . . . . . : 192.168.1.101
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.1.1
and this is the ip config
Does it boot?
with -1 tickrate value
nope
Wow
We have uploaded your file to a paste service for better readability
Paste services are more mobile friendly and easier to read than just posting a file
crash-2024-07-07_17.21.35-server.txt
Requested by r.radvin#0
im willing to even reset my whole pc and network to make the server working
should i do it?
will reseting my pc fix this problem?
in cmd run this command
shutdown /r /t 1
alright i did it
and
the server is still crashing
Here,
Its ficed
fixed*
it doesnt crash anymore
thanks
Nice
Ok now onto the original issue
yeah
my friends can not join
25565 is in your server properties file correct?
yes
We have uploaded your file to a paste service for better readability
Paste services are more mobile friendly and easier to read than just posting a file
server.properties
Requested by r.radvin#0
put your external IP in this website https://www.yougetsignal.com/tools/open-ports/
Open Port Check Tool - Test Port Forwarding on Your Router
Port checker is a utility used to identify your external IP address and detect open ports on your connection. This tool is useful for finding out if your port forwarding is setup correctly or if your server applications are being blocked by a firewall.
and see if it can find an open or closed 25565 port
Closed Port 25565 is closed
delete your ip from this chat
lol
mb
its probably not a big deal
yeah
but yeah there is your problem
hang on..
alr
and your server was running when you tried that?
yes
This getsockopt seems to be a newer issue associated with the newest update, someone said they downgraded the server to version 1.19.4 and it worked
Maybe if that version works, you can do that for like a week or so until this newer issue is probably hotfixed
how can i down grade it
i have to download another server?
Yeah
and when you are in your minecraft launcher everyone has to change their client version
yeah ik but i dont know how can i downgrade it (the server)
https://www.minecraft.net/en-us/download/server
MCVersions.net - Create your own 1.19.4 Minecraft server!
Create and host your own 1.19.4 Minecraft server with Nodecraft's NodePanel today with ease. Try it now!
oh alr
thanks
So if that works, you know the issue is with the version, and not your computer/network.
If you want to play the latest update you will have to either wait for this to be fixed or find workaround
alr
im downloading the server
also this is the thing you disabled correct?
windows defender firewall
not just windows defender/antivirus?
also can run this
alr
on admin cmd*
i turned off this one
Ok correct one
and this one
And this is minechat
Do you have the same error on the downgraded version?
yes
im asking one of my friends to send a screen shot of the error
this is the error
I think its something on your ISP's side
just to confirm, ask your friend to do this
he hosted a 1.21 too
open cmd, and type in
and i couldnt join
and make sure there is a reply
does he happen to use the same ip?
i dont think so
isp***
not ip
no
is there a response for ping
@Mamad do this
output should look like this
@Mamad
he is not answering
i can do it with my phone by connecting to another wifi
if it works, call your isp and tell them you set up port forwarding rules for port 25565 but the port will not open
and allowed firewall settings/disabled firewall on the host
64 bytes from :,icmp_seq=1,ttl=62,time=84.9 ms
Avg,ttl = 62
Avg,time = 72 ms
It's like this
yeah call your isp and tell them that
they might have some rules in place
alr thank you for everything
because logically you did everything you are supposed to on your end
sure hope it works
thank you so much
have a great day
cya later
Same to you ✌️