import java.net.*;
public class s
{
public static void main(String a[])
{
Socket s;
for(int i=1;i<1024;i++)
{
try
{
s= new Socket("localhost",i);
System.out.println(" Active Port No is "+i);
}
catch(Exception e){ }
}
}
}
Monday, June 29, 2009
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment