Jump to content
Frequently Asked Questions
  • Are you not able to open the client? Try following our getting started guide
  • Still not working? Try downloading and running JarFix
  • Help! My bot doesn't do anything! Enable fresh start in client settings and restart the client
  • How to purchase with PayPal/OSRS/Crypto gold? You can purchase vouchers from other users
  • Try asking for help in the chatbox
  • Guys this is killing me


    wilson95816
     Share

    Recommended Posts

    java.net.SocketException: Address family not supported by protocol family: connect
            at java.net.DualStackPlainSocketImpl.connect0(Native Method)
            at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)
            at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
            at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
            at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
            at java.net.PlainSocketImpl.connect(Unknown Source)
            at java.net.SocksSocketImpl.connect(Unknown Source)
            at java.net.Socket.connect(Unknown Source)
            at java.net.Socket.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.http.HttpClient.<init>(Unknown Source)
            at sun.net.www.http.HttpClient.New(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 Source)
            at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
            at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
            at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(Unknown Source)
            at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
            at java.net.URL.openStream(Unknown Source)
            at org.dreambot.launcher.LauncherMethods.getChangelogText(LauncherMethods.java:74)
            at org.dreambot.ui.DreamLauncherUI.initComponents(DreamLauncherUI.java:166)
            at org.dreambot.ui.DreamLauncherUI.<init>(DreamLauncherUI.java:52)
            at org.dreambot.launcher.DreamLauncher.generateLauncherUI(DreamLauncher.java:26)
            at org.dreambot.launcher.DreamLauncher.main(DreamLauncher.java:17)
    Downloading latest client version...
    java.net.SocketException: Address family not supported by protocol family: connect
            at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
            at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
            at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
            at java.lang.reflect.Constructor.newInstance(Unknown Source)
            at sun.net.www.protocol.http.HttpURLConnection$10.run(Unknown Source)
            at sun.net.www.protocol.http.HttpURLConnection$10.run(Unknown Source)
            at java.security.AccessController.doPrivileged(Native Method)
            at sun.net.www.protocol.http.HttpURLConnection.getChainedException(Unknown Source)
            at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(Unknown Source)
            at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
            at org.dreambot.launcher.LauncherMethods$1.run(LauncherMethods.java:254)
            at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
            at java.util.concurrent.FutureTask.run(Unknown Source)
            at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
            at java.lang.Thread.run(Unknown Source)
    Caused by: java.net.SocketException: Address family not supported by protocol family: connect
            at java.net.DualStackPlainSocketImpl.connect0(Native Method)
            at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)
            at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
            at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
            at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
            at java.net.PlainSocketImpl.connect(Unknown Source)
            at java.net.SocksSocketImpl.connect(Unknown Source)
            at java.net.Socket.connect(Unknown Source)
            at java.net.Socket.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.http.HttpClient.<init>(Unknown Source)
            at sun.net.www.http.HttpClient.New(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 Source)
            at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
            at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
            at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(Unknown Source)
            at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
            at sun.net.www.protocol.http.HttpURLConnection.getHeaderField(Unknown Source)
            at java.net.URLConnection.getHeaderFieldLong(Unknown Source)
            at java.net.URLConnection.getContentLengthLong(Unknown Source)
            at java.net.URLConnection.getContentLength(Unknown Source)
            at org.dreambot.launcher.LauncherMethods$1.run(LauncherMethods.java:253)
            ... 5 more

    Link to comment
    Share on other sites

    3 minutes ago, wilson95816 said:

    Can you talk me through that? I tried using some instructions online but they didn't work

    I'm assuming you're on windows. So what you'll do is

    1. hold the windows key and push r, in the little window that pops up type cmd and hit enter, this opens command prompt

    2. navigate to where your launcher is, for ease of access I'd say just move it to your desktop real quick, then type cd %userprofile%\Desktop (then hit enter)

    3. type java -jar DBLauncher.jar

     

    That's how you launch the jar with command prompt (or any jar, really)

    But instead, I want to see if we can fix this in one step instead of going through that and then you telling me an error that I'm pretty sure I already know will come up.

    So replace step 3 in that with:
    java -Djava.net.preferIPv4Stack=true -jar %userprofile%\Desktop\DBLauncher.jar

    let me know if it works.

    Link to comment
    Share on other sites

    You might have to do the same for the client.jar

    but try um

     

    Open command prompt (windows start button, type cmd in search)

    Click top left of command prompt, click properties, enable quick edit mode

    Copy: setx _JAVA_OPTIONS -Djava.net.preferIPv4Stack=true

    Right click on command prompt, should paste

    Hit enter. That easy!

    Link to comment
    Share on other sites

    Dang. So you've still got the same issue. Okay we'll switch up the command a bit.

    You'll do:

    java -Djava.net.preferIPv4Stack=true -Xmx512M -jar -Xbootclasspath/p:%userprofile%\Dreambot\BotData\client.jar %userprofile%\Dreambot\BotData\client.jar

    At the moment, I believe you may have to run that to launch the client each time.

    So what you'll want to do is make a bat file with that command in it, so to launch the lcient in the future you'd just launch the bat file.

    So put that command into a notepad text file, then do save as->

    put the file type as all files, then for the name just put in clientLaunch.bat

    save it to desktop or wherever, then double click that and you should be good to go.

    Link to comment
    Share on other sites

    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
     Share

    ×
    ×
    • Create New...

    Important Information

    We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.