 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
uni Guest
|
Posted: Wed Mar 08, 2006 3:03 pm Post subject: locate IdTCPClient |
|
|
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
|
Posted: Wed Mar 08, 2006 3:03 pm Post subject: Re: locate IdTCPClient |
|
|
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
|
Posted: Tue Mar 14, 2006 9:03 pm Post subject: Re: locate IdTCPClient |
|
|
On 8 Mar 2006 06:37:19 -0800, uni wrote:
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 |
|
 |
|
|
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
|
|