How do I fix "connection refused"

It doesnt happen to me but rather my friend whos trying to get on
92 Replies
Admincraft Meta
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 olisnical#0
Zaid
Zaid2y ago
you need to port forward so your friend can join you via your public ip
1who¡ssus?
1who¡ssus?2y ago
Are you self hosting? @olis
Zaid
Zaid2y ago
seems like it
olis
olisOP2y ago
if you mean me trying to join my own server then no but if hosting a server myself for others then yes
1who¡ssus?
1who¡ssus?2y ago
No Yeah You opened ports?
olis
olisOP2y ago
well im using ngrok
1who¡ssus?
1who¡ssus?2y ago
Oh okey No idea how that works :/ check if everything's correctly configured
Zaid
Zaid2y ago
i don't recommend ngrok unless you really really have no other options
1who¡ssus?
1who¡ssus?2y ago
Do you know what's a port or CGnat? @olis !cgnat
Carl-bot
Carl-bot2y ago
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
1who¡ssus?
1who¡ssus?2y ago
You can open a port and players will be able to join with just your public IP But with this little thing, you'll have to call your ISP and see if they can remove it
olis
olisOP2y ago
Nope
1who¡ssus?
1who¡ssus?2y ago
Networking
What are ports in computing and how do they work?
Learn what a port is in computing and how the term represents three different use cases in networking, computer hardware and software. Explore how ports work.
1who¡ssus?
1who¡ssus?2y ago
Carrier-grade NAT
Carrier-grade NAT (CGN or CGNAT), also known as large-scale NAT (LSN), is a type of network address translation (NAT) used by ISPs in IPv4 network design. With CGNAT, end sites, in particular residential networks, are configured with private network addresses that are translated to public IPv4 addresses by middlebox network address translator de...
olis
olisOP2y ago
ok well what do i do
1who¡ssus?
1who¡ssus?2y ago
Check your router settings @olis and you have to compare two things
olis
olisOP2y ago
what are tehy they
1who¡ssus?
1who¡ssus?2y ago
Do you know that windows command that allows you to see your IP?
olis
olisOP2y ago
ipconfig /all?
1who¡ssus?
1who¡ssus?2y ago
Yeah that should work You need to search for something called gateway It's an IP direction that if you paste it in your browser it should show you the login screen to your router settings
olis
olisOP2y ago
i found smth called default gateway yea
1who¡ssus?
1who¡ssus?2y ago
Yeah that should be it That IP is something like 192.168?
olis
olisOP2y ago
yea
1who¡ssus?
1who¡ssus?2y ago
You will be able to find your login credentials in the bottom of the router
olis
olisOP2y ago
aight hold on tf am i supposed to put for username
1who¡ssus?
1who¡ssus?2y ago
Maybe admin @olis
olis
olisOP2y ago
im guessing the password is just the internet password
1who¡ssus?
1who¡ssus?2y ago
Not really Everything should be in the bottom Of the router
olis
olisOP2y ago
well my internet password is the same one on the bottom
1who¡ssus?
1who¡ssus?2y ago
Strange, it's usually not the same heh
olis
olisOP2y ago
we never got around to changing it
1who¡ssus?
1who¡ssus?2y ago
If you have trouble you can search "<router brand and model> default login password"
olis
olisOP2y ago
in cmd?
1who¡ssus?
1who¡ssus?2y ago
No, in Google lol
olis
olisOP2y ago
apparently theyre both admin
1who¡ssus?
1who¡ssus?2y ago
You're there? In the config screen?
olis
olisOP2y ago
no i got timed out for 5 mins i just looked it up
1who¡ssus?
1who¡ssus?2y ago
What's your router brand and model btw I wanna search for info too
olis
olisOP2y ago
uhh ok well i signed in am i meant to do smth with the firewall
1who¡ssus?
1who¡ssus?2y ago
Well I personally did not had to touch the firewall in any moment When trying to self host Please check your WAN
olis
olisOP2y ago
ok now what i found port forwarding if that means anything
1who¡ssus?
1who¡ssus?2y ago
Yeah that's where you will open the ports but compare your WAN and your public/external IP
olis
olisOP2y ago
compare what in my WAN?
1who¡ssus?
1who¡ssus?2y ago
Your WAN to your public IP Are they the same? @olis
olis
olisOP2y ago
yea but what in my WAN
1who¡ssus?
1who¡ssus?2y ago
Both are the same? If so, that's good
olis
olisOP2y ago
idk if they are like is there meant to be an ip in my wan
1who¡ssus?
1who¡ssus?2y ago
What's your router brand?
olis
olisOP2y ago
ZTE i found two ips in the WAN connection status and one of them matches my ip
1who¡ssus?
1who¡ssus?2y ago
The important one is the WAN Is it the same as the external IP?
olis
olisOP2y ago
they dont match my ipv4 but it matches my public ip
1who¡ssus?
1who¡ssus?2y ago
I think you're fine Ok so in the port forwarding thing you can open ports
Zaid
Zaid2y ago
set up dmz
1who¡ssus?
1who¡ssus?2y ago
That's the ez unsafe way tho I'd try to just open the necessary port @olis
olis
olisOP2y ago
whats that
1who¡ssus?
1who¡ssus?2y ago
Basically opening all ports
olis
olisOP2y ago
ok well i just turned port forwarding on
1who¡ssus?
1who¡ssus?2y ago
Cool
olis
olisOP2y ago
No description
1who¡ssus?
1who¡ssus?2y ago
I guess both wan and lan should be 25565 Oh it's a different gui Protocol is the TCP/UDP thing right?
olis
olisOP2y ago
yea
1who¡ssus?
1who¡ssus?2y ago
Don't need to blur that, that's a protocol
olis
olisOP2y ago
aight
1who¡ssus?
1who¡ssus?2y ago
Use the TCP/UDP
olis
olisOP2y ago
what does it do
1who¡ssus?
1who¡ssus?2y ago
Protocols are in a few words, a set of rules to send & receive data For Minecraft you should use TCP/UDP Let me check my port forwarding one sec
olis
olisOP2y ago
i switched it now what?
1who¡ssus?
1who¡ssus?2y ago
What values you added btw
olis
olisOP2y ago
nothing i left it blank
1who¡ssus?
1who¡ssus?2y ago
No description
1who¡ssus?
1who¡ssus?2y ago
Don't change the wan connection You need to add values tho This is 100% for Minecraft In the lan host You have to place the internal IP of the server
olis
olisOP2y ago
what am i meant to put in wan host ip?
1who¡ssus?
1who¡ssus?2y ago
I think nothing Leave those values
olis
olisOP2y ago
is that my ipv4?
1who¡ssus?
1who¡ssus?2y ago
It should be a 192.168 IP
olis
olisOP2y ago
yea thats my ipv4
1who¡ssus?
1who¡ssus?2y ago
From the server right?
olis
olisOP2y ago
it should be if it aint how do i check
1who¡ssus?
1who¡ssus?2y ago
You can just send it here, the internal IP can't be used to track you, but I think you're looking at the correct thing
olis
olisOP2y ago
aight i saved the data
1who¡ssus?
1who¡ssus?2y ago
Coool Soo If you run your server At port 25565 And share your public IP to your friends They should be able to join
olis
olisOP2y ago
so how would they go about joining it
1who¡ssus?
1who¡ssus?2y ago
In the multiplayer section They type your public IP as if it was a server And Minecraft adds the port 25565 by default so they don't need to add it to the IP You need to obviously run the server Ping me if it works or not lol I'm curious But it should
olis
olisOP2y ago
im trying to get one of my friends to test it
1who¡ssus?
1who¡ssus?2y ago
I think to test it you can also https://mcsrvstat.us/ Go to this website and paste your public IP + port So it's like 8.53.32.98:25565 And it should show the stats if everything was done correctly This method sometimes does not work in selfhosted environments^ I also did stuff like tethering my mobile data to my PC To test if the stuff worked How's going? @olis
olis
olisOP2y ago
Idk I haven’t been able to test with others rn
1who¡ssus?
1who¡ssus?2y ago
Have you tried to ping yourself there?
olis
olisOP2y ago
yea IT WORKS LETS FUCKING GOOO !solved
Admincraft Meta
post closed!
The post/thread has been closed!
Requested by olisnical#0
1who¡ssus?
1who¡ssus?2y ago
Glad it worked!

Did you find this page helpful?