AAO25.com
Community => Games & Programming => Topic started by: Edgard2016 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
-
try 1716 1718
-
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);
-
it is udp port communication, not ip
-
Oh, thank you, I'll try udp connection.
-
:D EZ