My dedicated server doesn't work please help

Got a problem with OpenTTD? Find some help here.

Moderator: OpenTTD Developers

Post Reply
MichalkosCZ12
Engineer
Engineer
Posts: 3
Joined: 09 May 2020 19:01

My dedicated server doesn't work please help

Post by MichalkosCZ12 »

Hey everyone, I tried to make a dedicated server so I can play with my dad who lives a town over and it keeps saying that I need to forward the ports. The problem is that I tried to do that but it didn't work. Maybe because the openttd dedicated server says that my address is 192.168.0.255 but when I try to port forward, my wifi says it's 192.168.0.1 Somebody please help I don't know what to do.
User avatar
jfs
Tycoon
Tycoon
Posts: 1763
Joined: 08 Jan 2003 23:09
Location: Denmark

Re: My dedicated server doesn't work please help

Post by jfs »

You almost certainly do not have a server at 192.168.0.255, because that address is the broadcast address in most common network setups. It's also an internal network address, not an Internet-routable address, only computers directly connected to your own home network can reach 192.168.x.y addresses.

I'll assume you're on Windows 10: Open the Settings app, go to "Network & Internet", then find the "View your network properties" link. You should see your Ethernet of Wi-Fi connection there, showing as connected, and listing an IPv4 address. That address is your computer's internal address, and the one you should set the port-forwarding rules to point to.
Then you need to find your public IPv4 address, that's the address your router has towards the rest of the internet. https://www.whatismyip.com/ is a fine service for finding that. Your public IPv4 address is what your father then needs to connect to.
MichalkosCZ12
Engineer
Engineer
Posts: 3
Joined: 09 May 2020 19:01

Re: My dedicated server doesn't work please help

Post by MichalkosCZ12 »

Hey I'm sorry if I didn't get what you were saying I'm not good at English.
I used the page as you said and It says My Public IPv4 is: 213.192.24.140 and I don't know if that is what the dedicated server should say is the ip address...
Oh and I already forwarded the ports on the private IPv4 and it doesn't work.
If this helps this is what the dedicated server says:
dbg: [net] [core] starting network...
dbg: [net] [core] loading windows socket library
dbg: [net] [udp] initializing listeners
dbg: [net] [core] network online, multiplayer available
dbg: [net] Detected broadcast addresses:
dbg: [net] 0) 192.168.0.255
dbg: [net] [udp] closed listeners
dbg: [net] [udp] initializing listeners
dbg: [net] [udp] closed listeners
dbg: [net] [udp] initializing listeners
dbg: [net] starting listeners for clients
dbg: [net] [tcp] listening on IPv6 port [::]:3979 (IPv6)
dbg: [net] [tcp] listening on IPv4 port 0.0.0.0:3979 (IPv4)
dbg: [net] starting listeners for incoming server queries
dbg: [net] [udp] listening on IPv6 port [::]:3979 (IPv6)
dbg: [net] [udp] listening on IPv4 port 0.0.0.0:3979 (IPv4)
dbg: [net] [udp] advertising to master server
dbg: [net] [udp] listening on IPv4 port 0.0.0.0:0 (IPv4)
dbg: [net] [udp] listening on IPv6 port [::]:0 (IPv6)
dbg: [net] Generating map, please wait...
dbg: [net] Map generation percentage complete: 5
dbg: [net] Map generation percentage complete: 10
dbg: [net] Map generation percentage complete: 15
dbg: [net] Map generation percentage complete: 20
dbg: [net] Map generation percentage complete: 25
dbg: [net] Map generation percentage complete: 30
dbg: [net] Map generation percentage complete: 35
dbg: [net] Map generation percentage complete: 40
dbg: [net] Map generation percentage complete: 45
dbg: [net] Map generation percentage complete: 50
dbg: [net] Map generation percentage complete: 55
dbg: [net] Map generation percentage complete: 60
dbg: [net] Map generation percentage complete: 65
dbg: [net] Map generation percentage complete: 70
dbg: [net] Map generation percentage complete: 75
dbg: [net] Map generation percentage complete: 80
dbg: [net] Map generation percentage complete: 85
dbg: [net] Map generation percentage complete: 90
dbg: [net] Map generation percentage complete: 99
dbg: [net] Map generated, starting game
dbg: [net] [udp] received new session key from master server (IPv4)
dbg: [net] [udp] advertising to master server
dbg: [net] [udp] advertising to master server
dbg: [net] [udp] advertising to the master server is failing
dbg: [net] [udp] we are not receiving the acknowledgement from the server
dbg: [net] [udp] this usually means that the master server cannot reach us
dbg: [net] [udp] please allow udp and tcp packets to port 3979 to be delivered
dbg: [net] [udp] please allow udp and tcp packets from port 3979 to be delivered
User avatar
kamnet
Moderator
Moderator
Posts: 8588
Joined: 28 Sep 2009 17:15
Location: Eastern KY
Contact:

Re: My dedicated server doesn't work please help

Post by kamnet »

In your router, you need to also enable port forwarding of ports 3978 and 3979 to the internal IP address that your computer is connecting to.
MichalkosCZ12
Engineer
Engineer
Posts: 3
Joined: 09 May 2020 19:01

Re: My dedicated server doesn't work please help

Post by MichalkosCZ12 »

Hey Kamnet, I did everything and it still doesn't work I really don't know why I did all the port forwarding and it keeps saying the same thing. I looked up if I did something wrong on google and youtube and I found that I need to do something in my laptop so I did that and nothing happend, I heard that turning off firewall will help but still nothing :(.
Post Reply

Return to “OpenTTD Problems”

Who is online

Users browsing this forum: No registered users and 26 guests