Author Topic: TNET and Amazon EC2 server  (Read 5051 times)

codestrikken

  • Guest
TNET and Amazon EC2 server
« on: January 26, 2013, 05:52:21 PM »
Hi, I bought TNET as I saw that it can run on Amazon EC2 server. I started an instance on EC2 of Windows Server 2008 R2 Base 64-bit. The Security Group is very relaxed, allow all TCP, UDP and SSH. I also put an elastic IP so that I can easily connect to it. I 'upload' the TNserver.exe to my EC2 instance and run it. It runs but it doesn't have any diagnostic so, not sure if it is properly working or not.

Addtionally, I went into the Windows Firewall of EC2 instance and ensured that TNServer.exe has unlimited inbound and outbound access.

I tried to connect using the examples provided with TNET and no dice!!! ARRGGHH!!

Can you please post instructions on how to get this to work. What am I missing??

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,153
  • Toronto, Canada
    • View Profile
Re: TNET and Amazon EC2 server
« Reply #1 on: January 26, 2013, 07:51:07 PM »
For it to work on Amazon you need to explicitly allow traffic on the server's port via Amazon's web panel, and you need to allow traffic through the Windows firewall when it asks you with a popup. Make sure to check the "public" checkbox as well.

codestrikken

  • Guest
Re: TNET and Amazon EC2 server
« Reply #2 on: January 27, 2013, 11:59:26 AM »
I didn't get a pop-up when i launched the server, any other way to give it access?

thanks for replying :D

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,153
  • Toronto, Canada
    • View Profile
Re: TNET and Amazon EC2 server
« Reply #3 on: January 27, 2013, 01:26:32 PM »
You need to go to Windows Firewall settings and ensure that TNetServer is under inbound and outbound rules as "Public". Or flat out disable the firewall -- it's redundant with Amazon's own web-based firewall.

codestrikken

  • Guest
Re: TNET and Amazon EC2 server
« Reply #4 on: January 27, 2013, 05:32:58 PM »
You're right, it is redundant. I had allowed the ports through the Security Group on the AWS web, but you have to do it again from the windows firewall.  Ok it worked!! Thanks!!

I haven't looked at the code but the ping seems to spike when you Create a network object (in example2) goes from 50 to 230, any idea why? I did it on 2 comps a laptop and a gaming rig and both did the same thing.

Thanks again for your help! great pkg!!

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,153
  • Toronto, Canada
    • View Profile
Re: TNET and Amazon EC2 server
« Reply #5 on: January 28, 2013, 02:18:30 PM »
Ping will fluctuate with Amazon EC2 micro instance as it's highly dependent on resources used at the time. You get very little of them, so I suggest you reboot the Amazon server once you've set it up. Create call is just another packet, so it shouldn't affect anything.