Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 Aug : Re: Routing messages

www.cryer.info
Managed Newsgroup Archive

Re: Routing messages

Subject:Re: Routing messages
Posted by:"Remy Lebeau (TeamB)" (no.spam@no.spam.com)
Date:Tue, 22 Aug 2006 10:47:25

"Mirakq" <ak_47@abv.bg> wrote in message
news:44eaed36@newsgroups.borland.com...

> using TIdUDPServer - OnUDPRead event:
> will the data be routed to the client that has sent it (if it doesn't have
a
> real IP address) by using the ABinding.SendTo(ABinding.PeerIP,
> ABinding.PeerPort, cmd, SizeOf(cmd)); method ?

The PeerIP is always the real IP address of the sender.  If the client is
behind a router, then the router is the Sender that TIdUDPServer will see,
so the IP will be the router's IP.  As such, the router would need to have
port forwarding configured in order to deliver inbound data to the
appropriate client.


Gambit

Replies:

In response to:

www.cryer.info
Managed Newsgroup Archive