How To Host (using Port-Forwarding)
-
I updated my guide. Should be easier now!
-
-
@prastle How to Host a Bot.
Anyone that can host can host bots.Now you will need to place a bot folder or multiple ones, in the same TripleA program folder. The below is an example of one of my bots. Using windows. Other operating systems are slightly different.
@echo off
SET PORT=3363
SET BOT_NUMBER=25SET LOBBY_HOST=45.79.144.53
SET LOBBY_PORT=3304java -server -Xmx320m -Djava.awt.headless=true -classpath bin/triplea.jar games.strategy.engine.framework.headlessGameServer.HeadlessGameServer -Ptriplea.game.host.console=false -Ptriplea.game= -Ptriplea.server=true -Ptriplea.port=%PORT% -Ptriplea.lobby.host=%LOBBY_HOST% -Ptriplea.lobby.port=%LOBBY_PORT% -Ptriplea.name=Bot%BOT_NUMBER%_Pras1 -Ptriplea.lobby.game.hostedBy=Bot%BOT_NUMBER%_Pras1 -Ptriplea.lobby.game.supportEmail=prastle7@hotmail.com -Ptriplea.lobby.game.comments="automated_host" -Ptriplea.lobby.game.reconnection=172800
pause
Save the above to a notepad file and rename it with the name and number that you wish for your bot. Make sure it is using one of the correct port numbers you have opened on your router. Now resave the notepad file as a .bat file and place it in your Triple program folder. Test to see if your bot launches in the lobby. @RoiEX please have a look at this and see if you agree thanks Pras
-
@roiex i have changed the required parameters in my router for forwarding. however triplea is looking for my computer on 67.193.217.176 whereas i have no control to change the ip address in the router. so i am stuck. i have the posts and help guides but it isnt working. thoughts?
-
@lehabitant I'm not sure what exactly is your problem. There's no need to change an IP address at all.
I'm assuming you're probably not familiar with WANs and LANs so I try to explain it in simple terms: There are about 4 Billion possible IPv4 addresses but far more devices able to access the Internet. So to temporarily (for the long run IPv6 was developed) avoid this problem your Router makes all of your devices at home share the same public IP address.
Normally this works perfectly fine, but it fails when you actually want another device to access your computer via the Internet.
So you basically want to tell your router to forward any requests on <your configured port> to your local PC in your Local (Area) Network to <your configured port>.
I hoped this helped understanding what you're trying to achieve.
In order to help you any further on this: On which exact step are you having problems with? -
@roiex i understand what you have posted. i am failing to have my computer recognized on the internet/by triplea. i think i have my forwarding parameters correct but i can seem to get triple a to find me. hence i am unsure of what more i can do. when triple a tries to find me i get an error message that says ....cant find you on 67.193.217.176. in my router the only address i have is 192.168.1.140. i understand i dont need to change IP due the router doing its job. but if i have set everything correctly, where am i going wrong?
my settings for single port forwarding on a linksys ea6100:
name external port internal port protocol device IP enabled
triplea 3300 3300 both 192.168.1.140 true -
@lehabitant Your setup looks good, it's probably just a typo or something minor at some point. Note that every IP starting with 192.168 is a local IP only visible from within your LAN. So TripleA probably correctly detects your public IP, this is unlikely the problem.
I can recommend canyouseeme.org a tool you can use to check if you setup port forwarding correctly. Just enter the port you want to check and it will tell you if it's able to detect a service at that port. Note that this will only work when your client/ TripleA is already actively hosting (you might need to use a headless client for this to work, not sure if you can just ignore the warning).In any case looking at a guide from your router manufacturer there are only
32 possible error sources that would come to my mind. I'm assuming you enabled your rule correctly (just noticing this, because it seems there's a checkbox to enable this rule, but you probably already checked that twice.)
So the are just 2 things that might be the problem here: Your port could be wrong. It might be the case that triplea is hosting on another port than you configured it to something other than 3300.
The other potential problem, also described in the guide could be that your ip address is wrong/outdated.
To make sure your ip is correct, (assuming you use Windows) press the Windows Button + R type incmdEnter, type inipconfigEnter.
Somewhere in this description should be your ip address.
If it's not that's your issue. You might need to make your local ip static (see guide) for the ip not to change in the future.
Hope this helps -
@roiex i have done everything you have suggested including using the canyouseeme. it couldnt see me. i apologize for so many posts but would like to figure this out. i havent made any typos or other errors that i can see. if i have everything correct in my router settings, would it be the windows firewall? i have the exception in it but that could be a possibility...
-
The firewall diagnosis is fairly simple. What happens when you try the below?
( Note, if you have multiple firewalls, confirm their status too. )
Troubleshooting
Computers often don't work like you want them to, here are some tricks that might come in handy if something is not working for you:
Try ***temporarily*** disabling your Firewall. If everything is working fine with your Firewall disabled, you haven't setup your Firewall correctly.If it's still not working your Router isn't correctly forwarding the traffic to your PC.Replacement of http://tripleadev.1671093.n2.nabble.com/Download-Maps-Links-Hosting-Games-General-Information-tp4074312p4085700.html
-
@general_zod tried my firewall settings too. regardless of what i do triplea comes back with the same message .....looking for your computer on 67.193.217.176 port 3300... all of my settings appear to be setup correctly. i also turned off my firewall in my router and in windows. no luck. i pretty much give up. i cant think of anything else to try and everything appears correct. no idea where to go next.
-
Correct me if I'm wrong.
I am assuming this message is seen somewhere in the router traffic history only.
The ip that it refers to doesn't look like a local ip address, it looks like a outside ip. (the ip assigned by your internet service provider).
Is "67.193.217.176" what you have entered in "Device IP" in your routers port forward config? If so confirm this is truly the local ip address of you computer.

