can’t connect to self hosted server

I’ve set up a server and checked that on the host device I’m able to connect using “localhost” I’m trying to connect to the server from another pc on the same network, and the ipv4 address of the host isn’t allowing me to connect. doesn’t say pinging or anything, just doesn’t work what could be possible solutions?
106 Replies
Admincraft Meta
Admincraft Meta2mo ago
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 lightningferix#0
Loudbook
Loudbook2mo ago
You're using the private IP, correct?
Skullians
Skullians2mo ago
Have you port forwarded
Loudbook
Loudbook2mo ago
No description
Skullians
Skullians2mo ago
ah
lightningferix
lightningferixOP2mo ago
im using the IP i got from ipconfig which i believe is private right
Loudbook
Loudbook2mo ago
What are the first two blocks of it
Skullians
Skullians2mo ago
tbh if you’re just using it on the same network just use local host
lightningferix
lightningferixOP2mo ago
192.168
Loudbook
Loudbook2mo ago
yeah that's right um no
Skullians
Skullians2mo ago
yeah
Loudbook
Loudbook2mo ago
you cannot
lightningferix
lightningferixOP2mo ago
that doesn’t work cause im not the local host the host is a different pc
Loudbook
Loudbook2mo ago
did you modify the server-ip in server.properties
duolingo se acerca
are the ports open?
Skullians
Skullians2mo ago
oops I’m a little sleepy
Loudbook
Loudbook2mo ago
No description
Tamz
Tamz2mo ago
Localhost is typically just Internal servers or servers that run on the same machine instance or same machine :pain:
Skullians
Skullians2mo ago
ports open -> OS firewall m8
duolingo se acerca
still needs to open the port on the machine hosting the server
Skullians
Skullians2mo ago
^
Loudbook
Loudbook2mo ago
unless you manually closed them it should be fine...
Skullians
Skullians2mo ago
I’m um
lightningferix
lightningferixOP2mo ago
it shouldnt be. let me check. i know i changed it to try something out but changed it back to blank
Skullians
Skullians2mo ago
not necessarily
duolingo se acerca
that would be on linux, on windows ports have to be opened manually
Skullians
Skullians2mo ago
if they’re using Linux then port 25565 would be closed
Loudbook
Loudbook2mo ago
isn't it the other way around
Skullians
Skullians2mo ago
oops nvm yeah that’s what I thought
lightningferix
lightningferixOP2mo ago
when we’re talking about ports, were talking in my network settings?
Loudbook
Loudbook2mo ago
i've never had to open a port when hosting something on windows to be fair i've done that only like twice in my life
duolingo se acerca
weird, I always have to on the firewall 😅 what os are hosting the server on?
lightningferix
lightningferixOP2mo ago
windows 10
duolingo se acerca
Look for this on the machine hosting the server
No description
duolingo se acerca
Inbound rules
No description
duolingo se acerca
At the right, New rule
No description
duolingo se acerca
Select port
No description
duolingo se acerca
And then the port you're using for the server, I used 25565 as a placeholder
No description
duolingo se acerca
Allow connection
No description
duolingo se acerca
Then just hit next And assign a whatever name you want. You'll probably want to close the port at some point, so choose something that might help you remember what did you used it for. "Minecraft Server Port" would be a good name, for example Hit finish and you should be done
lightningferix
lightningferixOP2mo ago
do i only need to do it for tcp?
duolingo se acerca
yup
lightningferix
lightningferixOP2mo ago
alright ive followed the steps. let me test on the other pc
duolingo se acerca
Unless you want to add bedrock compatibility with something like Geyser. Then you would need to add another rule on UDP for the bedrock port, I think it was 19132 or something like that
𝒟𝑜𝓂𝒾𝓃𝒾𝒸
19132 iirc
lightningferix
lightningferixOP2mo ago
hmm this does not seem to have solved the issue wait let me restart the server maybe?
𝒟𝑜𝓂𝒾𝓃𝒾𝒸
if your server is running, restart your server yes
duolingo se acerca
yup, just corrected it
𝒟𝑜𝓂𝒾𝓃𝒾𝒸
although if you don't use the server pc for anything else put linux on it
lightningferix
lightningferixOP2mo ago
so restarting the server hasn’t changed anything unfortunately
𝒟𝑜𝓂𝒾𝓃𝒾𝒸
what are you putting in as the server address on the remote pc?
lightningferix
lightningferixOP2mo ago
right now ive put in the full ipv4 address thats given by ipconfig. ive tried with :25565 and without (did not change port in server properties)
duolingo se acerca
Private residential ips usually start with 192.168
𝒟𝑜𝓂𝒾𝓃𝒾𝒸
ipconfig on the server pc?
duolingo se acerca
Is that your case?
lightningferix
lightningferixOP2mo ago
yup thats what the ip starts with
𝒟𝑜𝓂𝒾𝓃𝒾𝒸
smh ive ended up with 10.0
lightningferix
lightningferixOP2mo ago
and yes, ipconfig on host
𝒟𝑜𝓂𝒾𝓃𝒾𝒸
interesting are you able to ping it on the client see if pings are going through maybe your router/wifi ap is doing some weird p2p blocking
lightningferix
lightningferixOP2mo ago
how can i check if i can ping it?
lightningferix
lightningferixOP2mo ago
oh so request time out
𝒟𝑜𝓂𝒾𝓃𝒾𝒸
think we have the issue are you sure it is the correct ip address of the server machine
lightningferix
lightningferixOP2mo ago
okay wait there is a quirk to how the host is connected to the network one second
duolingo se acerca
yh, sometimes happens
𝒟𝑜𝓂𝒾𝓃𝒾𝒸
i just continued with my 10.0 scheme even after moving away from my isp gear, its easier to type 🧌
duolingo se acerca
it is indeed I always wondered how can I change that but never felt confident enough to mess with my router
𝒟𝑜𝓂𝒾𝓃𝒾𝒸
there should be a place
lightningferix
lightningferixOP2mo ago
okay so basically, the host pc is connected to the network indirectly. the host pc is connected to a Google wifi puck thingy which itself is connected to our actual router, all wired. the puck thingy is for extending the wifi to a far corner of the house but it has both input and output ethernet ports so it's receiving from router and passing it along to the host pc
𝒟𝑜𝓂𝒾𝓃𝒾𝒸
what the fuck 💀
lightningferix
lightningferixOP2mo ago
but the host pc is able to connect to the internet purely through the wired connection
𝒟𝑜𝓂𝒾𝓃𝒾𝒸
is the weird puck thingy doing NAT
duolingo se acerca
My pc is connected through ethernet, so I check IPv4 Address in the ethernet section. If the host pc is using wi-fi you should check the Wireless LAN adapter section
No description
duolingo se acerca
That information shouldn't be confidential, but still
lightningferix
lightningferixOP2mo ago
i am not sure about that
lightningferix
lightningferixOP2mo ago
doesnt seem to say anything about nat
𝒟𝑜𝓂𝒾𝓃𝒾𝒸
connect the server pc and client pc on the same network without the puck thingy
lightningferix
lightningferixOP2mo ago
lemme make sure ive grabbed the ip address from the correct section
duolingo se acerca
Read what dominic said
lightningferix
lightningferixOP2mo ago
yeah that's probably the simplest way huh
duolingo se acerca
Connect both to the same device, either both to that thing or both to the main router That thing acts as a subnetwork
𝒟𝑜𝓂𝒾𝓃𝒾𝒸
you should never use something intended for wifi as a network switch never know what its doing
lightningferix
lightningferixOP2mo ago
okay so i know what it says, but somehow technomagically we've been able to hook up the google wifi puck to our router/modem and that puck itself is a wifi point with its own network name (demonstrably stronger internet connection when near it than when away compared to the router/modem's wireless network), and an ethernet cable from the puck to the host PC allows it to connect to the internet without connecting to wifi LOL but okay ill see if i can find a long enough ethernet cable to directly connect the pc to the regular router/modem
𝒟𝑜𝓂𝒾𝓃𝒾𝒸
What the hell
lightningferix
lightningferixOP2mo ago
yeah i kind of just didnt question it once i got it to work very stressful setting it up will check back in once i connect it directly wait im so confused okay so i connected the host pc to the router/modem directly the ipaddress changed which makes sense right but when i ping it from the other pc, it still times out all four times
lightningferix
lightningferixOP2mo ago
could it be a client issue not a host issue? maybe the client isnt properly reaching outward? also this might be a clue to isolating the problem, but before i came here, i tried to use playit.gg. but when i tried to connect from the client, it said "pinging" like on the minecraft server screen, but it ultimately could not connect maybe same issue if it's a client problem? do i have to do any outbound settings on the client pc maybe? or is that not a thing
duolingo se acerca
Well, outbound rules do exist, but all should be opened, otherwise you won't be able to connect to many services on the internet Are you sure both devices are on the same network now?
lightningferix
lightningferixOP2mo ago
well they should be since theyre both physically connected to the same router/modem okay then uh forget about connecting from within the network. how can i connect to it as if it’s outside the network?
duolingo se acerca
Check the ip on the server and client machines, do both share the same first three numbers?
lightningferix
lightningferixOP2mo ago
that should work regardless right?
duolingo se acerca
First two should be 192 and 168 Check the third one
lightningferix
lightningferixOP2mo ago
yup the first three sets are the same
duolingo se acerca
Then check if the Default Gateway is exactly the same for both machines If those are still the same, I would recommend to also add the same port as UDP, just to test if that solves it I normally don't host on windows, ports are open by default on linux, so I never paid attention if mc uses both tcp and udp
lightningferix
lightningferixOP2mo ago
wait the default gateway is slightly different it’s off by two digits in the last segment is that a problem? same inbound rules just udp right?
duolingo se acerca
Usually means you're on a subnetwork yup
lightningferix
lightningferixOP2mo ago
okay soooooo adding the udp rules allowed me to connect to the server! but is it a problem that when i try to directly ping the host ip address it still times out? isnt that weird? or like not normal
duolingo se acerca
Some os have the ping "turned off" It's not an os thing, it's actually a firewall thing, but you get the idea
lightningferix
lightningferixOP2mo ago
hm okay.. but anyway i was able to connect so thank you everyone who helped! appreciate it very much :)
duolingo se acerca
yw
lightningferix
lightningferixOP2mo ago
!solved
Admincraft Meta
Admincraft Meta2mo ago
Closed post!
Your post has been marked as solved!
Requested by lightningferix#0

Did you find this page helpful?