Jump to content
View in the app

A better way to browse. Learn more.

OSBot :: 2007 OSRS Botting

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Error with Sockets

Featured Replies

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)
 
	

  • Author
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 ?

You are not allowed to host a server in the client, and that doesn't make sense anyway so you don't need it

  • Author
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

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. 

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 by Reveance

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.