security issues with vista

polarbear6

Golden Member
Jul 14, 2008
1,161
1
0
well i just finished off my exams so i thought i will do my favourite work (PROGRAMMING)
thought will give give java a shot
everything works fine with net beans
then i try to do some socket programming

but when i try to open a socket on my computer
i get the exception that i/o rights denied
my first suspection is the unnesasary (sorry can remember the spelling for this word)
security that comes with vista

is there a way to just turn this down for all my files and for all my connections :(


if it is of any use here is my source code that i have been trying
try {
echoSocket = new Socket("GS1", 7);
out = new PrintWriter(echoSocket.getOutputStream(), true);
in = new BufferedReader(new InputStreamReader(
echoSocket.getInputStream()));
} catch (IOException e) {
System.err.println("Couldn't get I/O for "
+ "the connection to: taranis.");
System.exit(1);
}
that catch things works out and i get the error message :(
 

degibson

Golden Member
Mar 21, 2008
1,389
0
0
Another reason that a bind() call will fail (besides security permissions) is if a service is already using the requested port. I'm not aware of how it works in Java, but if that '7' in your 'new Socket()' call is supposed to be a port number, you should be aware that the 'echo' service routinely uses port 7 and that is probably why you are disallowed from binding to the port.