See links above for SimATC specific manuals. Standard DafSim documentation below:
A Pilot Client For Online Simulation (using DAFSIM Protocol)
One thing you need to know before : You can not run FS with several pilot clients installed, so if you want to try Squawkwin, you must disable the other clients.
First thing first is to open 3 TCP ports number 55008, 55009 and 55010 in ALL your firewalls, routers, NATs, Windows firewall and so on.
The full path to reach your software on these TCP ports must be open and cleared.
I. Installation
The pilot client is available as an auto-installer executable software.
Unzip the package somewhere is a temporary folder, launch SwInstal.exe, select your version of FS ( FSX, FS2004 or FS2002) then click OK.
After having installed Squawkwin, all you need to do is to run FS.
II. Quick Connect
IMPORTANT: If you are flying with Flight Simulator 2002, you have to host manually a multiplayer session before launching SquawkWin.
You don’t need to perform this step if you are flying with FS2004 or FSX.
1. Lauching SquawkWin
You will find a new entry in your FS menu. Select “SquawkWin” and click “Open”. Hint : You may also press on your keyboard Shift + Tab keys to open (or show/hide) SquawkWin and specially if you don't see the menu at first installation.
With FS2004, a multiplayer session will be launched automatically, with FSX, SquawkWin will create an internal multiplayer session.
A new window fully integrated in FS Window will appear. This is the SquawkWin user interface :
2. Selecting your Network
Move your mouse cursor over the Squawkwin’s text window and click the right mouse button. The SquawkWin menu will appear.
Select “Options, then Setup your Network... ”, a new window will appear
IMPORTANT: You must open 3 TCP ports on your router and firewall, for using SquawkWin. It's MANDATORY. NO PORT OPEN = NO CONNECTION.
- Put in the first edit field (P2P TCP Port) the first port open on your router and firewall (default is 55008), in the second (DAFSIM TCP Port) the second port open and the third in the third box (Extension TCP Port).
- Enter the name of your website (this information will be brought to you by your network administrator).
- Enter the URL of your PHP connection page (contact your network administrator for this). Default is /dafsim/servers.php
- Click on Save buttom
3. Connecting to Your Network
Move your mouse cursor over the Squawkwin’s text window and click the right mouse button. The SquawkWin menu will appear.
Select “Connect to Network...”, then choose your favorite Network.
The network data are loaded from the Internet to show online servers.
A new window will appear where you can enter your network information : PID, password, callsign, first name, last name and your base airport
Choose a server then click on “Connect now” or double click the server’s line.
If everything is ok, you should be connected to the network server.
If you are licensed to kick out "bad boys" , please refer to KICKING A PLAYER in the SquawkRadar section
SquawkRadar
An ATC Radar Client For Online Simulation (using DAFSIM Protocol)
How to setup and connect your SquawkRadar (SR) :
CAUTION : If you use SquawkRadar under Windows VISTA, then disable the AERO interface or SR would crash to desktop because of the 3D mode of AERO !
First thing first is to open TCP port number 55004 in ALL your firewalls, routers, NATs, Windows firewall and so on.
The full path to reach your software on TCP port 55004 must be open and cleared.
On your PC (running (c)Microsoft Windows) if you have not created the folder for SR, then create a folder called DAFSIM and in this folder create another folder called SR
This should looks like : C:\dafsim\SR
Copy and unzip in (C:\dafsim\SR) the SquawkRadar.zip file and double click to launch SquawkRadar.exe
Now there are two steps : One step should be done only ONCE to setup the installation and the second step is the normal and usual connecting step.
In SR, click "Setup" tab control then click "Network Setup" Button
FIRST STEP TO DO ONLY AT THE VERY FIRST INSTALLATION
In SR, click "Setup" tab control then click "Network Setup" Button
Fill your first and last name, then use the login / Password that are registered in the Dafnode (or choose what you want and apply on the fly if the network owner is front of his PC to accept you)
In the Radar TCP port enter 55004
In the website line enter www.mywebsite.com (without http:// !!!) of course don't use mywebsite but your real website name !
Third line should be like this /dafsim/servers.php
Type a text in your ATIS
Enter an URL to your voice channel (something like mywebsite.no-ip.org/KLAX_APP for example)
Click "Save" button
Click "Load Sector" button, select a sector file and then click "Save" button again
SECOND STEP (WHAT TO DO EACH TIME YOU LAUNCH YOUR RADAR)
Click "Main controls" tab control, Click the "OFF --> on" to connect (to switch from OFF state to ON)
That's ALL ! You should be connected on your network !
Hint : You may press F1 key to read a condensed HELP and find-out by your self...
KICKING A PLAYER
This may be done for a player that does not respond (not front of his PC) or a player that disturbs others.
In the text field where you usually exchange messages or request weather using .WX commands, enter the following : !TARGETCALLSIGN!always type a free text to explain the reason of kicking this callsign
No spaces between the target callsign and !
The player who's callsign is TARGETCALLSIGN will be kicked out ONLY if you have been licensed to kick by the DAFNODE
The target will receive a message saying why he has been kicked
And a log of this action is written in a file (same folder than dafnode) called KickedOut_log.txt to let the network owner review the actions.
If you don't use a LAN, you need to setup your website like this :
Suppose that you have a website called www.mywebsite.com, then you can create a flight simulation network called MYWEBSITE.
For the moment I have only written the tools for a PHP compatible website, but if you are ASP skilled, then you can help me and contribute by converting my PHP to it's equivalent in ASP and I'll put it online with your name.
Unzip the file php_dafsim.zip and upload all the files in the www.mywebsite.com/dafsim, and give PHP pages the execution and file creation rights (use chmod command).
Dafnode
There are two items to setup : One item is the website, the other one is the Dafnode server.
First thing first, setup your website as explained above.
Installing and running the Dafnode :
Next step is to open TCP port number 55000 in ALL your firewalls, routers, NATs, Windows firewall and so on.
The full path to reach your software on TCP port 55000 must be open and cleared.
On your hard disk (your own PC or any windows machine) create a folder called DAFSIM and then in this folder create a folder called dafnode.
This should looks like : C:\dafsim\dafnode
In the dafnode folder (C:\dafsim\dafnode) unzip the Dafnode.zip file and double click to launch Dafnode.exe
Now there are two steps : One step should be done only ONCE in order to setup the installation and the second step is the normal and usual connecting step.
FIRST STEP TO DO ONLY AT THE VERY FIRST INSTALLATION
In the Dafnode, click "Setup and Database" tab control then click "Network Setup" Button
Click "Dynamic DNS Disabled" button and switch it to enabled state.
Click "Main controls" tab control
Click the "OFF --> on" to connect (to switch from OFF state to ON)
If everything is correct, you should see this message "...Main Hub mode enabled."
That's ALL ! Your server is now available for your network.
Now let's create your whazzup infos to let you display your network activity on some softwares like (c)ServInfo and (c)Whazzup (Copyrighted softwares)
Edit the text file called status.txt (should be found in your C:\dafsim\dafnode) and replace "mywebsite" by the real name of your website.
Save it and then upload it to your website here www.mywebsite.com/whazzup and allow file creation in this folder (the file whazzup.txt will be automatically called at each minute when Dynamic DNS will occur)
That's ALL !
SECOND STEP (WHAT TO DO EACH TIME YOU LAUNCH YOUR SERVER)
After having launched Dafnode.exe, click "Setup and Database" tab control then click "Network Setup" Button.
Enter your password and click "Dynamic DNS Disabled" button and let it be enabled.
Click "Main controls" tab control, Click the "OFF --> on" to connect (to switch from OFF state to ON)
If everything is correct, you should see this message "...Main Hub mode enabled."
That's ALL ! Your server is now available for your network.
A member can be added "on the fly" when he tries to connect or you can create in advance his account (by clicking "Setup and Database" tab control then "Members Databse" button ... I let you discover ...
When a member does apply on the fly, you get his GUID (a unique identifier).
When a member is banned, then even if he tries to connect with a new name and new login, he will be refused. The only way to get accepted is to use another PC or reformat the Hard Drive, and this could take several PC's or several hours ...
Take a look at the PHP code I've made to understand more... and don't forget to read the FAQ, there are some nice tricks !
DCS + DGI
There are three items to setup : One item is the website, the other one is the core server (DCS) and the last one is the graphic interface DGI.
First thing first, setup your website as explained above.
Installing and running the DCS :
Next step is to open TCP port number 55000 in ALL your firewalls, routers, NATs, Windows firewall and so on. The full path to reach your software on TCP port 55000 must be open and cleared.
On your hard disk (your own PC or any windows machine) create a folder called DAFSIM and then in this folder create a folder called dafnode.
This should looks like : C:\dafsim\dafnode
NOTA :
a) If you already have installed dafnode.exe, then you just need to copy there the DCS.exe ( dafnode.exe and DCS.exe do share the same database and config files )
b) It is NORMAL to create a folder called dafnode to install in it the DCS; DCS means ... Dafnode Core Server
In the DCS folder (C:\dafsim\dafnode) unzip the DCS.zip file and double click to launch DCS.exe
Now there are two steps : One step should be done only ONCE in order to setup the installation and the second step is the normal and usual connecting step.
FIRST STEP TO DO ONLY AT THE VERY FIRST INSTALLATION
Edit the file DafNode.ini in the DCS folder and fill the following fields :
[NETWORK]
TcpPortNumber=55000
ConnectWebSite= <--- Here write your website's name (www.yourwebsite.xxx)
ConnectPagePath=/dafsim/servers.php
Here is an example :
; This file is used by the DAFNODE server ( www.dafsim.com )
;------------------------------------------------------------------
[GENERAL]
NodeName=BEN
NodeCountry=FRANCE
NodeCity=PARIS
NodeComments=Bonjour les pilotes et les ATC !!!
AddPilotRankWhazzup=Y
ATCcanKickout=Y
OnlyAtcCanKickout=N
AnyAtcCanKickout=N
PilotsCanNotPause=N
PilotsCanNotSlew=N
AddFsVersionWhazzup=Y
;------------------------------------------------------------------
[NETWORK]
TcpPortNumber=55000
ConnectWebSite=www.dafsim.com
ConnectPagePath=/dafsim/servers.php
ConnectWebSiteFriend=
ConnectPagePathFriend=
LANmode=N
;------------------------------------------------------------------
Save your DafNode.ini file and close it
Run your DCS.exe server (double click directly on DCS.exe ) :
In the DCS window, press 'P' key then press 'Y' key and enter your password like this:
Now press 'H' key to get a hash of your current password.
You should read an answer like this $1$49cfea50$LopgCeYdsXvz3nPhvDhLo1, then right click the mouse to select it and and right click again to copy it.
If you don't have received a hash, then your servers.php is not running. Fix it in your website and try again.
Open your file servers.php and paste the hash string to update the variable g_szPasswordHashServer1 with the new value.
Here is an example extracted from a servers.php file:
....
.....
// this is the MD5 hash of your webmaster password
//$g_szPasswordHashServer1 = ""; // fill this with the MD5 hash of your password in Dafnode !!!
// example $g_szPasswordHashServer1 = "$1$a9ac3186$T3v1F8plr8UK8CXKGgbzC/"; $g_szPasswordHashServer1 = '$1$4fae0cf2$HUddWx3DI98aATimLoME7/';
///////////////////////////////////////////////////////////////////////////////////
// Get the IP address of the calling user
.....
......
The hash must start with $ and be enclosed between ' ' and the line must end with a semicolon ;
Now press 'D' key to activate the Dynamic DNS and switch it to enabled state.
When you do this, the dafnode ( or DCS ) will connect to your website calling the servers.php file and providing your password.
The php code will compute the hash of the password it receives from the dafnode and check it against the stored hash ( the variable g_szPasswordHashServer1 ) and if it matches, then your dafnode will be recognized as being the main hub
This is mandatory and the only way to allow a given dafnode ( or DCS ) to access and deal with your website in a secured way and avoir anyone using another dafnode to access your flight simulation network data.
Now press 'O' key to switch from OFF state to ON state and activate the server.
You should see the message "Main Hub mode enabled" like this :
Now, in order to fully ( and remotely if need be ) manage your DCS, you need to connect a DGI ( Dafnode Graphic Interface ) to your DCS.
On your hard disk open the DAFSIM folder and create there a new folder called DGI.
This should looks like : C:\dafsim\DGI
In the DCS folder (C:\dafsim\DGI) unzip the DGI.zip file and double click to launch DGI.exe, this should look like this :
Click the "Network setup" button and then enter a login (anyone you want, this is not meaningfull for now) and then in the password type the same password you used in the DCS ( in the example it was 'secretpassword' )
If you have installed the DGI on the same PC than the DCS then fill the url field with 127.0.0.1:55000 otherwise enter your website's name like in this example :
Click the "Save" button
Now click the "CONNECT" button and you should be connected to the DCS like this example :
Now enjoy and manage your DCS remotely using the DGI exactly ( or better than ) you did with the "old" dafnode.
SECOND STEP ( HOW TO MAKE YOUR SERVER START AUTOMATICALLY )
Easy !
Create a shortcut on the DCS and then make it automatically run at Windows (or Linux) Startup, just use in the "command line" these two commands separated by a space, Here is an example : C:\anyfolder\DCS.exe DELAY_TO_CONNECT_AT_STARTUP=3 PASSWORD_TO_WEBSITE=yourpassword This will automatically run the Dynamic DNS using your password and Connect Dafnode server after 3 seconds ...
Here is an example of how looks the shortcut under Windows ( My Windows is French sorry )