Socket Programming in 7.2.2
I am trying to create a simple socket in PRPC by using the following java code in a function rule -
try {
Socket sock = new Socket("www.google.com", 80);
return "success";
} catch (java.io.IOException e) {
return "fail: "+e;
}
I have all the required imports in the library and the function compiles fine. But ultimately i get this exception: fail: java.net.ConnectException: Connection. refused: connect.... Does PRPC not allow creating sockets due to security policies? If so, is there a work around?