Author Topic: What is the local behind-their-firewall IP address  (Read 3746 times)

Offline vigilo confido

  • Jr. Member Mark III
  • **
  • Posts: 92
What is the local behind-their-firewall IP address
« on: March 31, 2014, 07:20:01 pm »
Is it the default gateway address?

Offline x4000

  • Chris McElligott Park, Arcen Founder and Lead Dev
  • Arcen Staff
  • Zenith Council Member Mark III
  • *****
  • Posts: 31,651
Re: What is the local behind-their-firewall IP address
« Reply #1 on: March 31, 2014, 07:47:01 pm »
No, that's the address of their network on the LAN.  So, if you're doing port forwarding to a computer, then that is the IP address of the computer that you want to forward to.  The gateway address is the address of the router.
Have ideas or bug reports for one of our games?  Mantis for Suggestions and Bug Reports. Thanks for helping to make our games better!

Offline vigilo confido

  • Jr. Member Mark III
  • **
  • Posts: 92
Re: What is the local behind-their-firewall IP address
« Reply #2 on: March 31, 2014, 09:23:28 pm »
Thanks for the response. It is really great seeing the developer of a game help it's customers out. Ironically enough, I am going to take a networking class in college next year and go for the Cisco NOC. AI wars though seems to want me to know some stuff now though. Can you please guide me with this? I like learning new skills and being more erudite.

I seem to have read your guide wrong and need my friends local behind-their-firewall IP address.

"1. The client does nothing.

2. The host finds out their local behind-their-firewall IP address.

3. The host logs into their router.

4. The host forwards the single AI War port (configurable in settings if you wish) to their behind-their-firewall local IP.

