Page 1 of 1

Ping trouble vbclient

Posted: Thu Aug 04, 2005 6:12 am
by WebDesignX007
hi all,

i have build me a litle vbclient, but it wont connect.
it connects but only till the 'If you are having problems connecting due to ping timeouts'

So im really wondering why it wont connect..

If i just wait and do notthing i will get a ping timeout.

Screen:

Code: Select all

Server::X007.Server NOTICE AUTH :*** Looking up your hostname...
:X007.Server NOTICE AUTH :*** Found your hostname (cached)

Server::X007.Server NOTICE Mike :*** If you are having problems connecting due to ping timeouts, please type /quote pong 27746574 or /raw pong 27746574 now.
PING :27746574

Server:ERROR :Closing Link: Mike[**.***.***.**] (Ping timeout)

Hope somebody knows a fix for this cause i really like to use this client.
Thanks already.
Mike

Posted: Thu Aug 04, 2005 7:17 am
by Stealth
From doc\compiling_win32.txt:
The file wrote:==[ IMPORTANT MESSAGE ABOUT DISABLING NOSPOOF ]==
Disabling NOSPOOF at windows (w9x, nt, w2k, xp) is NOT recommended since this
WILL allow users to use "spoofed hosts" (like the IP of someone you trust).

If you got problems with NOSPOOF fix your client (bot?) instead (you should
PONG back to the initial PING at connect).
Not that I would have expect you to read it, just that the file said it better, and what it is. All you need to do is give the proper reply to that PING message, and all will be ok.

Posted: Thu Aug 04, 2005 7:26 am
by WebDesignX007
Ok ok,

i dont know if you know a litle vb but i do reply on the ping

Code: Select all

    ' Play ping pong with the server 
    If InStr(sRecv, "PING") = 1 Then 
        sckIRC.SendData "PONG " & Split(sRecv, " ")(1)
and it wont work, well thanks anyway i wil see how to fix this
can i unable that spoof for one ip only ?

Posted: Thu Aug 04, 2005 7:58 am
by Stealth
I know a little VB, but what you showed me isn't anything I am familiar with. You need to reply with PING :<PING ID>. So if the server sends you "PING :1A2B3C4D" you must reply with "PONG :1A2B3C4D". You cannot disable nospoof for 1 IP, because nospoof is there to protect you from spoofed IP's. If you disabled it for 1 IP, that is an IP that someone can spoof and not have to worry about nospoof protection.

Posted: Thu Aug 04, 2005 4:13 pm
by Jason
The VB code looks correct to me.

Posted: Thu Aug 04, 2005 6:49 pm
by Stealth
You should make a sub that sends the data, and also outputs it to whatever you are using to debug it. This will tell you if the information is being sent properly, if it is sent at all.

Also, be sure you are sending the proper NICK and USER. The server will not accept a connection without those either.