Monitoring Port 80
I'm writing a java program to monitor port 80 & retrieve the bytes that pass through that port. For this, i wrote the following code.
Socket sc=new Socket(InetAddress.getLocalHost(),80);
BufferedReader in=new BufferedReader(new InputStreamReader(sc.getInputStream()));
String s="";
while ( (s=br.readLine()) !=null )
{
System.out.println(s);
}
However, when i run the program, it prints out nothing & just exits. What should i do?