5. The host finds their external IP (http://www.whatismyip.com/) and gives that to the client.

6. The client connects to the host via the external IP, using the same port that was set up in #4.

7. If there are still problems, make sure that there are not any software firewalls on the client or server side that are interfering (sometimes antivirus software includes firewalls you might not even be aware of).  There needs to be an exception in any and all software firewalls on the client and server side for AI War and its port.

Hope that helps!"

Hopefully with just a few questions, I can figure out how to do this and get it to work by myself with a computer on a separate network. Then I can hopefully I can get it to work with my friend but thats a separate issue only I will be able to solve lol. I thought the client literally had to do nothing and I only needed my own addresses. I read the online guide you recommended but I still am confused. Can you replace the pronouns by any chance in your post? It caused me to get things backwards.

Can I get both addresses from typing IP config?

If yes, can you tell me the text besides the local behind-their-firewall IP address and external IP address in command line? I am not familiar with the jargon of each type of IP address.

Then all I need is the password to my friends router and I will only be touching his router and his IP addresses; not mine? Step 5. is really confusing.

All I need to find my friend's router is his gateway address then?

Thanks for your help and I am always ready to learn something new.

Offline x4000

  • Chris McElligott Park, Arcen Founder and Lead Dev
  • Arcen Staff
  • Zenith Council Member Mark III
  • *****
  • Posts: 31,651
Re: What is the local behind-their-firewall IP address
« Reply #3 on: March 31, 2014, 09:48:05 pm »
Thanks for the response. It is really great seeing the developer of a game help it's customers out. Ironically enough, I am going to take a networking class in college next year and go for the Cisco NOC. AI wars though seems to want me to know some stuff now though. Can you please guide me with this? I like learning new skills and being more erudite.

Hopefully with just a few questions, I can figure out how to do this and get it to work by myself with a computer on a separate network. Then I can hopefully I can get it to work with my friend but thats a separate issue only I will be able to solve lol. I thought the client literally had to do nothing and I only needed my own addresses. I read the online guide you recommended but I still am confused. Can you replace the pronouns by any chance in your post? It caused me to get things backwards.

Sure, no problem, and it's my pleasure:

Quote
1. Your friend does nothing.

2. You find out your local behind-your-firewall IP address. (generally use ipconfig /all at the command line if you are on windows)

3. You logs into your router.

4. You forward the single AI War port (configurable in settings if you wish) to your behind-your-firewall local IP.

5. You find your external IP (just go to http://www.whatismyip.com/) and give that to your friend.

6. Your friend connects to your game via the external IP from #5, using the same port that was set up in #4.

7. If there are still problems, make sure that there are not any software firewalls on your friend's computer or your computer that are interfering (sometimes antivirus software includes firewalls you might not even be aware of).  There needs to be an exception in any and all software firewalls on both computers for AI War and its port.  However, your friend should have to do nothing with their router at all.

NOTE: If you have a router of your own behind a dsl/cable modem, then it is entirely possible that you have two firewalls -- one on your router, and one one the cable modem.  To avoid complexity here, you generally want to turn off the firewall on the modem, because it is pointless -- your own router is already doing that.  Generally that means putting your modem into "DMZ" mode or similar.  Please note!  If you hook up anything directly to your modem without going through your own router, and the modem is in DMZ mode, then there is no firewall at all protecting that thing you connected to the modem -- it's as naked as can be, bad news.  So don't set it up as a DMZ if, for instance, you are running your Wifi off the modem.  Your wifi would have to be running off your own router to do that.

Whew, I hope that's not too confusing.

Can I get both addresses from typing IP config?

No, just your own internal address.  That is the address that your router has assigned your computer.  That is the address that you need to do the port forwarding to on your router.  Port forwarding is just saying "hey router, any messages that come to port X, be sure and send it to this specific computer on your internal network, thanks." 

It's like the mailman dropping off all the mail at the front desk of an apartment building (the router), and then someone who works for the building looking at the apartment numbers and delivering them to each apartment (those being the ports being assigned to the internal network IDs).  I hope that example didn't make things worse rather than better. ;)

If yes, can you tell me the text besides the local behind-their-firewall IP address and external IP address in command line? I am not familiar with the jargon of each type of IP address.

Type "ipconfig /all" minus the quotes.  You will see a bunch of crap.  You may see multiple network adapters, representing things ranging from your wireless network card, to your physical network cable jack, to any virtual private network software you might have.  You want to look at the names of these and see which one matches the network adapter you are actually using.  Generally this would be something like "local area connection 4" or something.  Under that, you will see IPv4 Address, which is your internal addres.  The line that says "Default Gateway" is the IP address of your router -- go to that address to configure port forwarding.

None of this has anything to do with anything outside your own private network.  It doesn't know or have any way of knowing about that stuff.  Right now we are inside your own private space, behind your router.  The public address is on your modem and outwards, at your ISP and beyond.

To find your own public IP, just go to http://www.whatismyip.com/ and it tells you.  You give this number to your friend, and that's it.

Then all I need is the password to my friends router and I will only be touching his router and his IP addresses; not mine? Step 5. is really confusing.

All I need to find my friend's router is his gateway address then?

Sorry for the confusion, you don't need any such info from him.  He just needs to make sure software firewalls aren't blocking him from getting to the internet on those ports (or blocking AI War as a whole), and that's it.  Your setup is on your own router, and you then hand him your public IP, and that's all he needs to know.

Thanks for your help and I am always ready to learn something new.

My pleasure, and I hope that's clearer!  I'm off for the night now, but if there is more, I'll respond in the morning.  Cheers!
Have ideas or bug reports for one of our games?  Mantis for Suggestions and Bug Reports. Thanks for helping to make our games better!

Offline vigilo confido

  • Jr. Member Mark III
  • **
  • Posts: 92
Re: What is the local behind-their-firewall IP address
« Reply #4 on: April 05, 2014, 12:42:29 pm »
I have not had a chance to try and do port forwarding till today. Mostly because Riot games said we hope you had no plans with your friends this week.

Anyways, after reading extensively on online guides, I found out my router is one of the most complicated one to set up port forwarding on. I hate 2wire routers now. I had to modify your instructions Chris, quite a bit lol.

The end result is I need a couple loose ends tied up. I had to choose between a TCP and UDP protocall. Choosing both was just much too ask of the router. I assumed it was TCP (please confirm). Next is that I would like to test it before my friend gets on. Steam is a pain and I can only have AI wars run at any one machine at once. Obviously to prevent abuse. Can anybody PM me on the forums so the port forwarding can be tested for AI wars. I will be on the forums for a long while.


Offline x4000

  • Chris McElligott Park, Arcen Founder and Lead Dev
  • Arcen Staff
  • Zenith Council Member Mark III
  • *****
  • Posts: 31,651
Re: What is the local behind-their-firewall IP address
« Reply #5 on: April 05, 2014, 12:44:31 pm »
Couple of things:

1. The game uses UDP.

2. If you just open up the local folder for the game in Steam, and then run it from there, you can run it on as many computers as you want.  Heck, you can take that folder and just put it on a thumb drive and copy that to another computer and run it.  No steam required. :)
Have ideas or bug reports for one of our games?  Mantis for Suggestions and Bug Reports. Thanks for helping to make our games better!

Offline vigilo confido

  • Jr. Member Mark III
  • **
  • Posts: 92
Re: What is the local behind-their-firewall IP address
« Reply #6 on: April 05, 2014, 01:31:06 pm »
Thank you for all the help Chris. There is no reason why it should not work now. It feels good learning how to do something that seemed next to impossible to do. It was a two and a half hour mind bending experience to get to this point. Half of it was due to the router being a pain to do port forwarding on.

Allowing people to copy the game folder and run the game on multiple machines is a wise choice for this type of game. I like how you do not care about distribution of game files and let customers have the best experience possible. Arcengames is my top rated company. I hope your next game is a great success and you profit immensely. I would of never known about this game if I did not see a video on youtube.

Offline x4000

  • Chris McElligott Park, Arcen Founder and Lead Dev
  • Arcen Staff
  • Zenith Council Member Mark III
  • *****
  • Posts: 31,651
Re: What is the local behind-their-firewall IP address
« Reply #7 on: April 05, 2014, 01:36:14 pm »
Thank you very much for the kind words, it is greatly appreciated. :)  We definitely try.  And I'm glad you learned some new skills -- I remember going through that same learning curve with I think Age of Empires 1, and it was brutal.

Cheers!
Have ideas or bug reports for one of our games?  Mantis for Suggestions and Bug Reports. Thanks for helping to make our games better!