-
I have the port number and the IP address of the server. However, once I'm connected, whatever I send to the server doesn't seem to work.
After some minutes I get this message from him
ERROR :Closing Link: [212.251.141.131] (Ping timeout)
where the IP address is mine I suppose.
What can send to the server in order to have a reply?
-
R u able to ping the server successfully???
Sonia
-
If I get disconnected by Ping Time Out I don't think I ping the server correctly. But I do send him data... random data
-
To combat IP spoofing, IRC servers a long time ago send a "PING 2495298629829" or other suitably random amount of data upon initial connection. IRC clients are then supposed to respond with a "PONG 2495298629829" which is the exact string that the server sent to them.
The idea behind this is that if you were really coming from w.x.y.z but you were spoofing your address as a.b.c.d, the server would send the data packet to a.b.c.d and your client at w.x.y.z would have no idea what was sent to that other system and wouldn't be able to respond back with the PONG.
Once you get by this (it's not that difficult) you can read up on IRC RFCs to get a handle about the protocol. About 5 years ago I was able to type it by hand in a telnet session but that was a long time ago and I haven't been on IRC in several years.
-
Thanks
I have already done an IRC program to simply connect to a server and stay connected. I've found an IRC Client project in Programmers' Heaven, something like that (IRC-Code.zip). It had a reference to a file concerning the IRC protocol: RFC1459.TXT. It should easily found in a ftp site.
Now, I'm about to test my program. I'll consider what you've said. Thanks again! :cool: