Jump to content

  • Curse Sites
Become a Premium Member! Help
Latest News Article

Playing multiplayer through a proxy


  • Please log in to reply
30 replies to this topic

#1

CButt
    CButt

    Tree Puncher

  • Members
  • 12 posts

Posted 28 June 2009 - 06:46 PM

I seem to be unable to connect to any public or private multiplayer server, while single-player works fine. After a few seconds of loading I see the "Failed to Connect" screen. I'm using Firefox on XP, and connecting to the internet through a proxy.

Java Console lists this:
----------------------------------------------------
java.io.EOFException: Unexpected end of ZLIB input stream
	at java.util.zip.InflaterInputStream.fill(Unknown Source)
	at java.util.zip.InflaterInputStream.read(Unknown Source)
	at java.io.BufferedInputStream.fill(Unknown Source)
	at java.io.BufferedInputStream.read(Unknown Source)
	at sun.awt.image.PNGImageDecoder.produceImage(Unknown Source)
	at sun.awt.image.InputStreamImageSource.doFetch(Unknown Source)
	at sun.awt.image.ImageFetcher.fetchloop(Unknown Source)
	at sun.awt.image.ImageFetcher.run(Unknown Source)
Any suggestions? I can't just turn off the proxy since it is required for an internet connection here.

Register or log in to remove.

#2

CButt
    CButt

    Tree Puncher

  • Members
  • 12 posts

Posted 29 June 2009 - 03:03 AM

If this is useful, trying to boot it in IE gives me the error "org.lgwjgl.LWJGLException: Pixel Format Not Accelerated." This stopped when I updated Java, now IE does the same thing (Failed to Connect). A forums search suggested updating my graphics drivers, but I'm using an integrated video card and should be up to date.

#3

Shoy
    Shoy

    Carpenter

  • Members
  • 55 posts

Posted 29 June 2009 - 05:09 AM

Java usually doesn't like proxies, but if you're getting "Pixel Format Not Accelerated", you need to update your graphics driver.

#4

CButt
    CButt

    Tree Puncher

  • Members
  • 12 posts

Posted 29 June 2009 - 08:20 AM

Quote

Java usually doesn't like proxies, but if you're getting "Pixel Format Not Accelerated", you need to update your graphics driver.
Updating java fixed the pixel acceleration issue, so both IE and Firefox have the same issue now. There's no workaround for proxies? No settings anywhere I can mess with? I have Firefox manually configured to the proxy address, so it's odd that the java applet doesn't inherit those settings.

I've set up java through the control panel to use my proxy configuration script, still no luck...

Edit: I can get it to work if I can add console commands to the applet, I think. Is there a way to do this in Firefox?

#5

Snowman
    Snowman

    Forum/Wiki Sponsor

  • Members
  • 2404 posts
  • Location: Antarctica

Posted 29 June 2009 - 10:07 AM

Don't play games at school/work.
Posted Image

#6

CButt
    CButt

    Tree Puncher

  • Members
  • 12 posts

Posted 29 June 2009 - 12:47 PM

Quote

Don't play games at school/work.
I'm not. I live in an apartment, internet is provided via LAN but we have to use their proxy. I'm not playing at school or work. ;)

#7

Snowman
    Snowman

    Forum/Wiki Sponsor

  • Members
  • 2404 posts
  • Location: Antarctica

Posted 29 June 2009 - 05:56 PM

Quote

Quote

Don't play games at school/work.
I'm not. I live in an apartment, internet is provided via LAN but we have to use their proxy. I'm not playing at school or work. :D
Oh. Most people using a proxy are playing games where the site is blocked :D
Posted Image

#8

CButt
    CButt

    Tree Puncher

  • Members
  • 12 posts

Posted 29 June 2009 - 06:41 PM

Quote

Quote

Quote

