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 

TidUDPClient/Server NAT question

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






PostPosted: Wed Feb 22, 2006 2:03 pm    Post subject: TidUDPClient/Server NAT question Reply with quote



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






PostPosted: Wed Feb 22, 2006 2:03 pm    Post subject: Re: TidUDPClient/Server NAT question Reply with quote



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





PostPosted: Sun Mar 05, 2006 3:03 am    Post subject: Re: TidUDPClient/Server NAT question Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Winsock 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.