1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. While the majority of active discourse on D20PRO has moved to our Discord Channels, this forum is still active and checked-in on regularly by our staff. However, for the very latest information, conversation and/or immediate support, please join us on Discord here: http://discord.gg/Ph38ckM
    Dismiss Notice

Public IP

Discussion in 'Bug Reports & Installation Support' started by BoomerET, Jan 16, 2013.

  1. BoomerET

    BoomerET New Member

    Joined:
    May 18, 2012
    Messages:
    21
    Likes Received:
    0
    It appears as though whatismyip.com has changed their practices.

    Trying to get the judge Public IP gives the following:
    We have removed the .asp version of this script from our website. Please <a href="http://www.whatismyip.com/membership-options/">click here</a> to learn about our new "Automation" services.

    Looks like they want money now for automation, too many people abusing the system.

    It's a pain to screen-scrape, but unless you want to increase the cost of d20pro to cover the automation costs, what's a fellow to do?


    BoomerET
     
  2. Entola

    Entola Member

    Joined:
    Jul 23, 2012
    Messages:
    128
    Likes Received:
    0
    Verified.
     
  3. Wesley Gorby

    Wesley Gorby Production/Community Manager
    Staff Member

    Joined:
    Aug 1, 2011
    Messages:
    2,443
    Likes Received:
    140
    this is super easy to do in php.. for those of us who have our own web sites, it would be cool to be able to tell d20pro to use a provided page script (url)..

    Code:
    <?php
    ///////////////////////////////////////////////////////////////
    // whatsmyip.php
    $domain = $_SERVER['REMOTE_ADDR'];
    ?>
    <HTML>
    <BODY>
    <RIP><?=$domain?></RIP>
    </BODY></HTML>
    <?
    ///////////////////////////////////////////////////////////////
    ?>
    
     
  4. BoomerET

    BoomerET New Member

    Joined:
    May 18, 2012
    Messages:
    21
    Likes Received:
    0
    Krillon_GD,

    Works if you have your own server. Heck, it probably works if you have WAMP or somesuch animal installed on your judge computer.

    But I doubt most people run their own server from their own IP, let alone run a LAMP environment on their computer.

    I do see a benefit of hiding a choice somewhere in the configuration, such that unknowing people won't find it and muck with it.

    Best bet would require them to edit a text file, so Joe Average user can't find the menu item and then complain they can't judge anymore.

    As an aside, I am loving playing with the new Extensions engine.


    BoomerET
     
  5. Wesley Gorby

    Wesley Gorby Production/Community Manager
    Staff Member

    Joined:
    Aug 1, 2011
    Messages:
    2,443
    Likes Received:
    140
    yup, why I pre qualified it with "for those of us who have our own web sites" :)
     
  6. BoomerET

    BoomerET New Member

    Joined:
    May 18, 2012
    Messages:
    21
    Likes Received:
    0
    Hmm, wonder how hard it would be to scrape any of the following:
    http://checkip.dyndns.org/
    http://www.myglobalip.com/

    dyndns looks pretty simple.
    <html><head><title>Current IP Check</title></head><body>Current IP Address: XXX.XXX.XXX.XXX</body></html>

    BoomerET
     
  7. ogexam

    ogexam Member

    Joined:
    Jul 10, 2008
    Messages:
    526
    Likes Received:
    1
    Well son of a .....

    Ok I get on this issue asap. Need to find a native way of getting public IP. <sigh>
     
  8. ogexam

    ogexam Member

    Joined:
    Jul 10, 2008
    Messages:
    526
    Likes Received:
    1
    Does this work if for instance we put this on our d20Pro website server then it will show the viewers IP address just like WhatIsMyIP?
     
  9. Wesley Gorby

    Wesley Gorby Production/Community Manager
    Staff Member

    Joined:
    Aug 1, 2011
    Messages:
    2,443
    Likes Received:
    140
    I have put up http://tcrgames.com/whatsmyip.php for our gms to use in the mean time.. if anyone else wants to make use of it, you are welcome to do so while it is up...
     
  10. Wesley Gorby

    Wesley Gorby Production/Community Manager
    Staff Member

    Joined:
    Aug 1, 2011
    Messages:
    2,443
    Likes Received:
    140
    yes it would.. just have your call pull or parse for whats between the <rip> tags...
     
  11. BoomerET

    BoomerET New Member

    Joined:
    May 18, 2012
    Messages:
    21
    Likes Received:
    0
    If you need/want a SOAP/XML/JSON solution, I'm able to provide help.



    BoomerET
     
  12. edwardcd

    edwardcd Administrator
    Staff Member

    Joined:
    Oct 13, 2010
    Messages:
    1,374
    Likes Received:
    9
    Thanks everyone, this has been solved in new version of 3.3.

    We've used the following:
    Code:
    <?php $domain = $_SERVER['REMOTE_ADDR']; ?>
    <?=$domain?>
    
     

Share This Page