Hi guys,

I'm attempting to program a simple Rcon application for a game.
This sends a simple text command to the game server and the server responds with simple text.

My Problem: When sending the command to return all the player data, it returns 1303 bytes which cuts off some of the data.

I then send another command to find punkbuster data about players and this returns the end part of the data missing from the first command.

Hope you understand

On form load I call the getPlayers subroutine.

Code:
Public Sub getPlayers()
     Dim receiveString1, receiveString2 As String
        
     receiveString1 = SendCommand(ServerIP, Port, password, "status")
     receiveString2 = SendCommand(ServerIP, Port, password, "pb_sv_plist")
End Sub
Code:
Public Function SendCommand(ByVal ip As String, ByVal port As Integer, ByVal pwd As String, ByVal Command As String) As String

     Dim sendBytes As Byte() = System.Text.Encoding.Default.GetBytes("ÿÿÿÿrcon " + pwd + " " + Command + " ")
     udpClient.Send(sendBytes, sendBytes.Length)
     Dim receiveBytes As Byte() = udpClient.Receive(RemoteIpEndPoint)
     ReceiveString = System.Text.Encoding.Default.GetString(receiveBytes)
     Return ReceiveString.Remove(0, 12)

End Function
Thanks