Multiplayer

OpenTTD is a fully open-sourced reimplementation of TTD, written in C++, boasting improved gameplay and many new features.

Moderator: OpenTTD Developers

Strawbs89
Engineer
Engineer
Posts: 40
Joined: 10 Nov 2018 16:08

Multiplayer

Post by Strawbs89 » 08 Feb 2019 23:38

hi team i want to play multiplayer with a friend that has openttd,
now i have my port open which is 3979 but when i go to play multiplayer in
openttd my server says offline? please help

User avatar
Redirect Left
Tycoon
Tycoon
Posts: 6566
Joined: 22 Jan 2005 19:31
Location: Wakefield, West Yorkshire

Re: Multiplayer

Post by Redirect Left » 09 Feb 2019 00:55

Make sure the port was forwarded to the correct local IP (aka: your local machine, and not the IP of another machine)
Make sure the port is open for both UDP & TCP, as I believe it uses both to some degree.
Make sure you have actually started the server from your local copy of OpenTTD, or started the server with openttd -D on console if running the server headless.
Image
Worst Behaved IRC Member of 2008, 2009 & 2010 - Go Me!

Strawbs89
Engineer
Engineer
Posts: 40
Joined: 10 Nov 2018 16:08

Re: Multiplayer

Post by Strawbs89 » 09 Feb 2019 11:03

well the port was open haha my ipv4 address is 192.168.0.6
that's were i have forwarded 3979 and 3978 to but when i goto canyouseeme.org
it gives an error

User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9282
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: Multiplayer

Post by planetmaker » 09 Feb 2019 11:18

Strawbs89 wrote:well the port was open haha my ipv4 address is 192.168.0.6
that's were i have forwarded 3979 and 3978 to but when i goto canyouseeme.org
it gives an error
That is a private IP address which no-one external to your (home) network will be able to access. Extern users must use your public IP address which your router has - and which then must forward the mentioned ports towards your computer with your internal IP which you quote here.

Strawbs89
Engineer
Engineer
Posts: 40
Joined: 10 Nov 2018 16:08

Re: Multiplayer

Post by Strawbs89 » 09 Feb 2019 11:44

it's still saying error i've correctly port forwarded in outbound
and inbound but i don't see why its giving error
Attachments
Untitled.png
(84.43 KiB) Not downloaded yet

User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9282
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: Multiplayer

Post by planetmaker » 09 Feb 2019 12:21

As host you need to enable the port especially for inbound and outbound connections for both TCP/IP and UDP.

Additionally you need 3878 outbound to connect to our server if you want your server announced publicly (so that people need not type in your IP manually but can search for it ingame)

Our multiplayer readme which shipps with OpenTTD is a bit hidden in a separate file: https://github.com/OpenTTD/OpenTTD/blob ... player.txt
If the problem persists you might try what is detailed in the troubleshooting section therein to get more details where it fails

Strawbs89
Engineer
Engineer
Posts: 40
Joined: 10 Nov 2018 16:08

Re: Multiplayer

Post by Strawbs89 » 09 Feb 2019 12:39

ok so i'v followed that link you sent me i'v opened 3978 in (outbound only) in both my router
and my windows defender firewall. as there's the other port 3979 thats outbound and inbound in both router and again windows defender firewall i check canyouseeme still error

User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9282
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: Multiplayer

Post by planetmaker » 09 Feb 2019 13:45

Well... I check with https://servers.openttd.org whether it shows up there (it should when advertizement is working after a minute or so).

And all it needed to activate was adding the ports to my router.

It's not unheard of windows to sabotage any public services by whatever security policies it might have. So you might weed through windows security settings (I'm not familiar with those)
Attachments
router_config.png
(16.72 KiB) Not downloaded yet
servers_openttd_org.png
(24.58 KiB) Not downloaded yet

Strawbs89
Engineer
Engineer
Posts: 40
Joined: 10 Nov 2018 16:08

Re: Multiplayer

Post by Strawbs89 » 09 Feb 2019 14:10

