Operating System - HP-UX
1834986 Members
2136 Online
110073 Solutions
New Discussion

Re: FTP Address Translation

 
SOLVED
Go to solution
Michelle Boyle
Occasional Contributor

FTP Address Translation


When looking at the following document (www site listed below) I do not understand there Examples on how the client PORT is translated to a
port number.

The document shows an ftp session and the client PORT is 192,168,1,2,7,138
and they say it translates to port 1930. No idea how to the translation for 7,138 turns into port 1930. Any assistance is greatly appreciated.

http://www.ncftpd.com/ncftpd/doc/misc/ftp_and_firewalls.html

Thank You,
Michelle
=^..^=
3 REPLIES 3
Mark Greene_1
Honored Contributor
Solution

Re: FTP Address Translation

>>The document shows an ftp session and the client PORT is 192,168,1,2,7,138
and they say it translates to port 1930. No idea how to the translation for 7,138 turns into port 1930. Any assistance is greatly appreciated<<

the formula is the first number * 256 + second number. so using the example above:

7 * 256 + 138 = 1930

HTH
mark
the future will be a lot like now, only later
Michelle Boyle
Occasional Contributor

Re: FTP Address Translation

Thank you very much. Can you tell me where you located the information?

Thanks and have a great weekend.

Michelle
Mark Greene_1
Honored Contributor

Re: FTP Address Translation

I didn't really locate it, just figured it was a formula and used the examples to derive the missing part (the 256).

I hope you have a nice weekend too,
mark
the future will be a lot like now, only later