[MISC] CraftProxy 0.2.0 - Reduce bandwidth use by caching chunk data [1.6]

Discussion in 'Archived: Plugin Releases' started by Raphfrk, May 1, 2011.

  1. Offline

    Raphfrk

    CraftProxy - Reduce bandwidth use by caching chunk data
    Version: 0.2.0

    Description

    This plugin and local client allows chunk data to be cached locally by players. This reduces the bandwidth required for hosting the server. It also helps users who are on slower connections.

    I am not sure what the status of this system is. It doesn't count as a plugin, since it has 2 parts.

    Even when running the plugin, players who don't use the client proxy can still connect. However, they will use the full bandwidth.

    The system can reduce bandwidth by 70-90% (after the 2nd login).

    Setup

    Server

    Add the plugin file to the plugins folder

    Client

    Start minecraft client and login
    Double click on the client jar file
    Enter login details
    Enter the server location/port in the GUI
    Press start on the GUI
    Connect to localhost on the minecraft client

    Stable Builds

    None yet

    Dev Builds

    Warning: These may not be stable

    Client
    Plugin

    Had it get the compress/decompression gain backwards.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 14, 2016
    Jushy, Martin1704, Nathan C and 24 others like this.
  2. Offline

    Wulfspider

    @Raphfrk implemented his plugin's caching features directly into Spout.
     
  3. Offline

    werfu

    How much RAM does this take? I'd like to install a proxy on my Linode and have my players connect there instead of my home IP. It would reduce the stress on my home connection while improving latency.
     
  4. Offline

    Iqualfragile

    it would improve latency as everything would be cached and compressed
    it would allso take some more ram and cpu, but if you have multiple cores this should be no problem

    why don't you use your linode for minecraft?
     
  5. Offline

    Simanova

    Please update this wonderful tool to Minecraft 1.0.0
     
  6. Offline

    dominixise

    Love this plugin, feels so wicked coming to another server wide network, poping in making sure everthing is ok. Makes admining way more fun. I have yet to try serverport server to server teleporting and such with your new serverport suite. I been just happy enough with portals.

    If notch brings out a craft flying broomstick, i can't wait to portal through a deep forest portal of somekind into another server. Maybe there needs to be a tripline to activate things too.

    Merry Christmas and Happy new year.
     
  7. Offline

    Lunar Delta

    Will this be updated for 1.0? I ask because my server is heavily dependent upon this plugin for proper functioning.
     
  8. Offline

    LEOcab

    Same here! You could try Spout as an alternative since it has a caching feature much like CraftProxy's. I doubt the client has been updated yet though. :(
     
  9. Offline

    Lunar Delta

    We also offer spout as an option, but I keep Craftproxy running as well, because Spoutcraft really wrecks some peoples' performance.
     
  10. Offline

    LEOcab

    Oh? How's that? :eek:

    I don't really use it because I need the WorldEdit CUI client mod which requires ModLoader and is therefore incompatible with Spoutcraft, however now that the dev is no longer maintaining it I'll start using Spoutcraft primarily whenever it's out. I like capes. :p
     
  11. Offline

    Lunar Delta

    How? Because Optifine and its derivatives simply don't work well on older, slower computers. (Despite claims to the contrary). I've got a whole tanker-load of evidence from many of my users backing up this assertion. They simply can't use Spoutcraft (or Optifine) because it eats up their memory and destroys their frame rate, regardless of settings.
     
  12. Offline

    Wulfspider

    The OptiFine-based features in Spoutcraft are not enabled by default. The user has full control over their video settings aside from what the server disallows for what it would consider cheating.
     
  13. Offline

    Raphfrk

    Assuming I haven't messed up somewhere (and the protocol info is correct), this should support 1.0.0 now.
     
  14. Offline

    Lunar Delta

    The thing is though, I've even gone so far as to remotely log into their computers and personally verify that they have all of the lowest, most performance enhancing settings, to no avail. Don't believe me if you want, but I've seen it so many dozens of times that I can't possibly come to any other conclusion.

    Also, thanks for the update Raph! =D
     
  15. Offline

    Raphfrk

    No problem, hopefully everything works now.
     
  16. Offline

    Simanova

    v125 is working great, no issues
     
  17. Offline

    LEOcab

    Same here.

    Thank you SO MUCH for this, @Raphfrk ! :D
     
  18. Offline

    Raphfrk

    Updated to 126.

    Apparently, Notch changed flood protection back to the old method. For 1.7 and 1.8, he allowed connections from localhost to bypass the server's flood protection. I guess somebody figured out an exploit, so he changed it back.

    The fix is to have the proxy connect from IP addresses of the form 127.0.x.y, where x and y can be anything. This means that the server thinks each player is connecting from a different address, but they are all considered to be localhost by the network.
     
  19. Offline

    Horfic

    Hi,
    I know that you can run your CraftProxy as standalone and that you can connect it to one server. But could you use on CraftProxy (standalone) for multiple mc servers in the background? Like a frontend where the user connects to.

    Cuz I would like to use your server port suite (the teleporation part) without the client patcher, I don't really see why you would need it when you have/use a proxy.

    So when the client connects to the proxy which then connects to the server1. When you want now to be teleported on a world on server2 the proxy could catch the teleport and redirect the player to server2.

    Would that work? Could we make it to work?

    PS: Thanks for the nice plugins!
     
  20. Offline

    Raphfrk

    Yes, that should work. You need to set it so that the proxy handles authentication though.

    Also, when setting up the hostnames for the servers, you need to use their LAN IP addresses instead.
     
  21. Offline

    dominixise

    Hi, i'm not sure if i am doing something wrong and i will continute to residue the matter, but when i have my globalhostname ip set to my lan ip and either my craftproxy default server ip either set to my external ip or lan ip it ain't working. I am getting a invalid server key error with my lan ip and a stream of ?? marks and end of stream using my external ip and all combinations of switch all ip's in both serverport and craftproxy lead to this. And it happens like a second after i login with xauth plugin.

    I might need to set each globalhost name in game dunno, easy as pie changing it in .txt though.
    l
    18:37:01 [INFO] [MultiInv] Shared worlds loaded with no errors
    18:37:09 [INFO] [xAuth] Player 'nescar' has authenticated
    18:37:10 [INFO] Unknown packet Id fd
    18:37:10 [SEVERE] Unknown packet Id fd
    18:37:10 [SEVERE] e9 b7 5d ff 15 57 92 3 4f 47 e9 7f 51 fc fa fc bf be fe 83 6c
    7f 3a 4a ff a7 45 a8 b9 e9 a5 fc 4b aa ff 18 f5 3f e8 ff cf 77 d 2e a3 47 47 f0
    37 44 8b f3 b7 9 2a fe 8 2 b8 ff a4 d e0 f3 1f 7f f fe 26 f5 f bc fa 6b d8 ff d0
    82 bf 51 *fd* 21 3 e1 95 1b fe 6 8c f7 cf ae 5e 80 f2 fd cf e7 dc fd fb 3f 98 f
    e fa f1 27 3d 7d ff 64 d0 e3 e1 c5 8f e5 1f be 3 d5 fc 73 3 ac 3f db ea ef c6 5f
    98 7f 34 a8 bf ec 79 32 d1 bf 1c 18 bc 4d 99 9b 7 c8 fa 8f 95 df f3 4 89 7f 5a
    76 ab
    18:37:10 [INFO] [6:37:10 PM] 174.3.125.10/49721 (nescar): Downstream link
    18:37:10 [INFO] [6:37:10 PM] 174.3.125.10/49721 (nescar): Unable to read packet

    18:37:10 [INFO] [6:37:10 PM] 174.3.125.10/49721 (nescar): Packets: [50, 50, 50,
    50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 13, 51, -126, 51, 103, 103]
    18:37:11 [INFO] [6:37:11 PM] 174.3.125.10/49721 (nescar): Closed connection to s
    erver
    18:37:11 [INFO] nescar lost connection: disconnect.endOfStream
    18:37:11 [INFO] [6:37:11 PM] 174.3.125.10/49721 (nescar): Closed connection to c
    lient
    18:37:13 [INFO] Freed 49.224 MB.
    18:37:25 [INFO] [Server MSG The Matrix has you....
    >

    I know craftbukkit recommended build is not out and maybe its from that?
    Oh and this info is from not having auth_off = true and =false
    l
    18:37:01 [INFO] [MultiInv] Shared worlds loaded with no errors
    18:37:09 [INFO] [xAuth] Player 'nescar' has authenticated
    18:37:10 [INFO] Unknown packet Id fd
    18:37:10 [SEVERE] Unknown packet Id fd
    18:37:10 [SEVERE] e9 b7 5d ff 15 57 92 3 4f 47 e9 7f 51 fc fa fc bf be fe 83 6c
    7f 3a 4a ff a7 45 a8 b9 e9 a5 fc 4b aa ff 18 f5 3f e8 ff cf 77 d 2e a3 47 47 f0
    37 44 8b f3 b7 9 2a fe 8 2 b8 ff a4 d e0 f3 1f 7f f fe 26 f5 f bc fa 6b d8 ff d0
    82 bf 51 *fd* 21 3 e1 95 1b fe 6 8c f7 cf ae 5e 80 f2 fd cf e7 dc fd fb 3f 98 f
    e fa f1 27 3d 7d ff 64 d0 e3 e1 c5 8f e5 1f be 3 d5 fc 73 3 ac 3f db ea ef c6 5f
    98 7f 34 a8 bf ec 79 32 d1 bf 1c 18 bc 4d 99 9b 7 c8 fa 8f 95 df f3 4 89 7f 5a
    76 ab
    18:37:10 [INFO] [6:37:10 PM] 174.3.125.10/49721 (nescar): Downstream link
    18:37:10 [INFO] [6:37:10 PM] 174.3.125.10/49721 (nescar): Unable to read packet

    18:37:10 [INFO] [6:37:10 PM] 174.3.125.10/49721 (nescar): Packets: [50, 50, 50,
    50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 13, 51, -126, 51, 103, 103]
    18:37:11 [INFO] [6:37:11 PM] 174.3.125.10/49721 (nescar): Closed connection to s
    erver
    18:37:11 [INFO] nescar lost connection: disconnect.endOfStream
    18:37:11 [INFO] [6:37:11 PM] 174.3.125.10/49721 (nescar): Closed connection to c
    lient
    18:37:13 [INFO] Freed 49.224 MB.
    18:37:25 [INFO] [Server MSG The Matrix has you....
    >
     
  22. Offline

    Raphfrk

    What server version are you using?
     
  23. Offline

    dominixise

    i am using craftbukkit nov 29, 2011 10:37:28 AM ver. 1531

    I am going to run latest dec 1 8:45:13 PM ver. 1540 lol

    Its not a big deal Raphfrk, I know most of the plugin dev team has learning capabilites to use plugins with + builds and that craftbukkit is working hard with their builds. 8MB of code could be alot plus conversions. I wonder if they have a script to just re modify it using a yes no batch runner then compile. I don't program code to much but I love the idea of spending some time on it.
     
  24. Offline

    Raphfrk

    Can you try again, I updated it so that it gives valid random numbers.
     
  25. Offline

    Glen

    Using latest CraftProxyLiter with Bukkit build 1550 clients are only am able to connect to server about 10 percent of the time. The rest of the time Getting lots of EOF Reached or Buffer mis-calculation for length?? IO ERROR's with the last error being the most common. Client error says [CraftProxyLiter] protocal Protocol stream closed. Running just a proxy on the server side with no client mods or client proxy. Any ideas on what I might be doing wrong that I can reconfigure to fix this issue thanks.
     
  26. Offline

    Raphfrk

    It works for me. However, am just 1 person on the server. I might have mis-configured a packet. Does the chances of you being kicked depend on where you are when you login? If so, is there anything strange nearby?
     
  27. Offline

    Glen

    Well I work on 2 servers one physical and one a vpn each set-up with there own craftproxyLiter. On the main physical we have about 20 players on at once and I spawn at my home which has allot of glass and a little lava. one the vpn I start at spawn and it still hasnt taken off so theres usually only like one or two people on. spawn is pretty basic doesn't have any flowing lava or water above ground. Attached is a log of the proxy console if it would help. parameters are with auth_off and server doing its own auth. When tested location did not seem to be a factor wither login would be successful or not.
     

    Attached Files:

  28. Offline

    LEOcab

    I rented a VPS with 512MB of RAM to do some file tasks I couldn't do at home because it'd slow down my server. After I was done with that I decided to do use the VPS for a test: I uploaded CraftProxy to it, and had it point to my server, and then asked a couple people to connect to the VPS instead of my server. One of them said the VPS is much smoother than connecting directly to my server, the other said he didn't notice a difference.

    The VPS obviously has a faster connection (100Mbit vs 4Mbit) so if having a CraftProxy server on a VPS with a dedicated line can ease bandwidth congestion on my server (bandwidth = bottleneck, by far) then it'd be the smartest $17 I've ever spent. I haven't been able to really test out if it works because most of my players are 14 year olds who find it too daunting to disconnect and re-connect using a different address but I'll keep insisting. What do you think about this idea, Raphfrk?
     
  29. Offline

    Evangon

    *ONLY FOR INTERNET EXPLORER PEOPLE*
    You may notice that it is a .zip and not a .jar. For any download that states ".zip" when it's clearly a .jar, save it to your desktop and press the Windows Key + R (start, run, cmd if you don't have one) and type "cmd".
    Copy and RIGHT-CLICK PASTE this code (It fails when you say ctrl + v):
    cd Desktop
    rename CraftProxyLiter.zip CraftProxyLiter.jar
    Your welcome btw xD
     
  30. Offline

    Pisi-Deff

    Using Internet Exploder?

    The download link is clearly a jar.

    The only browser I know of that likes to change file extensions on its own is IE.
     
  31. Offline

    Evangon

    @Pisi-Deff
    I only used IE for that _one_ time because I was in a rush.
    I'll edit my post...
     

Share This Page