Board index FlightGear Support Multiplayer

multiple connections on multiplayer ( 2 jets 1 mac )

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.

multiple connections on multiplayer ( 2 jets 1 mac )

Postby KIWI34 » Tue Mar 22, 2016 11:21 am

Because i run fg on mac, I'm not able to edit my multiplayer server ports and ip to link to an existing fg window. Is it possible to change these in the internal properties? as i want to fly 2 aircraft online and i need to change the ports to be able to do so

much help appreciated

KIWI34 :)
Callsigns : KIWI34 , CHT0054 ( seasonal )
Aircraft : ANZ 777-200ER ( South Pacific ) ANZ A320-214 ( Europe )
Want to know where I'm flying ? i always file a flight plan for every flight on :
http://flightgear-atc.alwaysdata.net/index.php5
KIWI34
 
Posts: 412
Joined: Sun Oct 19, 2014 8:17 am
Location: Auckland, New Zealand
Callsign: KIWI34
Version: 2019 1.1
OS: Mac OSX 10.11.12

Re: multiple connections on multiplayer ( 2 jets 1 mac )

Postby pommesschranke » Sat Oct 08, 2016 11:55 pm

have a look at gui/dialogs/multiplayer.xml and change the rxport to 5001 in line 236
tell us if it works, becasue I did not try it ;-)

Code: Select all
 <binding>
            <command>nasal</command>
            <script>
            fgcommand("multiplayer-connect",  props.Node.new({
              "servername": getprop("/sim/multiplay/selected-server"),
              "rxport": 5000,
              "txport": 5000
            }));
            </script>
          </binding>
pommesschranke
 
Posts: 1117
Joined: Sat Apr 27, 2013 8:58 pm
Location: EDLM & LJCE
Callsign: d-laser
IRC name: laserman
Version: git
OS: Linux Kubuntu 22.04

Re: multiple connections on multiplayer ( 2 jets 1 mac )

Postby Hooray » Sun Oct 09, 2016 8:45 am

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: multiple connections on multiplayer ( 2 jets 1 mac )

Postby KIWI34 » Mon Oct 10, 2016 12:19 pm

im on mac, and still haven't found the case as to how to launch FG twice...
Callsigns : KIWI34 , CHT0054 ( seasonal )
Aircraft : ANZ 777-200ER ( South Pacific ) ANZ A320-214 ( Europe )
Want to know where I'm flying ? i always file a flight plan for every flight on :
http://flightgear-atc.alwaysdata.net/index.php5
KIWI34
 
Posts: 412
Joined: Sun Oct 19, 2014 8:17 am
Location: Auckland, New Zealand
Callsign: KIWI34
Version: 2019 1.1
OS: Mac OSX 10.11.12

Re: multiple connections on multiplayer ( 2 jets 1 mac )

Postby PINTO » Mon Oct 10, 2016 3:16 pm

Use command line instead of the launcher and you can specify ports.
Actively developing the MiG-21bis (github repo) (forum thread) (dev discord) (fg wiki)

http://opredflag.com is an active flightgear dogfighting community (using a system that isn’t bombable)
User avatar
PINTO
 
Posts: 966
Joined: Wed Oct 21, 2015 7:28 pm
Callsign: pinto
Version: stable
OS: Win10

Re: multiple connections on multiplayer ( 2 jets 1 mac )

Postby pommesschranke » Mon Oct 10, 2016 5:00 pm

Start instance 1:

fgfs --multiplay=out,10,SERVER-IP,5000 --multiplay=in,10,,5002 --callsign=one

Start instance 2 (on the same PC, if you like):

export FG_HOME=/home/user/dot-fgfs2

fgfs --multiplay=out,10,SERVER-IP,5000 --multiplay=in,10,,5003 --callsign=two

(One $FG_HOME folder for each running FlightGear. see: http://wiki.flightgear.org/$FG_HOME )
pommesschranke
 
Posts: 1117
Joined: Sat Apr 27, 2013 8:58 pm
Location: EDLM & LJCE
Callsign: d-laser
IRC name: laserman
Version: git
OS: Linux Kubuntu 22.04

Re: multiple connections on multiplayer ( 2 jets 1 mac )

Postby Richard » Mon Oct 10, 2016 6:41 pm

For the multiplayer connection the important points are:

* The outwards port needs to always be the same number (5000)
* The inbound port needs to be different for each instance (5000, 5001, 5002, ...)
* The callsign needs to be different (in the first 7 letters)

If any of the above aren't followed then one, or other of the instances will block the others and it will just not work.

e.g.

Code: Select all
fgfs [usual options] "--multiplay=out,mpserver01.flightgear.org,5000" "--multiplay=in,10,,5000" -callsign="player1"
fgfs [usual options] "--multiplay=out,mpserver01.flightgear.org,5000" "--multiplay=in,10,,5001" -callsign="player2"
fgfs [usual options] "--multiplay=out,mpserver01.flightgear.org,5000" "--multiplay=in,10,,5002" -callsign="player3"


I think the most I've ever had is about 9 at the same time...

There may be other considerations such as sharing FG_HOME
Richard
 
Posts: 810
Joined: Sun Nov 02, 2014 11:17 pm
Version: Git
OS: Win10

Re: multiple connections on multiplayer ( 2 jets 1 mac )

Postby Hooray » Mon Oct 10, 2016 6:45 pm

sharing $FG_HOME between multiple concurrently running instances was at some point considered to be one of the culprits for breaking the navcache, but sharing $FG_ROOT/$FG_SCENERY would defintely make sense.


Besides, please feel free to help us review/improve the wiki according to the advice posted here.
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 3 guests