Don't play games at school/work.
I'm not. I live in an apartment, internet is provided via LAN but we have to use their proxy. I'm not playing at school or work. :D
Oh. Most people using a proxy are playing games where the site is blocked :D
Figures :D

It's odd, I can use other software with proxy settings (IE Skype) but even tinkering with the java network properties, no luck. It's been suggested to me that maybe my proxy only supports post/get and not connect. Really a bummer, I want to play multiplayer. :( If anyone has any other suggestions I'm open to it.

#9

CButt
    CButt

    Tree Puncher

  • Members
  • 12 posts

Posted 12 July 2009 - 06:07 PM

Quote

It's odd, I can use other software with proxy settings (IE Skype) but even tinkering with the java network properties, no luck. It's been suggested to me that maybe my proxy only supports post/get and not connect. Really a bummer, I want to play multiplayer. :D If anyone has any other suggestions I'm open to it.
Significantly more amounts of tinkering and still no luck. Some research suggested that the issue involves how proxy tunneling works and that it's partially a port problem, apparently java can be a bit finicky that way. Playing with proxy software (proxifier) also didn't work. I guess I've given up on multiplayer for the moment, but if anyone has any more suggestions (or similar issues) I'd like to hear it.

#10

automaticswim

Posted 14 July 2009 - 12:26 AM

I don't know how much this helps you, or anyone, if you can't add any commands to the java applet/console to run at the start of the applet. If you can, great, because I can get java to run minecraft through an HTTP and a SOCKS5 proxy just fine, just tested as I posted this.

However, IF you can add some commands, try these:

HTTP
-Dhttp.proxyHost=webproxy.com/IP -Dhttp.proxyPort=XX
SOCKS
-DsocksProxyHost=host.com/IP -DsocksProxyPort=XX
For instance, if I wanted to run through an SSH tunnel on local port 8080 (SOCKS) I'd have
-DsocksProxyHost=127.0.0.1 -DsocksProxyPort=8080
The javacpl.cpl network settings don't seem to actually DO anything, so changing that is more or less useless.

Hope this helps.

#11

CButt
    CButt

    Tree Puncher

  • Members
  • 12 posts

Posted 14 July 2009 - 07:20 AM

Quote

I don't know how much this helps you, or anyone, if you can't add any commands to the java applet/console to run at the start of the applet. If you can, great, because I can get java to run minecraft through an HTTP and a SOCKS5 proxy just fine, just tested as I posted this.

However, IF you can add some commands, try these:Hope this helps.
Hmmm, I'll see if I have any luck experimenting with the SOCKS settings. Right now I'm running the jar with a .bat so I can pass it commands - is there a way to actually pass console commands through the applet in firefox? Might be less of a pain.

I'm currently setting it as:
-Dhttp.proxyHost=myproxy -Dhttp.proxyPort=port -Dhttp.ProxySet=true
. This lets it connect fine to Minecraft - it logs in, lists my available maps and can load/save them just fine. (Without the proxy settings, this doesn't work, so I assume it's doing something right.) Any server other than minecraft (using the minecraft URLs for servers), however, still can't connect. I've tried a few variations on adding the proxy as a SOCKS as well, doesn't change anything. Flipping through all the apartment network settings paperwork I have, can't seem to find anything specifically for configuring SOCKS. Is there any particular information I should be using for this other than my standard proxy? I can also flip through the auto-configuration .pac file thing for more addresses/ports if applicable. I also tried your example of doing it through localhost, no luck.

I think passing it some sort of useful command settings should make it work, it's just the matter of finding the right combination, I guess.

(Preemptive apologies to Notch - I saw the Dev post about not using third-party solutions, but I'm just trying to get the darn thing to work! Just using a simple launcher that also automatically downloads the new jars from Minecraft, all traffic should be directed through there. :( )

#12

CButt
    CButt

    Tree Puncher

  • Members
  • 12 posts

Posted 14 July 2009 - 12:04 PM

Tried through Firefox again, so I went through the console and realized I must have been looking at the wrong data before. Here's the entire output. (I snipped out my name, password and proxy address. :( )
security: property package.access value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.
security: property package.access new value 

sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.javaws
security: property package.access value 

sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.javaws
security: property package.access new value 

sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.javaws,com.sun.deploy
security: property package.access value 

sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.javaws,com.sun.deploy
security: property package.access new value 

sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.javaws,com.sun.deploy,com.sun.jnlp
security: property package.definition value null
security: property package.definition new value com.sun.javaws
security: property package.definition value com.sun.javaws
security: property package.definition new value com.sun.javaws,com.sun.deploy
security: property package.definition value com.sun.javaws,com.sun.deploy
security: property package.definition new value com.sun.javaws,com.sun.deploy,com.sun.jnlp
security: property package.access value 

sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.javaws,com.sun.deploy,com.sun.jnlp
security: property package.access new value 

sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.javaws,com.sun.deploy,com.sun.jnlp,org.mozi

lla.jss
security: property package.definition value com.sun.javaws,com.sun.deploy,com.sun.jnlp
security: property package.definition new value com.sun.javaws,com.sun.deploy,com.sun.jnlp,org.mozilla.jss
network: Cache entry not found [url]
network: Connecting http://minecraft.net/ with proxy=HTTP @ myproxy/proxyurl:proxyport
network: Connecting http://minecraft.net/ with cookie 

"information, including my login and password"
network: Cache entry found [url]
network: Connecting http://minecraft.net/client/lwjgl_util_applet.jar with proxy=HTTP @ 

myproxy/proxyurl:proxyport
network: Connecting http://minecraft.net/client/lwjgl_util_applet.jar with cookie 

"information, including my login and password"
network: ResponseCode for http://minecraft.net/client/lwjgl_util_applet.jar : 304
network: Encoding for http://minecraft.net/client/lwjgl_util_applet.jar : null
network: Disconnect connection to http://minecraft.net/client/lwjgl_util_applet.jar
security: Accessing keys and certificate in Mozilla user profile: null
security: Loading Root CA certificates from C:\Program Files\Java\jre6\lib\security\cacerts
security: Loaded Root CA certificates from C:\Program Files\Java\jre6\lib\security\cacerts
security: Loading Deployment certificates from C:\Documents and Settings\myname\Application 

Data\Sun\Java\Deployment\security\trusted.certs
security: Loaded Deployment certificates from C:\Documents and Settings\myname\Application 

Data\Sun\Java\Deployment\security\trusted.certs
security: Loading certificates from Deployment session certificate store
security: Loaded certificates from Deployment session certificate store
security: Validate the certificate chain using CertPath API
security: Obtain certificate collection in Root CA certificate store
security: Obtain certificate collection in Root CA certificate store
security: No timestamping info available
security: Found jurisdiction list file
security: No need to checking trusted extension for this certificate
security: The CRL support is disabled
security: The OCSP support is disabled
security: Checking if certificate is in Deployment denied certificate store
security: Checking if certificate is in Deployment permanent certificate store
basic: Applet loaded.
basic: Applet resized and added to parent container
basic: PERF: AppletExecutionRunnable - applet.init() BEGIN ; jvmLaunch dt 266685 us, pluginInit dt 1172812 

us, TotalTime: 1439497 us
network: Cache entry found [url]
network: Connecting http://minecraft.net/client/lzma.jar with proxy=HTTP @ 

myproxy/proxyurl:proxyport
network: Connecting http://minecraft.net/client/lzma.jar with cookie 

"information, including my login and password"
network: ResponseCode for http://minecraft.net/client/lzma.jar : 304
network: Encoding for http://minecraft.net/client/lzma.jar : null
network: Disconnect connection to http://minecraft.net/client/lzma.jar
network: Cache entry not found [url]
network: Connecting http://minecraft.net/client/logo_small.png with proxy=HTTP @ 

myproxy/proxyurl:proxyport
network: Connecting http://minecraft.net/client/logo_small.png with cookie 

"information, including my login and password"
security: Loading certificates from Deployment session certificate store
security: Loaded certificates from Deployment session certificate store
security: Validate the certificate chain using CertPath API
security: Obtain certificate collection in Root CA certificate store
security: Obtain certificate collection in Root CA certificate store
security: No timestamping info available
security: Found jurisdiction list file
security: No need to checking trusted extension for this certificate
security: The CRL support is disabled
security: The OCSP support is disabled
security: Checking if certificate is in Deployment denied certificate store
security: Checking if certificate is in Deployment permanent certificate store
basic: Applet initialized
basic: Applet made visible
basic: Starting applet
basic: Applet started
basic: Told clients applet is started
java.io.EOFException: Unexpected end of ZLIB input stream
	at java.util.zip.InflaterInputStream.fill(Unknown Source)
	at java.util.zip.InflaterInputStream.read(Unknown Source)
	at java.io.BufferedInputStream.fill(Unknown Source)
	at java.io.BufferedInputStream.read(Unknown Source)
	at sun.awt.image.PNGImageDecoder.produceImage(Unknown Source)
	at sun.awt.image.InputStreamImageSource.doFetch(Unknown Source)
	at sun.awt.image.ImageFetcher.fetchloop(Unknown Source)
	at sun.awt.image.ImageFetcher.run(Unknown Source)
security: Loading certificates from Deployment session certificate store
security: Loaded certificates from Deployment session certificate store
security: Validate the certificate chain using CertPath API
security: Obtain certificate collection in Root CA certificate store
security: Obtain certificate collection in Root CA certificate store
security: No timestamping info available
security: Found jurisdiction list file
security: No need to checking trusted extension for this certificate
security: The CRL support is disabled
security: The OCSP support is disabled
security: Checking if certificate is in Deployment denied certificate store
security: Checking if certificate is in Deployment permanent certificate store
security: Loading certificates from Deployment session certificate store
security: Loaded certificates from Deployment session certificate store
security: Validate the certificate chain using CertPath API
security: Obtain certificate collection in Root CA certificate store
security: Obtain certificate collection in Root CA certificate store
security: No timestamping info available
security: Found jurisdiction list file
security: No need to checking trusted extension for this certificate
security: The CRL support is disabled
security: The OCSP support is disabled
security: Checking if certificate is in Deployment denied certificate store
security: Checking if certificate is in Deployment permanent certificate store
security: Loading certificates from Deployment session certificate store
security: Loaded certificates from Deployment session certificate store
security: Validate the certificate chain using CertPath API
security: Obtain certificate collection in Root CA certificate store
security: Obtain certificate collection in Root CA certificate store
security: No timestamping info available
security: Found jurisdiction list file
security: No need to checking trusted extension for this certificate
security: The CRL support is disabled
security: The OCSP support is disabled
security: Checking if certificate is in Deployment denied certificate store
security: Checking if certificate is in Deployment permanent certificate store
network: Cache entry not found [url]
network: Connecting http://www.minecraft.net/resources/ with proxy=HTTP @ 

myproxy/proxyurl:proxyport
network: Connecting http://www.minecraft.net/resources/ with cookie 

"information, including my login and password"
basic: unique id: com_sun_deploy_AboutJava-6.0
basic: server port at: 4384
basic: getSingleInstanceFilename: C:\Documents and Settings\myname\Application 

Data\Sun\Java\Deployment\tmp\si\com_sun_deploy_AboutJava-6.0-x86_4384
basic: waiting connection
network: Connecting http://127.0.0.1:4384/ with proxy=DIRECT
basic: recv: javaws.singleinstance.stop
basic: getSingleInstanceFilename: C:\Documents and Settings\myname\Application 

Data\Sun\Java\Deployment\tmp\si\com_sun_deploy_AboutJava-6.0-x86_4384
basic: getSingleInstanceFilename: C:\Documents and Settings\myname\Application 

Data\Sun\Java\Deployment\tmp\si\com_sun_deploy_AboutJava-6.0-x86_4384
basic: removed SingleInstanceFile: C:\Documents and Settings\myname\Application 

Data\Sun\Java\Deployment\tmp\si\com_sun_deploy_AboutJava-6.0-x86_4384
It certainly looks like it's trying to connect through the proxy, nor do I see any weird errors.

#13

Draginz
    Draginz

    Tree Puncher

  • Members
  • 21 posts

Posted 15 July 2009 - 06:04 PM

Try a better browser.

And don't say 'Firefox is the best' because it isn't. It is far from it.

If you want a great browser, I recommend Opera 9. 5/7 internet speed tests (on the same site, same settings) said Opera was faster then Firefox.

That might derail this topic, whoops.
RIP
Billy Mays
1958 ~ 2009
We will never forget.

#14

Thi3f
    Thi3f

    Carpenter

  • Members
  • 47 posts

Posted 15 July 2009 - 08:33 PM

Quote

Try a better browser.

And don't say 'Firefox is the best' because it isn't. It is far from it.
Doesn't mean it doesn't or shouldn't work with Firefox, don't derail.

#15

CButt
    CButt

    Tree Puncher

  • Members
  • 12 posts

Posted 16 July 2009 - 10:07 AM

Quote

Try a better browser.

And don't say 'Firefox is the best' because it isn't. It is far from it.

If you want a great browser, I recommend Opera 9. 5/7 internet speed tests (on the same site, same settings) said Opera was faster then Firefox.

That might derail this topic, whoops.
Here, I humored you and installed Opera. After accepting the permissions on all 4 certificates for Minecraft, it proceeds to crash itself.

So no, not an improvement.

#16

Skype
    Skype

    Zombie Killer

  • Members
  • 170 posts

Posted 16 July 2009 - 10:12 AM

Quote

Try a better browser.

And don't say 'Firefox is the best' because it isn't. It is far from it.

If you want a great browser, I recommend Opera 9. 5/7 internet speed tests (on the same site, same settings) said Opera was faster then Firefox.

That might derail this topic, whoops.
Firefox is the best balance between userfriendly UI, addons, and speed.

#17

CButt
    CButt

    Tree Puncher

  • Members
  • 12 posts

Posted 16 July 2009 - 05:34 PM

Can we not derail? It's broken for me in all browsers (IE, Firefox & Opera), it's not the issue. It specifically has to do with, through a proxy, using a java applet to connect to a new sever.

#18

mail2345
    mail2345

    Void Walker

  • Members
  • 1529 posts

Posted 16 July 2009 - 06:25 PM

What kind of proxy is it?
I disagree with you, therefore you are wrong.
Quality of output = Skill * Effort

#19

CButt
    CButt

    Tree Puncher

  • Members
  • 12 posts

Posted 16 July 2009 - 11:09 PM

Quote

What kind of proxy is it?
I know it's run through a squid 2.7 server, and I believe it's just a plain-jane HTTP proxy with authentication. I assume it's here to limit bandwith and internet usage. (There's a fee to remove it, unfortunately I'm not living here long enough for the fee to be worth it.) This means that practically anything with configurable proxy settings works OK for me - namely firefox and skype - but more complicated and it starts to break down. I did some reading on how Java tends to work with proxies, and apparently connecting to a new third-party server tends to have issues; one suggestion was that it tends to be a port issue, since it won't tunnel properly by default.

#20

Dayanto
    Dayanto

    Coal Miner

  • Members
  • 145 posts
  • Minecraft: Dayanto

Posted 15 October 2010 - 08:00 AM

How does the whole .bat you use look? It might not be a complete sulotion, but I would like to try it anyways.
Posted Image