[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

    Raphfrk

    IO Error means that the proxy couldn't read or write to the server for some reason.
     
  3. Offline

    MaWe4585

    which proxy to which server?
    serverproxy to minecraft server or clientproxy to serverproxy?
     
  4. Offline

    Raphfrk

    Not sure, guess I should have added it to the logging info.

    Btw, is the server and client proxy the same version?
     
  5. Offline

    MaWe4585

    yes it's the same version. proxyserver of course is on the same pc as the minecraftserver, clientproxy is in the same local network connecting via wireless lan
     
  6. Offline

    Raphfrk

    Hmm, not sure what the issue is. It would be great if you could figure out what version it was actually working with ... makes it much easier to track down the issue.
     
  7. Offline

    MaWe4585

    that shouldn't be that hard, how often do you update?
    I started the server 14.07.2011 and i started using craftproxy a few days after that. The earliest version i can find in my download history is from 18.07. but i have deleted it. since i always use the latest stable version i figure it is the one that was latest on 18.07.

    However i can't say 100% that it works with that because in that days i did a lot of exploring, not much of digging around.
     
  8. Offline

    Raphfrk

    I stored all the old releases here.
     
  9. Offline

    Hikyuuri

    Ok, so I have installed the plugin on my server computer and am attempting to get it to work with my client computer.

    I open the GUI on the client machine, and type in the following information:
    Remote Server:
    Name: wothgaming
    Port: 20000
    Local Server:
    Name: localhost
    Port: 25565

    I leave all other settings alone. I click Start, but absolutely nothing happens except it grays out the Max Size box and Buffer latency box. No messages appear in the Status box, and when I click Stop, nothing happens.

    I have it running on the server properly, and ports are forwarded through the firewall. The server is on the same network as the client machine, so router port forwarding is not required at this time. The server runs the plugin, as it says in the console:

    CraftProxy-Liter started in plugin mode
    Command line args: [20000, 25565 auth_off, log_time_off, rotatelocalhost]
    Starting Craftproxy-lite version 107
    WARNING: You have not enabled layer name authentication
    WARNING: This means that player logins are not checked witht he Minecraft server
    To enable name authenication, add auth to the command line
    Use "end" to stop the server
    [CraftProxy-Lite] Server console disabled
    Server listening on port: 20000

    That is all the server console says about craftproxy. Any ideas on why it does not want to work?

    Sorry for the double post, but I got an update.

    I was able to get it to work on my computer, and am now trying to get it to work on my friends computers. They are outside the network, so I added port 20000 to the router forwarding list to my server.

    After working with one of my friends for a little while, we are unable to get their computer to work with the craft proxy program. It loads, and they put in the required information correctly, but when they click start, it freezes up like it was doing to me earlier.

    Any idea on why that is?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 14, 2016
  10. Offline

    Raphfrk

    This sets up the proxy to connect to port 20000 and listen on port 25565.

    However, the server setup is probably:

    Listen: 25565 (direct connection)
    Listen: 20000 (proxy plugin connection)

    This causes a collision for port 25565. I would suggest changing local server on the GUI to 25564 and then typing localhost:25564 into the minecraft client.
     
  11. Offline

    Hikyuuri

    The client and the server are not on the same machine. The server is a dedicated server, it doesn't even have a monitor or keyboard attached.

    Like I said, its working great for me inside my network, but for anyone outside my network, they are unable to use the proxy.
     
  12. Offline

    Raphfrk

    There should be no difference between local and external in that case. Maybe there is a firewall thing on the server, it allows local LAN connections but not external. Anyway 20000 needs to be forwarded to the server machine.
     
  13. Offline

    thehutch

    EDIT: Got it workng now thank you sorry I didnt type anything had no keyoboard using speech recognition :)

    Code:
    02:13:17 [SEVERE] java.io.IOException: Bad packet id 80
    02:13:17 [SEVERE]       at net.minecraft.server.Packet.a(Packet.java:73)
    02:13:17 [SEVERE]       at net.minecraft.server.NetworkManager.g(NetworkManager.
    java:149)
    02:13:17 [SEVERE]       at net.minecraft.server.NetworkManager.c(NetworkManager.
    java:259)
    02:13:17 [SEVERE]       at net.minecraft.server.NetworkReaderThread.run(SourceFi
    le:84)
    02:13:17 [INFO] thehutch lost connection: disconnect.genericReason
     
  14. Offline

    DJ Olditmes

    thank you so much for making a plugin that does this, btw do the players have to have this downloaded?
    my bandwidth was over 500gb in less then 3 weeks without this now it is 120gb in 1 month I LOVE YOU!
    + can you make a tutorial about this for the mac so i can get even less bandwidth
     
  15. Offline

    AgentKid

    @Raphfrk SpoutCraft v1.0.0 throws an IO Error on the proxy when you try to connect with it installed.
     
  16. Offline

    Raphfrk

    Bah, probably bad packets again :).

    Seems to work for me, can you give more details, including what your setup up is + exception stack traces.
     
  17. Can you explain or link me to an explanation what this fairness manager exactly does? It's nowhere stated in the OP or i just failed to notice it(sorry)
     
  18. Offline

    Raphfrk

    I removed it in the end (See comments for 81 and 86 :)). It was supposed to share bandwidth between the players more evenly. However, it just slowed everyone down to the same speed as the slowest player.
     
  19. Offline

    Simanova

    Confirmed. Robin Hood would be proud.
     
  20. Offline

    thomasbomb

    Would it be possible to redirect people without the proxy client? That could help with big servers that have CraftProxy. Just an idea.
    Also would it be possible (I know it's probably not practical) to have a server running on a computer with a bad internet connection, then another computer with a better connection running the client, then connect to the "client" server?
     
  21. Offline

    Raphfrk

    The local client is only if you want to do caching to reduce bandwidth. For reconnecting between servers, you just need a server side proxy.
     
  22. Offline

    thomasbomb

    I meant that if 2 players wanted to get on a server. P1 had the client, and P2 didn't. P1 would connect as normal, but what if P2 connected to the proxy? By what I said, P2 would just get redirected to the normal server. Maybe it already does this? Idk
     
  23. Offline

    Takel

    P2 connects as normal without even realising that there's a server proxy. The server proxy just doesn't do anything fancy with the chunk data for P2.
     
  24. Offline

    thomasbomb

    Oh ok. That's nice to know.
     
  25. Offline

    Raphfrk

    Yeah, if you connect directly to the proxy, then it just acts as a passthrough. In that case, you might as well have that person connect directly to the server.
     
  26. Offline

    Tylui

    It seems to increase latency a lot. Especially upon first joining...
     
  27. Offline

    Raphfrk

    Hmm, well the first time you join, it has to store the chunks. However, I didn't think it increased latency much. It increases CPU usage, so that could cause added latency.
     
  28. Offline

    Raphfrk

    Spout (dev build) has this functionality now.
     
  29. which functionality? Caching chunks locally? If so pls do not stop developing this plugin as not everybody uses Spout!
     
  30. Offline

    thomasbomb

    Are you complaining that you don't want to use spout but you're willin to download this? It's fundamentally the same thing, but spout has more possibilities.
     
  31. I'm not complaining, my problem with spout is, that MOST Client Mods can't be used with it and Spout is not what i need for my little server atm. So this plugin does the job as well.
     

Share This Page