Article View: borland.public.cppbuilder.internet.socket
Article #477TCP/IP Server block the access from one IP
From: //---- Kelsie Z. Marshall ----//
Date: Fri, 29 Feb 2008 05:45
Date: Fri, 29 Feb 2008 05:45
22 lines
1569 bytes
1569 bytes
I made a TCP/IP Server and i need to block the access from one IP
Who can i do that ?
int i, port;
AnsiString IP;
IdTCPServer1->Active = false;
IdTCPServer1->Bindings->Clear();
IdTCPServer1->Bindings->Add();
IdTCPServer1->Bindings->Items[0]->Port =
EditTCPIPServerClientPort->Text.ToInt();
IdTCPServer1->Bindings->Items[0]->IP = StaticTextMyIP->Caption;
IdTCPServer1->Active = true;
TRichEditLogTCPIPServer::Add("TCP/IP ACTIVE");
for(i=0; i < IdTCPServer1->Bindings->Count ; i++)
{
port = IdTCPServer1->Bindings->Items[i]->Port;
IP = IdTCPServer1->Bindings->Items[i]->IP;
}
Technical Details
Message-ID:
<47c79c6d@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 11508e,4fd13cd3e75ed5e2,start 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 Subject: TCP/IP Server block the access from one IP Date: Fri, 29 Feb 2008 02:45:49 -0300 Lines: 25 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 NNTP-Posting-Host: 201.21.247.204 Message-ID: <47c79c6d@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1204264045 201.21.247.204 (28 Feb 2008 21:47:25 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail