[WEB/INFO] IPUploader v1.5 - Automatic sharing of server IP with web page [1185]

Discussion in 'Inactive/Unsupported Plugins' started by Waterflames, Jul 9, 2011.

  1. Offline

    Waterflames

    IPUploader - Spread the IP!:
    Version: v1.5
    BukkitDev: http://dev.bukkit.org/server-mods/ipuploader/
    This plug-in searches the servers ip and uploads it to a web page. It runs on server start and requires Internet access (Duh...)
    Why? This allows easy access to the server.
    The plug-in requires a PHP enabled web server.
    Runs on: Java, PHP

    New Instructions:
    * Download the zip.
    * Copy the IpUploader.jar to your minecraft server plugin folder.
    * Run the server to allow the configuration to be generated.
    * Open "ip.php" from the /server folder in the zip.
    * Replace "EnterYourRawPasswordHere" with your password.
    * Upload ip.php and ip.txt to your web server and give ip.php full permissions. (chmod)
    * In your server folder go to /plugins/IPUploader and open config.txt
    * Replace the url and the password with the right values.
    * Save, reload the server and enjoy. (Check the log for success.)

    Old instructions:

    Show Spoiler
    * Download the zip.
    * Go to the "plugin" folder and copy the plugin to your minecraft server plugin folder.
    * Run the server to allow the configuration to be generated.
    * In the downloaded zip, go to the "tool" folder and open "PACP1Generator.jar".
    * Write a password in the textbox (no numbers or special symbols allowed). Be sure to remember the password. We will need it later on.
    * Click the generate button, copy the code and open "ip.php" from the /server folder in the zip.
    * Replace "PasteYourCodeHere" with the code.
    * Upload ip.php and ip.txt to your web server and give ip.php full permissions. (chmod)
    * In your server folder go to /plugins/IPUploader and open config.txt
    * Replace the url and the password with the right values.
    * Save, reload the server and enjoy. (Check the log for success.)


    Problems? Post here, and I'll try to answer ASAP.

    Features:
    * Finds IP online.
    * Uploads IP online.
    * Security code to ensure exclusive access.
    * Configuration file with url, password, and an alternate ip service incase the normal doesn't work.

    Download IPUploader
    <Edit by Moderator: Redacted mediafire url>

    Changelog:
    Version 1.5
    * Changed authentication to a more easy method.

    Version 1.0
    * Released!

    Note: I am not responsible for any leak of information, puppies killed, or any other harm.
    I build in some security measures, but you use it on your own risk.

    Has anybody actually tried it? :p
     

    Attached Files:

    Last edited by a moderator: Nov 27, 2016
    hughjyifyk, Diplor and masterjohn12 like this.
  2. Offline

    ChrizC

    Add an external download. Non-members cannot download from the forum.
     
  3. Offline

    Waterflames

    Done.
     
  4. Offline

    MariuszT

  5. Offline

    Waterflames

  6. Offline

    MariuszT

    Could you try write a plugin which is in my request? Think about possibilities :)
     
  7. Offline

    Waterflames

    Sure, shouldn't be to much work.
    So, if I understand what you want it is like this
    - Player sends a Minecraft chat command (/websend command arguments)
    - Plugin processes it and sends stuff to PHP webpage
    - PHP receives 3 GET variables (arguments, Player, and a code for checking the sender)

    What happens then? Do you want to write the PHP end, or do you want me to do it.
    I can do that, but then I need to know exactly what you want to do.

    I'll start coding now.
     
  8. Offline

    MariuszT

    Yes, exactly as you wrote. After submission plugin must wait for the response and send it to player.

    PHP script must be transapret for us. He can do anything and this isn't important right now. Plugin will be for developers. I can write simple example PHP script for others to understand how to use this plugin.

    Use POST instead GET, it's more secure (no passwords/arguments in logs).
    Add configuration to plugin where you can type address for our PHP script.


    After all we can use this plugin with tools like http://forums.bukkit.org/threads/me...your-own-plugin-like-functionality-935.21279/ or http://forums.bukkit.org/threads/mi...-aliases-advanced-command-scripting-860.4669/ and do many plugins in... PHP! :)
     
  9. Offline

    Waterflames

    I just found out how to use POST instead of GET.
    Its actually pretty easy, so I will use it!

    I will provide a sample php, just to show how the variables are send to the php.

    Configuration is in it already, so no worries!
     
  10. Offline

    MariuszT

    Remember about delay between plugin and PHP. Plugin can't hang the server.

    BTW Thank you very much for your help :)
     
  11. Offline

    Waterflames

    Had some problems with sending multiple values trough a connection, turns out I just needed to add "&" -_-
    POSTing of variables: ✔
    Configuration: ✔
    Security of connection (password protection): ✔
    Sample php: ✔
    Current values being sent: Player, securitycode, arguments.

    I need to polish the plugin a bit, but after that I will release a beta (or alpha?) version.

    It is now also possible to send commands from the php.

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

    MariuszT

    I don't know what can I say :) It's a great news :) :) :)
     
  13. Offline

    Waterflames

    Thanks :)

    Alpha version is ready. I will post it at your thread for testing.
     
  14. Offline

    tha d0ctor

    so would this allow me to connect to my server via:

    Myip.com:80 instead of myip.com:25565 ?
     
  15. Offline

    Waterflames

    No, this allows everyone you want on your server to go to yourwebsite.com/ip.php and copy your server ip to join.
     
  16. Offline

    tha d0ctor

    cool, thanks!

    too bad you cant run apache and minecraft from port 80 so I could play at work ;)
     
  17. Offline

    Waterflames

    :p That would be cool, but fairly impossible since port 80 is used mainly for transferring web pages :/
     
  18. Offline

    Black_Jack

    Cant find out how it works and what it doing.
     
  19. Offline

    Waterflames

    Do you mean you don't understand how to make it work, or what the plugin actually does?
     
  20. Offline

    Black_Jack

    What plugin actually does
     
  21. Offline

    Waterflames

    When you play multiplayer, you need to enter the ip adress of the server to join.
    Some servers have a "serveraddress.com" mask, but many don't, so you enter the ip.
    I'm not sure if it is the case everywhere, but where I live, my IP address changes everytime my router resets.
    Because of the change, other people can't connect without asking you for the ip again.

    Now to the point: This plugin puts the ip address of your server online on a webpage on your server, so your friends, family, etc... can get the ip from there and join.
     
  22. Offline

    Black_Jack

    Hm, using no-ip services does not solve the problem? Oo
     
  23. Offline

    Waterflames

    So, what? 2 solutions, double the happiness.
     
  24. Offline

    herpaderpa

    Hi

    I get the following error regarding your plugin:
    Code:
    15:25:01 [INFO] Preparing spawn area: 20%
    
    15:25:01 [INFO] WARNING: Failed to parse value false for boolean IPLOADER. Please check your config file. (should be true or false)
    
    15:25:01 [INFO] Attempting connection to whatismyip.org.
    
    15:25:02 [INFO] Generating passcode
    
    15:25:02 [INFO] Generating Program Access Code. (PAC)
    
    15:25:02 [SEVERE] java.lang.NullPointerException
    
    15:25:02 [SEVERE] at IPUploader.Uploader.generatePAC(Uploader.java:61)
    
    15:25:02 [SEVERE] at IPUploader.Uploader.uploadIP(Uploader.java:35)
    
    15:25:02 [SEVERE] at IPUploader.Main.onEnable(Main.java:54)
    
    15:25:02 [SEVERE] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:126)
    
    15:25:02 [SEVERE] at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:857)
    
    15:25:02 [SEVERE] at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:264)
    
    15:25:02 [SEVERE] at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:151)
    
    15:25:02 [SEVERE] at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:136)
    
    15:25:02 [SEVERE] at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:284)
    
    15:25:02 [SEVERE] at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:271)
    
    15:25:02 [SEVERE] at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:148)
    
    15:25:02 [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:335)
    
    15:25:02 [SEVERE] at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    
    15:25:02 [INFO] [dynmap] Using environment as template: normal
    In config.txt i have set the password and url pointing to ip.php on my site, didnt touched the iploader field, also i wrote the generated PAC in ip.php and uploaded it to my site along with ip.txt

    I hope i did not miss anything and you can fix the plugin.
    Cheers
     
  25. Offline

    Waterflames

    Thank you for posting the bug. I fixed it in the new version.

    Instructions:
    Replace old files with new ones from the zip.
    Open ip.php and change the "EnterYourRawPasswordHere" with your raw unedited password.
    Save and try out.
     

    Attached Files:

  26. Offline

    herpaderpa

    Thank you sir!
    I tried it out and worked like charm.
    Have a nice day!
     
  27. Offline

    ClanSoul

    does this work for servers hosted on, say, a desktop computer?
    I'm not sure how i'd set the php side of things up.
     
  28. Offline

    Waterflames

    The plugin for bukkit? No problems at all
    The php file? If you have a php server already installed on your computer, then yes. Otherwise I think it will be easier to find a free webhost who supports php.
     
  29. Offline

    Ethneldryt

    Hello, is it possible to upload ip 0.0.0.0 or text when server is stopped with /stop ? thanks you
     
  30. Offline

    Waterflames

    The latest version should do that...
     

Share This Page