Jump to content

Proxy works except when launched with CLI


Recommended Posts

Posted

Hi!

I just started experimenting with proxies on my farm and the one I bought works fine when i just launch the jar file, enter in the information and start Osbot. However, my farm manager launches via CLI and when I launch the client through CLI I get an error:

[INFO][08/14 04:29:58 AM]: Loaded 3 RS accounts!
[ERROR][08/14 04:30:01 AM]: Can't connect to SOCKS proxy:Connection refused: connect
[INFO][08/14 04:30:01 AM]: Welcome to OSBot 2.5.53!
[ERROR][08/14 04:30:03 AM]: Failed to load hooks!
java.lang.NullPointerException
	at java.nio.ByteBuffer.wrap(Unknown Source)
	at org.osbot.BotApplication.IiiiIiiiIiiI(er:325)
	at org.osbot.Af.IiIiiiiIIIIi(dv:177)
	at org.osbot.BotApplication.main(er:218)
[DEBUG][Bot #1][08/14 04:30:03 AM]: Initializing stealth injection bot...
[INFO][Bot #1][08/14 04:30:03 AM]: Downloading latest RS2 old-school client parameters...
[INFO][08/14 04:30:06 AM]: Started bot #1

Debug output:

Starting local script with name: identify
Debug enabled on port 0
[DEBUG][08/14 04:29:57 AM]: Injected 2 field list filters
[DEBUG][08/14 04:29:57 AM]: Injected 2 field filters
[DEBUG][08/14 04:29:57 AM]: Injected 2 method list filters
[DEBUG][08/14 04:29:57 AM]: Injected 3 method filters
In debug mode!
Listening for transport dt_socket at address: 54645
Stealth injection class-filter enabled!
Successfully loaded OSBot!
[INFO][08/14 04:29:58 AM]: Loaded 3 RS accounts!
[ERROR][08/14 04:30:01 AM]: Can't connect to SOCKS proxy:Connection refused: con
nectFailed to download user SDN script list from server.

Loaded 4 local scripts and 0 SDN scripts.
[INFO][08/14 04:30:01 AM]: Welcome to OSBot 2.5.53!
java.net.SocketException: Can't connect to SOCKS proxy:Connection refused: conne
ct
        at java.net.SocksSocketImpl.connect(Unknown Source)
        at java.net.Socket.connect(Unknown Source)
        at sun.security.ssl.SSLSocketImpl.connect(Unknown Source)
        at sun.security.ssl.BaseSSLSocketImpl.connect(Unknown Source)
        at sun.net.NetworkClient.doConnect(Unknown Source)
        at sun.net.www.http.HttpClient.openServer(Unknown Source)
        at sun.net.www.http.HttpClient.openServer(Unknown Source)
        at sun.net.www.protocol.https.HttpsClient.<init>(Unknown Source)
        at sun.net.www.protocol.https.HttpsClient.New(Unknown Source)
        at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewH
ttpClient(Unknown Source)
        at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(Unknown Sou
rce)
        at sun.net.www.protocol.http.HttpURLConnection$6.run(Unknown Source)
        at sun.net.www.protocol.http.HttpURLConnection$6.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.AccessController.doPrivilegedWithCombiner(Unknown Sourc
e)
        at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Sour
ce)
        at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect
(Unknown Source)
        at sun.net.www.protocol.http.HttpURLConnection.getOutputStream0(Unknown
Source)
        at sun.net.www.protocol.http.HttpURLConnection.access$100(Unknown Source
)
        at sun.net.www.protocol.http.HttpURLConnection$8.run(Unknown Source)
        at sun.net.www.protocol.http.HttpURLConnection$8.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.AccessController.doPrivilegedWithCombiner(Unknown Sourc
e)
        at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(Unknown S
ource)
        at sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(Unk
nown Source)
        at org.osbot.JA.IIiiIiiiIiii(vp:474)
        at org.osbot.BotApplication.IiiiIiiiIiiI(er:325)
        at org.osbot.Af.IiIiiiiIIIIi(dv:177)
        at org.osbot.BotApplication.main(er:218)
[ERROR][08/14 04:30:03 AM]: Failed to load hooks!
java.lang.NullPointerException

        at java.nio.ByteBuffer.wrap(Unknown Source)

        at org.osbot.BotApplication.IiiiIiiiIiiI(er:325)

        at org.osbot.Af.IiIiiiiIIIIi(dv:177)

        at org.osbot.BotApplication.main(er:218)

[DEBUG][Bot #1][08/14 04:30:03 AM]: Initializing stealth injection bot...
[INFO][Bot #1][08/14 04:30:03 AM]: Downloading latest RS2 old-school client para
meters...
Bot failed to initialize! It is very likely that you are using a proxy that is n
ot configured correctly. If you are using command-line (CLI), ensure your settin
gs are correct.
java.net.SocketException: Can't connect to SOCKS proxy:Connection refused: conne
ct
        at java.net.SocksSocketImpl.connect(Unknown Source)
        at java.net.Socket.connect(Unknown Source)
[INFO][08/14 04:30:06 AM]: Started bot #1
        at sun.net.NetworkClient.doConnect(Unknown Source)
        at sun.net.www.http.HttpClient.openServer(Unknown Source)
        at sun.net.www.http.HttpClient.openServer(Unknown Source)
        at sun.net.www.http.HttpClient.<init>(Unknown Source)
        at sun.net.www.http.HttpClient.New(Unknown Source)
        at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown
Source)
        at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(Unknown Sou
rce)
        at sun.net.www.protocol.http.HttpURLConnection$6.run(Unknown Source)
        at sun.net.www.protocol.http.HttpURLConnection$6.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.AccessController.doPrivilegedWithCombiner(Unknown Sourc
e)
        at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Sour
ce)
Waiting for the game to load before starting script...  at sun.net.www.protocol.
http.HttpURLConnection.connect(Unknown Source)

        at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(Unknown S
ource)
        at sun.net.www.protocol.http.HttpURLConnection.access$200(Unknown Source
)
        at sun.net.www.protocol.http.HttpURLConnection$9.run(Unknown Source)
        at sun.net.www.protocol.http.HttpURLConnection$9.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.AccessController.doPrivilegedWithCombiner(Unknown Sourc
e)
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown So
urce)
        at org.osbot.lpT8.IiIiiiiIIIIi(ni:15)
        at org.osbot.rs07.RS07Parameters.IiIiiiiIIIIi(qg:188)
        at org.osbot.rs07.RS07Parameters.<init>(qg:82)
        at org.osbot.core.inject.RS07ClientInjector.inject(hr:176)
        at org.osbot.rs07.Bot.initialize(xn:638)
        at org.osbot.Af.IiIiiiiIIIIi(dv:99)
        at org.osbot.BotApplication.main(er:218)
