Parses the host and port out of a PASV (RFC 959) 227 reply.
PASV
227
The reply carries (h1,h2,h3,h4,p1,p2); the host is h1.h2.h3.h4 and the port is p1*256 + p2.
(h1,h2,h3,h4,p1,p2)
h1.h2.h3.h4
p1*256 + p2
The full reply text, e.g. 227 Entering Passive Mode (192,168,0,1,19,136).
227 Entering Passive Mode (192,168,0,1,19,136)
The host and port to dial.
If no six-number group is present.
1.0.0
parsePasv('227 Entering Passive Mode (192,168,0,1,19,136)'); // { host: '192.168.0.1', port: 5000 } Copy
parsePasv('227 Entering Passive Mode (192,168,0,1,19,136)'); // { host: '192.168.0.1', port: 5000 }
Parses the host and port out of a
PASV(RFC 959)227reply.The reply carries
(h1,h2,h3,h4,p1,p2); the host ish1.h2.h3.h4and the port isp1*256 + p2.