When you first set up and start YANG you come to the main screen shown below.
Left mouse click on the "Settings" menu then click on
"Multiplayer and networking". You now have 3 tabs.
Player profile, Sound notifications and Networking.
Click on the Networking tab.
This is the place you can change the default ports for YANG when you host rooms and the game port that is used to connect to a game.
You can also change them from here to a different port.
Please continue reading if you do not know how to forward your port on your router.
Ok to keep this simple as possible now look at your router and check on the back/sides of it and find out what make and model number it is.
In this example
mine is a "Linksys
Note down what yours is.
Now click the following link to visit this site and look up your router model number.
Now look at the top right of the page you just opened, you now must click on "Click here to skip this advertisement... "
Ok now that you have done that look a bit down and look for the part that says "If you do not see the program you are forwarding ports for, be sure to visit our Default Guide for this router"
Click on the default guide link on the page you are viewing.
Now in that
guide it will tell you how to login to your router and forward the ports that
you need forwarding.
If you don't know what your LAN IP address is that you need to forward to then.
Go to a DOS Prompt/Command Prompt on the computer you want to forward the port to.
It usually is located by clicking on your start menu / Programs / Accessories, then command prompt.
Or start/run and type "cmd".
When you get the
black window popup.
And this will
give you the LAN IP address you need to forward the ports on.
See screen shot it is highlighted in a green rectangle.
You might need
to scroll up above a bit until you can find it.
Ok so you can see that "192.168.1.120" is the IP address I need to forward the ports to on this machine.
Yours might be different.
(Advanced note - for advanced users)
If you are playing a LAN game on YANG, then each machine will have a different LAN IP address and each machine should have a different game port forwarded for each machine on each LAN IP address and configured on YANG for each machine running on your LAN if you also want people on the internet to be able to see them to connect to them etc.
Though if you just want to play a game using LAN only you don't have to forward your ports.
Each player on your LAN can just join using YANG by the "Action" menu then "Join a room manually" option.
Now below here
is a screenshot of my router settings were I forward the correct ports.
Yours might look a bit different. Check the part surrounded in green lines.
By now you should have forwarded your ports on your router/modem.
When you host a
room on YANG and click on the "Advertise Room" button.
You should be welcomed by the message of the day.
For example in this screenshot.
You can also see
your LAN IP address in this case under the In-game Address list bar.
You don't have to worry about detected IP’s as this is your internet IP address and YANG sorts that out for you.
If you got a different
message such as :-
"* Trying master server 2, please wait...
* Error from master server: A test of connecting to your room has failed. It may just be a slow connection.
It's also possible that TCP port number 8501 is not forwarded in your network."
else such as a firewall software/hardware is blocking this port.
You will have to configure any firewalls to allow you to use these ports and check that there not in use by another program.
Worst case scenario could be that you are using a shared connection or your ISP has blocked these ports from their side and you don't have access to them.
game such as the new version of eDuke32 supports Server/Client netplay.
This means that only the host/Server has to forward their port and anyone else can join them without needing a port forwarded.
DOSBOX Games - In the new YANG version we hope to have support to connect to an IPX Dedicated Tunnel Server.
This would mean no one has to have a port forwarded for the Dosbox games except for the host that is hosting the YANG room and that would mean a default port "8501" for the room and that's it.
You can also connect to it manually in DOSBOX by typing
ipxnet connect yangserver.com
Also there is a second server
ipxnet connect yangserver.com 10000
Then all players load up the game and choose the same socket number and start an IPX game.
Other things we hope to support in the future are uPnP.
Thanks for reading!
I hope this has helped.
Contact - firstname.lastname@example.org