Article View: borland.public.cppbuilder.internet.socket
Article #480Re: TCP/IP Server block the access from one IP
From: //---- Kelsie Z. Marshall ----//
Date: Fri, 29 Feb 2008 18:33
Date: Fri, 29 Feb 2008 18:33
42 lines
2255 bytes
2255 bytes
Man this is a nightmare.
Imagine if i want to make a Server and on million clients trying to
connection on my server the true is SHUTDOW.
With ZoneAlarm i cant do that ? Block on IP
Witch firewall for windows xp i can use ?
Thanks
Kelsie
"Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote in message
news:47c84c35$1@newsgroups.borland.com...
>
> "//---- Kelsie Z. Marshall ----//" <kelsie.z.marshall@gmail.com> wrote in
> message news:47c79c6d@newsgroups.borland.com...
>
>> I made a TCP/IP Server and i need to block the access from one IP
>>
>> Who can i do that ?
>
> There is no way to block an IP from connecting to the server at all
> (unless you are using an external firewall, that is). All you can do is
> disconnect the client in the OnConnect event handler after it has been
> accepted by the server, ie:
>
> void __fastcall TForm1::IdTCPServer1Connect(TIdPeerThread *AThread)
> {
> AnsiString IP = AThread->Connection->Socket->Binding->PeerIP;
> if( IP is not allowed )
> AThread->Connection->Disconnect();
> }
>
>
> Gambit
>
Technical Details
Message-ID:
<47c85073@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!feeder3.cambrium.nl!feeder1.cambrium.nl!feed.tweaknews.nl!news2.euro.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<47c79c6d@newsgroups.borland.com> <47c84c35$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,4fd13cd3e75ed5e2 X-Google-Attributes: gid11508e,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Reply-To: "//---- Kelsie Z. Marshall ----//" <kelsie.z.marshall@gmail.com> From: "//---- Kelsie Z. Marshall ----//" <kelsie.z.marshall@gmail.com> Newsgroups: borland.public.cppbuilder.internet.socket References: <47c79c6d@newsgroups.borland.com> <47c84c35$1@newsgroups.borland.com> Subject: Re: TCP/IP Server block the access from one IP Date: Fri, 29 Feb 2008 15:33:54 -0300 Lines: 44 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-RFC2646: Format=Flowed; Response X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 NNTP-Posting-Host: 189.32.112.144 Message-ID: <47c85073@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1204310131 189.32.112.144 (29 Feb 2008 10:35:31 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!feeder3.cambrium.nl!feeder1.cambrium.nl!feed.tweaknews.nl!news2.euro.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail