 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Guest
|
Posted: Wed Feb 22, 2006 2:03 pm Post subject: TidUDPClient/Server NAT question |
|
|
Hello,
I am trying to create a UDP based system running over GPRS. This
involves Network Address Translation.
When a client with a private IP address connects to the server, the IP
address seen at the server (after NAT) is the provider's IP address and
a "random" port number.
(The original Peer Port in TidUDPClient is also randomly assigned. )
If I want to send a response from the server to the client, I believe I
have to use the same NAT ip address and NAT random port. This will get
translated to the originator's private IP address and originating port.
The question is, how, if I do :-
IDUDPClientOutgoing.Send(aString);
Do I get the originating port number on which I should listen for that
reply?
Thanks, Jim |
|
| Back to top |
|
 |
Guest
|
Posted: Wed Feb 22, 2006 2:03 pm Post subject: Re: TidUDPClient/Server NAT question |
|
|
OK, solved it, I think I had an error, which meant I wasn't getting a
diagnostic ... works as expected now.
ta
Jim |
|
| Back to top |
|
 |
Riki Wiki Guest
|
Posted: Sun Mar 05, 2006 3:03 am Post subject: Re: TidUDPClient/Server NAT question |
|
|
Hoi Jim
Great that you solved your own problem, next time you post you need to be
aware of the importance of posting to the Borland news server.
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
|
|