BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

locate IdTCPClient

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet
View previous topic :: View next topic  
Author Message
uni
Guest





PostPosted: Wed Mar 08, 2006 3:03 pm    Post subject: locate IdTCPClient Reply with quote



Hello Group,
can anyone tell me if it is possible to see from where an IdTCPClient
connects to the IdTCPServer? My aim is to guarantee that no client from
the internet can connect to the server but only intranet clients. Also
clients which are connected via VPN, should be rejected.

Thanks for ideas!

Uni
Back to top
Dodgy
Guest





PostPosted: Wed Mar 08, 2006 3:03 pm    Post subject: Re: locate IdTCPClient Reply with quote



On 8 Mar 2006 06:37:19 -0800, "uni" <uni (AT) beerbox (DOT) de> waffled on about
something:

Quote:
Hello Group,
can anyone tell me if it is possible to see from where an IdTCPClient
connects to the IdTCPServer? My aim is to guarantee that no client from
the internet can connect to the server but only intranet clients. Also
clients which are connected via VPN, should be rejected.

Thanks for ideas!

Uni

The best plan is to have your server behind a firewall... Then don't
route anything from the wan side to the lan side.

But I suspect what you're really after is the IP address of the
connected client.

procedure Tform1.IdTCPServer1Execute(AThread: TIdPeerThread);
var ip:string;
begin
ip:=athread.Connection.Binding.PeerIP;


That's how you do it in Indy9. It's different in Indy8.

Dodgy.
--
MUSHROOMS ARE THE OPIATE OF THE MOOSES
Back to top
Riki Wiki
Guest





PostPosted: Tue Mar 14, 2006 9:03 pm    Post subject: Re: locate IdTCPClient Reply with quote



On 8 Mar 2006 06:37:19 -0800, uni wrote:

Quote:
Thanks for ideas!

Hoi Uni

If you are looking for more answer to your question, try reposting in the
b.p.d.internet.winsock group, and use the Borland news server so everybody
can see your post.

Take a look here:
<http://tinyurl.com/8m5nw>
which links to
<http://delphi.wikicities.com/wiki/Delphi_Newsgroups>
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.