Board index FlightGear Support Multiplayer

How to start your own multiplayer server

Trouble getting online, setting up a server?
Forum rules
In order to help you, we need to know a lot of information. Make sure to include answers to at least the following questions in your initial post.

- what OS (Windows Xp/Vista, Mac etc.) are you running?
- what FlightGear version do you use?
- copy&paste your commandline.

Please, also see Requesting Technical Help.

Note: If you did not get a reponse, even after 7 days, you may want to check out the FlightGear mailing lists to ask your question there.

How to start your own multiplayer server

Postby Hooray » Sat Dec 24, 2011 12:35 pm

All you need to know can be found here: http://wiki.flightgear.org/Howto:_Set_u ... yer_server
Normally, building and configuring fgms should take you about 5 minutes.

Let us know if you need any help though!

Also, it's a good idea to get in touch with the developers mailing list (actually, Curt), so that the mpserverXX.flightgear.org alias can be set up for your server.

Also, once your server is set up and running, you may want to add it to this list: http://wiki.flightgear.org/Howto:_Multiplayer
Please don't send support requests by PM, instead post your questions on the forum so that all users can contribute and benefit
Thanks & all the best,
Hooray
Help write next month's newsletter !
pui2canvas | MapStructure | Canvas Development | Programming resources
Hooray
 
Posts: 12707
Joined: Tue Mar 25, 2008 9:40 am
Pronouns: THOU

Re: How to start your own multiplayer server

Postby ls4680 » Fri Jul 05, 2013 9:33 pm

I have installed fgms on three servers. On each server fgms uses 100% cpu time and I am unable to connect to any of them. Details are below:

I have three FreeBSD servers (version 7.3 stable, version 9.0-stable, version 9.1-PRERELEASE) Results are identical on all systems. I have tried running as root and non-privileged users.

Commands used to install:
Code: Select all
git clone git://gitorious.org/~truthsolo/fgms/fgms-0-x-freebsd.git
cd fgms-0-x-freebsd/
./autogen.sh
./configure --sysconfdir=/etc
make install clean


First line in ChangeLog:
Code: Select all
2010-06-21 08:57  oliver


From /etc/fgms.conf (I did NOT list some lines NOT changed from default):
Code: Select all
server.name = BoxISP
server.address = 192.168.2.10
server.port = 5000
server.telnet_port = 5001
server.logfile = /var/logs/fgms.log
server.tracked = false
server.daemon = false (also tried = true)
server.out_of_reach = 10000 (also tried default of 100)
#relay.host = mpserver01.flightgear.org
#relay.port = 5000


Running fgms commands below produces the following output, uses 100% CPU time and does NOT return the shell prompt:
Code: Select all
home ~#fgms
processing /etc/fgms.conf
^Ckilled by SIGINT! Interrupt (ANSI)

home ~#fgms -D /var/log/fgms.log
param daemon = true
processing /etc/fgms.conf
^Ckilled by SIGINT! Interrupt (ANSI)

home ~#fgms -v 5
processing /etc/fgms.conf
processing /etc/fgms.conf
^Ckilled by SIGINT! Interrupt (ANSI)

home ~#fgms -v 5 -l /var/log/fgms.log
processing /etc/fgms.conf

#fgms -v 5 -l /var/log/fgms.log -p 5000 -D
param daemon = true
processing /etc/fgms.conf


The log file is NOT created (or written to if existing). A log file IS created I use:
Code: Select all
fgms –v 5 –l  /var/log/fgms.log

I have never seen anything in the log file other than similar to:
Code: Select all
05.07.2013 12:25:56 processing /etc/fgms.conf


