one thing that doesnt like vista is java

polarbear6

Golden Member
Jul 14, 2008
1,161
1
0
<rant>
well have completed my exams and now i got some holidays
so i thought i will expand my brain a little and learn jaa
everything seemed fine then (i also had some compiling issues as the vista didnt allow me to create files anywhere i want) i thought i will give socket programming a little go
the problem is that my sockets are denied previleges like reading and writing

my code just was crashing then i thought i will analyse it with a catch statement and it turns out that iam unable to in/out data

any work around for this ??

here is my code
try {
echoSocket = new Socket("GS1", 7);
out = new PrintWriter(echoSocket.getOutputStream(), true);
in = new BufferedReader(new InputStreamReader(
echoSocket.getInputStream()));
} catch (UnknownHostException e) {
System.err.println("Don't know about host: taranis.");
System.exit(1);
} catch (IOException e) {
System.err.println("Couldn't get I/O for "
+ "the connection to: taranis.");
System.exit(1);
}
second excpetion is working
</rant>


 

polarbear6

Golden Member
Jul 14, 2008
1,161
1
0
ohh !! :eek:
is that possible

which port number should i try
damn there is no trouble shooting guide at the sun.com site
 

SJP0tato

Senior member
Aug 19, 2004
267
0
76
It could be windows firewall blocking the ports too. You should be able to allow a specific port to send/receive data through the firewall settings.
 

polarbear6

Golden Member
Jul 14, 2008
1,161
1
0
Originally posted by: SJP0tato
It could be windows firewall blocking the ports too. You should be able to allow a specific port to send/receive data through the firewall settings.

yup that works :(
why the hell didnt i get that idea