Running of a simple socket application on vista

mayank07in

New Member
I am running a simple socket application in vista home premium , it's not running and giving the error
Permission denied : listen failed.
Same cod is well running on xp , though it gives a firewall warning but application runs without any problem.I also have mcafee installed o my laptop.
My java code is
import java.io.IOException;
import java.net.*;
public class SocketTest
{

public static void main(String[] args)
{
ServerSocket myService;
try
{
myService = new ServerSocket(8889);
System.out.println("successfully opened a socket");
}
catch (IOException e)
{
e.printStackTrace();
System.out.println(e);
}

}
}
What should i do to overcome this problem??.I have firewall settings turned on........
 

My Computer

Back
Top