Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
次のようにPASVコマンドを送信すると、FTPServerから再生メッセージを受信しました
227パッシブモードに入る(159,153,197,77,194,82)
この文字列再生メッセージからIPアドレスを取得するにはどうすればよいですか。そしてそれをInternetAddressに変換します...。
ありがとう
227 Entering Passive Mode (h1,h2,h3,h4,p1,p2)は構文、h1-h4はIPアドレスの4バイト、p1とp2は2バイトのポート番号ですが、これをrsc822インターネットアドレスに変換する方法がわかりませんlocal@domain。ああ、ところで、パラメータstring.substring(27,string.length-2).split(",")を個別の文字列として取得し、Byte.parseByte(string)各値に使用するために使用できます
227 Entering Passive Mode (h1,h2,h3,h4,p1,p2)
local@domain
string.substring(27,string.length-2).split(",")
Byte.parseByte(string)