i recived the replay message from FTPServer when i send the PASV command as following
227 Entering Passive Mode (159,153,197,77,194,82)
how would i get the ip address from this string replay message. and convert it to InternetAddress….
thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
227 Entering Passive Mode (h1,h2,h3,h4,p1,p2)is the syntax, h1-h4 are the 4 bytes of the ip address, p1 and p2 is a 2 byte port number, but i don’t see how you’d convert that into an rsc822 internet address, which is in thelocal@domainform.Oh and btw you can use
string.substring(27,string.length-2).split(",")to get the params as seperate strings, then useByte.parseByte(string)for each of the values