Forum

ASSIST, AMERICA'S ARMY COMMUNITY


Author Topic: [PROGRAMING] How to make NAT connection to get data?  (Read 740 times)

0 Members and 1 Guest are viewing this topic.

Offline Edgard2016

  • Jr. Member
  • **
  • Posts: 3
    • View Profile
  • AA: Blaska
[PROGRAMING] How to make NAT connection to get data?
« on: Saturday, February 03, 2018, 22:01:16 PM »
Hi guys,

I'm a brazilian developer, i'm trying connection tcp for get players connecteds, count players connecteds, etc.. in the ports 1716 and 1717 but my connection is denied.

Do I need to pass a key in the connection header? Similar to consuming a webservice

Could someone give a hand, please.

Best regards.
Blaska

Offline Vanoke

  • Epic Poster
  • ******
  • Posts: 1,760
  • Real war is to a GAME!!
    • View Profile
  • AA: =PUF=Vanoke
Re: [PROGRAMING] How to make NAT connection to get data?
« Reply #1 on: Sunday, February 04, 2018, 03:16:30 AM »
try 1716    1718

Offline Edgard2016

  • Jr. Member
  • **
  • Posts: 3
    • View Profile
  • AA: Blaska
Re: [PROGRAMING] How to make NAT connection to get data?
« Reply #2 on: Sunday, February 04, 2018, 11:12:27 AM »
I tried 1718 but the same thing happened.
I believe it is necessary to pass some default token to stabilize the connection and read what traffic similar to the battletracker service.

My code to try to stabilize the connection is this:

 Socket sClientToServer = new
             Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);

 IPEndPoint ipepServerEndPoint = new
             IPEndPoint(IPAddress.Parse("_IPADRESS"), _PORT);

 sClientToServer.Connect((EndPoint)ipepServerEndPoint);


Offline [SWISS]Merlin

Re: [PROGRAMING] How to make NAT connection to get data?
« Reply #3 on: Sunday, February 04, 2018, 11:38:49 AM »
it is udp port communication, not ip

Offline Edgard2016

  • Jr. Member
  • **
  • Posts: 3
    • View Profile
  • AA: Blaska
Re: [PROGRAMING] How to make NAT connection to get data?
« Reply #4 on: Monday, February 05, 2018, 18:30:49 PM »
Oh, thank you, I'll try udp connection.

Offline [F.U.N]Cpt

Re: [PROGRAMING] How to make NAT connection to get data?
« Reply #5 on: Monday, February 05, 2018, 19:39:51 PM »
 :D EZ

 

Download Assist

×

Download Game Client


Download Server Manager