Packet sending c# to an opend socket?

09/15/2010 23:16 Pain1234#1
Hey guys,
I got programs to send packets to a game using its socket. I tried to send packets like this:
PHP Code:
int port 29200;
Socket tcpsocket;
tcpsocket = new Socket(AddressFamily.InterNetworkSocketType.RawProtocolType.IP);

IPEndPoint remoteServerEndPoint = new IPEndPoint(IPAddress.Parse("128.241.92.43"), port );

            
tcpsocket.Connect(remoteServerEndPoint); 
the ip and to port did i get from wpePro. If i try to send a packet, nothing happens. If monitor my written application, the sended packet is excactly the same except the socket id as i send if i use the normal gameclient but ingame does happen nothing. Only if i attach WPE Pro to the gameclient and send my packet manually again with the correct socket it works. If i change the socket id of my selfwritten application and send the package again, still nothing happens in the game.

So how do I send Packets to my game so that the game will accept my packets?

Its a bid late, and im tired so i hope you can guess what i mean :)

Thanks in advance,

Pain