Netstat output does NOT show port 5000:
Code: Select all
home ~#netstat -an | grep LISTEN
tcp4       0      0 *.587                  *.*                    LISTEN
tcp6       0      0 *.25                   *.*                    LISTEN
tcp4       0      0 *.25                   *.*                    LISTEN
tcp4       0      0 *.80                   *.*                    LISTEN
tcp4       0      0 *.10000                *.*                    LISTEN
tcp4       0      0 *.1220                 *.*                    LISTEN
tcp4       0      0 *.8001                 *.*                    LISTEN
tcp4       0      0 *.8000                 *.*                    LISTEN
tcp4       0      0 *.554                  *.*                    LISTEN
tcp4       0      0 *.7070                 *.*                    LISTEN
tcp4       0      0 *.8088                 *.*                    LISTEN
tcp4       0      0 64.69.45.88.5080       *.*                    LISTEN
tcp4       0      0 64.69.45.88.8443       *.*                    LISTEN
tcp4       0      0 64.69.45.88.1935       *.*                    LISTEN
tcp4       0      0 *.39984                *.*                    LISTEN
tcp4       0      0 *.9999                 *.*                    LISTEN
tcp46      0      0 *.3306                 *.*                    LISTEN
tcp4       0      0 *.21                   *.*                    LISTEN
tcp4       0      0 *.22                   *.*                    LISTEN
tcp6       0      0 *.22                   *.*                    LISTEN
tcp4       0      0 *.110                  *.*                    LISTEN
tcp4       0      0 *.143                  *.*                    LISTEN
tcp4       0      0 *.873                  *.*                    LISTEN
tcp6       0      0 *.873                  *.*                    LISTEN
tcp4       0      0 *.199                  *.*                    LISTEN
tcp4       0      0 *.20000                *.*                    LISTEN
tcp6       0      0 *.2049                 *.*                    LISTEN
tcp4       0      0 *.2049                 *.*                    LISTEN
tcp4       0      0 *.984                  *.*                    LISTEN
tcp6       0      0 *.984                  *.*                    LISTEN
tcp4       0      0 *.111                  *.*                    LISTEN
tcp6       0      0 *.111                  *.*                    LISTEN
tcp6       0      0 ::1.953                *.*                    LISTEN
tcp4       0      0 127.0.0.1.953          *.*                    LISTEN
tcp4       0      0 127.0.0.1.53           *.*                    LISTEN
tcp4       0      0 64.27.7.218.53         *.*                    LISTEN
tcp4       0      0 64.69.45.89.53         *.*                    LISTEN
tcp4       0      0 64.69.45.88.53         *.*                    LISTEN
ls4680
 
Posts: 9
Joined: Wed Jun 12, 2013 11:51 pm
Location: Los Angeles, California, USA
Version: 2.10.0.3
OS: Windows XP,FreeBSD 9

Re: How to start your own multiplayer server

Postby AndersG » Fri Jul 05, 2013 10:24 pm

ls4680 wrote in Fri Jul 05, 2013 9:33 pm:Netstat output does NOT show port 5000:


That, at least, is easy to explain - fgms uses UDP for data transport so grep:ing for LISTEN will not find anything.

Now, I have not built or run fgms since I retired my old Solaris box (very old - a SPARCstation 10 :) some years ago, but I'd suspect that fgms has not been tested much if at all on FreeBSD. On Solaris 8 I had to touch the source in some places to get it to build and run.
Unless there is a lot of traffic fgms should not consume noticeable amounts of CPU so something is wrong with yours - it could be that some of the socket or IPC library functions behave differently compared to on Linux.

/Anders
Callsign: SE-AG
Aircraft (uhm...): Submarine Scout, Zeppelin NT, ZF Navy free balloon, Nordstern, Hindenburg, Short Empire flying-boat, ZNP-K, North Sea class, MTB T21 class, U.S.S. Monitor, MFI-9B, Type UB I submarine, Gokstad ship, Renault FT.
AndersG
 
Posts: 2524
Joined: Wed Nov 29, 2006 10:20 am
Location: Göteborg, Sweden
Callsign: SE-AG
OS: Debian GNU Linux

Re: How to start your own multiplayer server

Postby ls4680 » Fri Jul 05, 2013 10:50 pm

EDIT :SOLVED: See note below

I'd suspect that fgms has not been tested much if at all on FreeBSD


I found a specific FreeBSD version so someone must have done it. It build and installs like a charm but when I run it it sits there does nothing, just a message that it is "processing /etc/fgms.conf". I am not sure I found the latest version though.

I just checked the 2 versions and the first line from the respective ChangeLog files are shown:
Code: Select all
#head -n 1 fgms-0-x-freebsd/ChangeLog
2010-06-21 08:57  oliver
#head -n 1 fgms-0-x/ChangeLog
2013-04-11 13:38:43 geoff

I will dig around the code some more to see if I can get the newer version to build on FreeBSD.

SOLVED: A bit involved so I create a How to page in the wiki. http://wiki.flightgear.org/Howto:Set_up ... on_FreeBSD
ls4680
 
Posts: 9
Joined: Wed Jun 12, 2013 11:51 pm
Location: Los Angeles, California, USA
Version: 2.10.0.3
OS: Windows XP,FreeBSD 9

Re: How to start your own multiplayer server

Postby Hooray » Sat Jul 06, 2013 4:46 am

thanks for your work on this, and thanks for contributing your findings back to the community so that others can benefit, too - much appreciated!
You may also want to consider contributing your source code changes back to the main fgms repository: https://gitorious.org/fgms
As you can see, the project is actively maintained currently - so your chances of getting patches reviewed/committed would seem pretty good.
Please don't send support requests by PM, instead post your questions on the forum so that all users can contribute and benefit
Thanks & all the best,
Hooray
Help write next month's newsletter !
pui2canvas | MapStructure | Canvas Development | Programming resources
Hooray
 