Script did not start automatically! Game took too long to load.


Any help is very appreciated! :)
 

  • Like 1
Posted
34 minutes ago, Gunman said:

@Nor3g Are you loading multiple clients on 1 proxy? If so, does only 1 client load with the proxy?

EDIT: Also does these proxy require username and passwords and you put it in the following format "-proxy ip:port:username:password"?

 

Im currently just launching one client with the proxy. The proxies does not require username passwords so the format i'm using is "-proxy ip:port".
Does the -proxy have to come before and after some of the other arguments?

Currently I'm writing the arguments in this order: -login -bot -world -proxy -script -allow -debug

  • Like 1
Posted (edited)
19 minutes ago, Nor3g said:

 

Im currently just launching one client with the proxy. The proxies does not require username passwords so the format i'm using is "-proxy ip:port".
Does the -proxy have to come before and after some of the other arguments?

Currently I'm writing the arguments in this order: -login -bot -world -proxy -script -allow -debug

For proxy no. Now for any other argument, no idea. Idk whats wrong but I guess the only other thing I can think of is making sure the ip and port is correctly written. That or maybe it's your proxy provider. Want me to pm you a proxy and see if it works? It will be a datacenter proxy so if you login with it your account may or may not get locked.

Edited by Gunman
Posted
28 minutes ago, Gunman said:

For proxy no. Now for any other argument, no idea. Idk whats wrong but I guess the only other thing I can think of is making sure the ip and port is correctly written. That or maybe it's your proxy provider. Want me to pm you a proxy and see if it works? It will be a datacenter proxy so if you login with it your account may or may not get locked.

I don't think it's the proxy I am using that is the problem, since it works just fine when i launch the osbot.jar and manually enter it. The problem is exclusive to CLI launch.

  • Sad 1
Posted (edited)
1 hour ago, Nor3g said:

I don't think it's the proxy I am using that is the problem, since it works just fine when i launch the osbot.jar and manually enter it. The problem is exclusive to CLI launch.

Well this is what my CLI looks like. "java -jar "osbot 2.5.54.jar" -login username:password -proxy ip:port:username:password -bot email:password:0000 -world 477"

If I wanna run a script on CLI launch then I add " -script scriptname/id:0" at the end. I use ":0" if I am using a script I made that doesn't have any CLI settings. Else use what the script developer says of course.

Edited by Gunman

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...