rite my server is not logged on that server link you gave me now i don't know
if i have to have the game open or not

User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9282
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: Multiplayer

Post by planetmaker » 09 Feb 2019 15:13

Strawbs89 wrote:rite my server is not logged on that server link you gave me now i don't know
if i have to have the game open or not
Yes you do. And I'm pretty confident you need to have it running as well when you use the site you linked.

EDIT: tested, yes, you need to have OpenTTD running as server to use the service you linked... or it won't find anything to connect to.

Strawbs89
Engineer
Engineer
Posts: 40
Joined: 10 Nov 2018 16:08

Re: Multiplayer

Post by Strawbs89 » 09 Feb 2019 15:18

what can you see my server on that list

User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9282
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: Multiplayer

Post by planetmaker » 09 Feb 2019 15:21

Strawbs89 wrote:what can you see my server on that list
How would I know how you call your server? And I cannot see more than you when checking any website. See also my edit to my answer above

Strawbs89
Engineer
Engineer
Posts: 40
Joined: 10 Nov 2018 16:08

Re: Multiplayer

Post by Strawbs89 » 09 Feb 2019 15:23

ok would it be possible if you team viewed me please? to double check if ports are forwarded correctly

peter1138
OpenTTD Developer
OpenTTD Developer
Posts: 1646
Joined: 30 Mar 2005 09:43

Re: Multiplayer

Post by peter1138 » 09 Feb 2019 16:22

In your screenshot, the "access from" field should not contain an IP address, as that is for limiting access to just that IP.
He's like, some kind of OpenTTD developer.

Strawbs89
Engineer
Engineer
Posts: 40
Joined: 10 Nov 2018 16:08

Re: Multiplayer

Post by Strawbs89 » 09 Feb 2019 19:15

i have added two screenshots of my inbound and outbound
Attachments
outbound.png
(24.48 KiB) Not downloaded yet
inbound.png
(29.93 KiB) Not downloaded yet

peter1138
OpenTTD Developer
OpenTTD Developer
Posts: 1646
Joined: 30 Mar 2005 09:43

Re: Multiplayer

Post by peter1138 » 09 Feb 2019 20:04

Change the "Access From" drop down to whatever allows everything.
He's like, some kind of OpenTTD developer.

rowdog
Engineer
Engineer
Posts: 49
Joined: 24 May 2017 12:51
Location: East Texas

Re: Multiplayer

Post by rowdog » 09 Feb 2019 20:07

I don't know anything about your router software but in networking, the source is the sending the packet and the destination is the receiver. Also, when you talk about a range of addresses, the start is the beginning and "the finish" would be the end of the range.

My guess would be that your inbound connection range needs to be 0.0.0.0 to 0.0.0.0 to allow all computers on the internet to reach your server. 192.168.1.4 is your computer which is the destination, not the source for inbound packets.

Outbound is the reverse: your computer is the source and your friend is the destination.

Strawbs89
Engineer
Engineer
Posts: 40
Joined: 10 Nov 2018 16:08

Re: Multiplayer

Post by Strawbs89 » 09 Feb 2019 21:01

so outbound is the source

Strawbs89
Engineer
Engineer
Posts: 40
Joined: 10 Nov 2018 16:08

Re: Multiplayer

Post by Strawbs89 » 09 Feb 2019 21:10

so i'v done everything and still error

Strawbs89
Engineer
Engineer
Posts: 40
Joined: 10 Nov 2018 16:08

Re: Multiplayer

Post by Strawbs89 » 10 Feb 2019 14:54

so i go here https://www.yougetsignal.com/tools/open-ports/

to check if my ports 3979 and 3978 are open, i have the game open as well
i have these ports in my windows firewall as well... as someone last described
in another section on here that he turned off his ipv6 which i have done as well

and i goto that website for port checker and still it's closed like wtf am i doing wrong

i'v attached 3 images
Attachments
in&out.png
(46.17 KiB) Not downloaded yet

Post Reply

Return to “General OpenTTD”

Who is online

Users browsing this forum: Google [Bot] and 5 guests