How do I fix "connection refused"
It doesnt happen to me but rather my friend whos trying to get on
92 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 olisnical#0
you need to port forward
so your friend can join you via your public ip
Are you self hosting? @olis
seems like it
if you mean me trying to join my own server then no
but if hosting a server myself for others then yes
No
Yeah
You opened ports?
well im using ngrok
Oh okey
No idea how that works :/ check if everything's correctly configured
i don't recommend ngrok
unless you really really have no other options
Do you know what's a port or CGnat? @olis
!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
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
Nope
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.
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...
ok well what do i do
Check your router settings @olis and you have to compare two things
what are tehy
they
Do you know that windows command that allows you to see your IP?
ipconfig /all?
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
i found smth called default gateway
yea
Yeah that should be it
That IP is something like 192.168?
yea
You will be able to find your login credentials in the bottom of the router
aight hold on
tf am i supposed to put for username
Maybe admin
@olis
im guessing the password is just the internet password
Not really
Everything should be in the bottom
Of the router
well my internet password is the same one on the bottom
Strange, it's usually not the same heh
we never got around to changing it
If you have trouble you can search "<router brand and model> default login password"
in cmd?
No, in Google lol
apparently theyre both admin
You're there?
In the config screen?
no i got timed out for 5 mins i just looked it up
What's your router brand and model btw I wanna search for info too
uhh ok well i signed in
am i meant to do smth with the firewall
Well I personally did not had to touch the firewall in any moment
When trying to self host
Please check your WAN
ok
now what
i found port forwarding if that means anything
Yeah that's where you will open the ports but compare your WAN and your public/external IP
compare what in my WAN?
Your WAN to your public IP
Are they the same?
@olis
yea but what in my WAN
Both are the same?
If so, that's good
idk if they are
like is there meant to be an ip in my wan
What's your router brand?
ZTE
i found two ips in the WAN connection status and one of them matches my ip
The important one is the WAN
Is it the same as the external IP?
they dont match my ipv4 but it matches my public ip
I think you're fine
Ok so in the port forwarding thing you can open ports
set up dmz
That's the ez unsafe way tho
I'd try to just open the necessary port @olis
whats that
Basically opening all ports
ok well i just turned port forwarding on
Cool
Enable port forwarding for the ZTE F609 - cFos Software
Instructions on the activation of Port Forwarding for the ZTE F609
I guess both wan and lan should be 25565
Oh it's a different gui
Protocol is the TCP/UDP thing right?
yea
Don't need to blur that, that's a protocol
aight
Use the TCP/UDP
what does it do
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
i switched it
now what?
What values you added btw
nothing i left it blank
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
what am i meant to put in wan host ip?
I think nothing
Leave those values
is that my ipv4?
It should be a 192.168 IP
yea thats my ipv4
From the server right?
it should be
if it aint how do i check
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
aight
i saved the data
Coool
Soo
If you run your server
At port 25565
And share your public IP to your friends
They should be able to join
so how would they go about joining it
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
im trying to get one of my friends to test it
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
Idk I haven’t been able to test with others rn
Have you tried to ping yourself there?
yea
IT WORKS LETS FUCKING GOOO
!solved
post closed!
The post/thread has been closed!
Requested by olisnical#0
Glad it worked!