Posts: 12707
Joined: Tue Mar 25, 2008 9:40 am
Pronouns: THOU

Re: How to start your own multiplayer server

Postby Gijs » Sat Jul 06, 2013 10:37 am

Note that we don't use SourceForge anymore. Our "new" bugtracker can be found at http://flightgear-bugs.googlecode.com
Airports: EHAM, EHLE, KSFO
Aircraft: 747-400
User avatar
Gijs
Moderator
 
Posts: 9543
Joined: Tue Jul 03, 2007 3:55 pm
Location: Delft, the Netherlands
Callsign: PH-GYS
Version: Git
OS: Windows 10

Re: How to start your own multiplayer server

Postby ls4680 » Mon Jul 08, 2013 11:40 pm

don't use SourceForge anymore


Oops. I only found FlightGear less than 3 months ago and I am a bit overwhelmed by variations in the documentation. I would make the change to the bug link but I don't remember where I saw it. Thanks for pointing me in the right direction.

your chances of getting patches reviewed/committed would seem pretty good

I was reviewing my steps so I downloaded it again and I notice that my suggestions have already been implemented. :D

once your server is set up and running, you may want to add it to this list: http://wiki.flightgear.org/Howto:_Multiplayer

Now that I have the server running HOW do I get it added to the list as suggested? Just adding to that page really won't do anything, someone would need to set up the DNS. I sent a note to the developers mailing list a few days ago as suggested but have not heard back (my have been my fault possibly from sending from the wrong address).
ls4680
 
Posts: 9
Joined: Wed Jun 12, 2013 11:51 pm
Location: Los Angeles, California, USA
Version: 2.10.0.3
OS: Windows XP,FreeBSD 9

Re: How to start your own multiplayer server

Postby Hooray » Tue Jul 09, 2013 6:14 am

ls4680 wrote in Mon Jul 08, 2013 11:40 pm:
once your server is set up and running, you may want to add it to this list: http://wiki.flightgear.org/Howto:_Multiplayer

Now that I have the server running HOW do I get it added to the list as suggested? Just adding to that page really won't do anything, someone would need to set up the DNS. I sent a note to the developers mailing list a few days ago as suggested but have not heard back (my have been my fault possibly from sending from the wrong address).


The devel list posting is usually the right way - in case of doubt, send a reminder once in a while, or directly get in touch with Curt via eMail or PM (forum).
Please don't send support requests by PM, instead post your questions on the forum so that all users can contribute and benefit
Thanks & all the best,
Hooray
Help write next month's newsletter !
pui2canvas | MapStructure | Canvas Development | Programming resources
Hooray
 
Posts: 12707
Joined: Tue Mar 25, 2008 9:40 am
Pronouns: THOU

Re: How to start your own multiplayer server

Postby ls4680 » Tue Jul 09, 2013 7:37 pm

Thanks to everyone for all the help :D

I was a able to get the server up on FreeBSD and it has been added as mpserver02 http://mpmap01.flightgear.org/mpstatus/ ... htgear.org
ls4680
 
Posts: 9
Joined: Wed Jun 12, 2013 11:51 pm
Location: Los Angeles, California, USA
Version: 2.10.0.3
OS: Windows XP,FreeBSD 9

Re: How to start your own multiplayer server

Postby patstan » Thu Sep 18, 2014 7:10 pm

Sorry for bumping an old thread. I've successfully installed this on one of my servers. In the config file, i changed the SERVER NAME to mpserver99. It is currently on a public IP.
What details will i use to connect to it on flightgear?
patstan
 
Posts: 117
Joined: Wed Jul 16, 2014 2:27 pm
Callsign: patstan
Version: 3.0
OS: Windows 8

Re: How to start your own multiplayer server

Postby Hooray » Thu Sep 18, 2014 7:26 pm

your IP address and port

you can also get in touch with Curt to set up an mpserverXX.flightgear.org alias and update the wiki accordingly.
Note that you'll need to configure relays then.
Please don't send support requests by PM, instead post your questions on the forum so that all users can contribute and benefit
Thanks & all the best,
Hooray
Help write next month's newsletter !
pui2canvas | MapStructure | Canvas Development | Programming resources
Hooray
 
Posts: 12707
Joined: Tue Mar 25, 2008 9:40 am
Pronouns: THOU


Return to Multiplayer

Who is online

Users browsing this forum: No registered users and 1 guest