-----Original Message-----
using System;
using System.Net;
using System.Text.RegularExpressions;
string porttext = "PORT 192,168,0,2,4,127";
MatchCollection matches = Regex.Matches (porttext, "\d+");
if (matches.Count < 4)
throw new Exception ("not valid");
IPAddress address = IPAddress.Parse (
matches[0] + "." +
matches[1] + "." +
matches[2] + "." +
matches[3]);
"Keith" <
[email protected]> escribió en el mensaje
Thanks for the FTP Command info, but I still do not know
how to obtain the IP Address and port info that follows
the PORT command. If I use a FTP Client like SmartFtp, it
send the PORT Command like this "PORT 192,168,0,2,4,127".
How do you get this IP address using the .Net framework?
-----Original Message-----
http://www.w3.org/Protocols/rfc959/4_FileTransfer.html
"Keith" <
[email protected]> escribió en el mensaje
I am trying to write a simple FTP client, but I am having
trouble with the PORT Command. Does anyone know how to
Get an IP Address and port number to establish a data port
for the server to connect to.
Any info would be appreciated.
.
.