[REQ] Server IP to PHP/HTML

Discussion in 'Archived: Plugin Requests' started by Haribo98, Aug 22, 2011.

  1. Offline

    Haribo98

    Hey,
    My friend is used to server hosting, and he does not play on minecraft very much because he has other stuff to do. This means, that when his IP changes, none of the players know about it! This is causing a big problem, because we have a custom IP, and he does not know how to change the IP to the IP the Custom IP redirects too. As we know each other, I host a website for him and his server, and he is very grateful for it, but what we need is a plugin, that finds the server IP, and converts it to a snippet of HTML or PHP, I want to be able to put this on the home page along with some text, and I DO NOT want to have to use MySQL. Here is the link to the site Mossy Cobble Craft. If It was possible, I would like to be able to do something like this on the website:
    Custom IP: mossycobblecraft.dyndns.tv
    Use this IP if custom does not work: [server ip]

    Thanks in advance and I hope this is possible (I know the HTML bit is). If you want to see a plugin that does something similar, go to MCStats3. I use that plugin too!
     
  2. Offline

    sgtbigman

    Set up a static ip for the server on the network.
     
  3. Offline

    Banana937

    Did you code the site yourself, or use a CMS like Drupal?
     
  4. Offline

    Haribo98

    I would, but I don't know how on his router, and if I were to be honest, I only need a plugin that can put the IP in HTML because his router is a bit dodgy.


    If your saying what I used to make it, I used Rapidweaver for Mac, and added my own little PHP add-ons a friend gave me. However, i'm just looking for something that will give me a HTML page, that I can add in my website, or a bit of PHP, I will be more than grateful
     
  5. Offline

    Banana937

    In Rapidweaver, do you write HTML code?
     
  6. Offline

    Seta

    There is an Plugin in my Signatur "InfoApi", but i didnt implement IP :confused:
    Here's a little costum build 4 you :D <Edit by Moderator: Redacted mediafire url>
    Take a look at the Forum post in my Signature there is even an PHP example, youre query is /ip

    But to be true, i would not use my Plugin for such a little Problem ^^
    Whats the Operating System the Host maschine is running?

    A simple cron script, requesting an simple PHP Page on youre Server (dont forget a secret key xD) which saves the IP to a textfile would be much less resource eating.

    i would use a simple Bash Script, and Unix crontab, but this depends on which operating System you have.
     
    Last edited by a moderator: Nov 12, 2016
  7. Offline

    Haribo98

    Yes, why?

    Thanks, i'll try it as soon as possible, My Host is using a PC. It's currently down for maintenance (working on permissions), so when It's back up, i'll give it a shot

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

    Banana937

    If you write the HTML yourself, like all of the HTML, no templates or any of that shit, then it's possible. I was just making sure because you couldn't do that if you used a template or anything.
     
  9. Offline

    Haribo98

    Oh, well, I use a template, but I can write the Container in HTML
     
  10. Offline

    Banana937

    Yeah -- templates wouldn't really work because you don't write the code...
     
  11. Offline

    codename_B

    BukkitHTTPD
     
  12. Offline

    NuclearW

    Tell him to set up dyndns.org
     
  13. Offline

    Unset

    When using a static subdomain (For me it's jan.servegame.com), you can also choose to download a little program that updates you subdomain. With No-Ip, I am now using a program called "No-IP DUC". So you don't have to configure your router.
     
  14. Offline

    Seta

    did you even read the first Post? :p
     
  15. Offline

    nisovin

    You should be able to configure dyndns on the router to auto-update the redirection URL. Or as someone else said, use No-IP.
     
  16. Offline

    Haribo98

    If you had not read what I said before, I do use dyndns. The reason why I can't get an Auto-IP updater, is because this will cause more lag, on an already laggy server, hence the upgrade at the end of this month
     

Share This Page