To make sure your ip is correct, (assuming you use Windows) press the Windows Button + R type in
cmdEnter, type inipconfig /allEnter.
Somewhere in this description should be your ip address. -
all is well now. due to some internet malfunctions i ended up removing my linksys router considering my ISP provides me with a wireless router. logged in and made the port changes and looks like everything is fine now. was able to host. thanks for your help and patience. happy gaming.
-
For Mac OS, when you host a game the system will ask you if TripleA can receive incoming requests (authorize it).
Once you've hosted a game, it will show the IPv6 address. For other computers on the LAN, they'll have to connect with the host's IPv4 address.
IP websites will report your router's WAN address, not the one you need. To get the host's local IPv4 address, open terminal and enter "ifconfig getifaddr enX" where X = 0 (eth), 1 (wifi), usually.
-
@prastle said in How To Host:
@prastle How to Host a Bot.
Anyone that can host can host bots.Now you will need to place a bot folder or multiple ones, in the same TripleA program folder. The below is an example of one of my bots. Using windows. Other operating systems are slightly different.
@echo off
SET PORT=3363
SET BOT_NUMBER=25SET LOBBY_HOST=45.79.144.53
SET LOBBY_PORT=3304java -server -Xmx320m -Djava.awt.headless=true -classpath bin/triplea.jar games.strategy.engine.framework.headlessGameServer.HeadlessGameServer -Ptriplea.game.host.console=false -Ptriplea.game= -Ptriplea.server=true -Ptriplea.port=%PORT% -Ptriplea.lobby.host=%LOBBY_HOST% -Ptriplea.lobby.port=%LOBBY_PORT% -Ptriplea.name=Bot%BOT_NUMBER%_Pras1 -Ptriplea.lobby.game.hostedBy=Bot%BOT_NUMBER%_Pras1 -Ptriplea.lobby.game.supportEmail=prastle7@hotmail.com -Ptriplea.lobby.game.comments="automated_host" -Ptriplea.lobby.game.reconnection=172800
pause
Save the above to a notepad file and rename it with the name and number that you wish for your bot. Make sure it is using one of the correct port numbers you have opened on your router. Now resave the notepad file as a .bat file and place it in your Triple program folder. Test to see if your bot launches in the lobby. @RoiEX please have a look at this and see if you agree thanks Pras
Are this instructions out of date? I get:
Error: Could not find or load main class games.strategy.engine.framework.headlessGameServer.HeadlessGameServerWhat it should be isn't obvious to me. Works fine on build 3635.
Also, why is the port 3363? I thought it should default to 3300?
-
@simon33 Port is whatever you are using
new file is located hereLast time I worked with it was .10182
you need to place the headless file in the same folder as the new headed file
-
-
@RoiEX
I assume we have to make changes to the router. Our router is controlled completely by our isp. Are there commands we can run to do the port forwarding without having to get into the router?3300 is open
-
@beelee you need to port forward the router and allow triplea through your windows firewall. A good site to look at is portforward.com
-
@beelee Also if you figure out how to portforward a cell modem let me know

-
yea i can't log in to my router. My ip has to do it ( MCI ) I also have Century Link, but it's pretty slow. I should be able to change it though
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login