whipz Posted April 13, 2017 Share Posted April 13, 2017 Hey guys, I am trying to get socket to work, but getting this error on server side any pointers ? ERROR][04/13 12:16:34 PM]: Uncaught exception! java.security.AccessControlException: access denied ("java.net.SocketPermission" "localhost:14444" "listen,resolve") at java.security.AccessControlContext.checkPermission(Unknown Source) at java.security.AccessController.checkPermission(Unknown Source) at java.lang.SecurityManager.checkPermission(Unknown Source) at org.osbot.SA.checkPermission(xg:280) at java.lang.SecurityManager.checkListen(Unknown Source) at java.net.ServerSocket.bind(Unknown Source) at java.net.ServerSocket.<init>(Unknown Source) at java.net.ServerSocket.<init>(Unknown Source) at SocketMule$server.run(SocketMule.java:45) at java.lang.Thread.run(Unknown Source) Quote Link to comment Share on other sites More sharing options...
Polymorphism Posted April 13, 2017 Share Posted April 13, 2017 OSBot doesn't allow sockets? Not sure, but could be your issue Quote Link to comment Share on other sites More sharing options...
whipz Posted April 13, 2017 Author Share Posted April 13, 2017 Just now, Polymorphism said: OSBot doesn't allow sockets? Not sure, but could be your issue I thought they did /: others seem to be using them ? Quote Link to comment Share on other sites More sharing options...
Tom Posted April 13, 2017 Share Posted April 13, 2017 @Token help this poor man Quote Link to comment Share on other sites More sharing options...
whipz Posted April 13, 2017 Author Share Posted April 13, 2017 10 minutes ago, Tom said: @Token help this poor man @Token Please ! Quote Link to comment Share on other sites More sharing options...
Knuckolls Posted April 13, 2017 Share Posted April 13, 2017 @Token we believe in your ability to help this poor soul Quote Link to comment Share on other sites More sharing options...
Token Posted April 13, 2017 Share Posted April 13, 2017 You are not allowed to host a server in the client, and that doesn't make sense anyway so you don't need it 2 Quote Link to comment Share on other sites More sharing options...
whipz Posted April 13, 2017 Author Share Posted April 13, 2017 9 hours ago, Token said: You are not allowed to host a server in the client, and that doesn't make sense anyway so you don't need it What doesnt make sense ? and can I use a socket to connect to a standalone then ? its for muling at this stage, but I want to add more to it Quote Link to comment Share on other sites More sharing options...
Token Posted April 13, 2017 Share Posted April 13, 2017 3 minutes ago, whipz said: What doesnt make sense ? and can I use a socket to connect to a standalone then ? its for muling at this stage, but I want to add more to it A server by definition should have high uptime, not even the runescape game meets a minimum of 99% uptime requirement. Consider writing an actual server application. 1 Quote Link to comment Share on other sites More sharing options...
Reveance Posted April 13, 2017 Share Posted April 13, 2017 (edited) Yes, if you want to communicate with multiple accounts you should have one server application that is using ServerSocket, like Token said. You can then use Socket to connect to that server application (hosted on some server) in which you wanna have logic that can relay a message to the client you want. E.g. Client1 -> Server -> Client2. I'd probably use some small framework though, that already handles all connections etc. otherwise it's pretty time consuming to write. You could use kryonet for this in which you want to send with TCP, or you can use another protocol entirely, called websocket (which is especially useful if you ever want to build a webinterface around it): https://github.com/TooTallNate/Java-WebSocket Edited April 13, 2017 by Reveance 1 Quote Link to comment Share on other sites More sharing options...