Howto:Multiplayer: Difference between revisions

Jump to navigation Jump to search
Line 40: Line 40:
Try the above first, and if it doesn't work, read on.
Try the above first, and if it doesn't work, read on.


First of all, you need to know the IP address of the network interface you're going to be running FG multiplayer over. If your Internet connection is via an ADSL modem that plugs directly into your computer with a USB connection, you should be able to find your IP address by visiting http://www.whatismyip.com . Please note that this address may very well change every now and again - if MP stops working, check this first.
First of all, you need to know the IP address of the network interface you'll be using for multiplayer FG. If your Internet connection is via an ADSL modem that plugs directly into your computer with a USB connection, you should be able to find your IP address by visiting http://www.whatismyip.com . Please note that your ISP might not give you the same IP address each time - if MP stops working, check this first.


Otherwise, your connection is likely via some kind of router that connects to your computer via an RJ-45, or "Ethernet" connector (similar shape to most Western telephone plugs), or by a wireless link. You need to find the IP address of that network interface.
Otherwise, your connection is likely via some kind of router that connects to your computer via an RJ-45, or "Ethernet" connector (similar shape to most Western telephone plugs), or by a wireless link. You need to find the IP address of that network interface.
Line 46: Line 46:
Under linux, this can be found by logging in as root and typing "ifconfig". You may find more than one interface listed, beginning with "lo" - ignore that one. You should have something like "eth0" or "wlan0" also listed - look through this block of text for "inet addr". This will be followed directly by the number you're looking for, e.g. "inet addr:192.168.0.150"
Under linux, this can be found by logging in as root and typing "ifconfig". You may find more than one interface listed, beginning with "lo" - ignore that one. You should have something like "eth0" or "wlan0" also listed - look through this block of text for "inet addr". This will be followed directly by the number you're looking for, e.g. "inet addr:192.168.0.150"


Under Windows XP, click start, run, and type "cmd". In the terminal window which appears, type "ipconfig" This should show you your IP address - note it down.
Under Windows XP, click start, run, and type "cmd". In the terminal window which appears, type "ipconfig" This should show you your IP address - write it down.


With Windows 98, click start, run, and type "winipcfg" to get information about your IP address.
With Windows 98, click start, run, and type "winipcfg" to get information about your IP address.
Line 64: Line 64:


Choose your own callsign - this is currently limited to seven characters.<br>
Choose your own callsign - this is currently limited to seven characters.<br>
NOTE: Windows users also might have to add the option --enable-ai-models on their command line in order to see other multiplayer aircraft(or in fgrun, check the box that says "AI Models")


Once you have started FG, you should, if others are flying, see messages in the terminal from which FG was started, similar to the following;
Once you have started FG, you should, if others are flying, see messages in the terminal from which FG was started, similar to the following;
Line 76: Line 75:
You should check that your firewall is not causing problems - either turn it off _temporarily_ or add an exception to allow incoming connections on port 5000 and 5002.
You should check that your firewall is not causing problems - either turn it off _temporarily_ or add an exception to allow incoming connections on port 5000 and 5002.


If it's still just not working for you, ask nicely on the FlightGear IRC channel and someone should be able to assist.
If it's still just not working for you, ask nicely on the [irc://irc.flightgear.org/flightgear FlightGear IRC channel] and someone should be able to assist.
Multiplayer Map
Multiplayer Map
There is a very nice online map which displays the location of online pilots at http://mpmap01.flightgear.org .  You will also find this useful to check that you are successfully connecting to the server.
There is a very nice online map which displays the location of online pilots at http://mpmap01.flightgear.org .  You will also find this useful to check that you are successfully connecting to the server.
186

edits

Navigation menu