G Guest Nov 24, 2004 #1 Hi, I need to build a port scanner ,able to scan a remote computer ports.... Kindly help ciao. AA
I Ignacio Machin \( .NET/ C# MVP \) Nov 24, 2004 #2 Hi, ArrayList ports = new ArrayList(); for( int i=1 ; i<65555; i++) { try{ TcpClient c = new TcpClient( remote_ip, i); c.Close() ports.Add( i); }catch{} }
Hi, ArrayList ports = new ArrayList(); for( int i=1 ; i<65555; i++) { try{ TcpClient c = new TcpClient( remote_ip, i); c.Close() ports.Add( i); }catch{} }