How to detect the domain name or IP?

  •  10-10-2010, 11:33 AM

    How to detect the domain name or IP?

    If you purchase domain license,small business license, you need use domain name to generate license, If you purchase IP license, you need use IP to generate License, Please follow the following steps and get your domain name or IP:
     
    ASP.NET series:
    CuteEditor for .NET, Ajax Uploader, DotNetGallery,CuteChat, Cute Messenger, Cute Live Support:
     
    Classic ASP:
    CuteEditor for ASP, ASP Uploader, ASP Image Gallery
     
    PHP:
    CuteEditor for PHP,PHP Uploader, PHP Image Gallery
    1. save the following code to telldomainorip.php:
     <html>
        <head>
     </head>
        <body>
                <?php
                    $ip=@$_SERVER['SER'.'VER_AD'.'DR'];
        if($ip==null)$ip=@$_SERVER['LOC'.'AL_AD'.'DR'];

    echo("<h1>IP:".$ip."</h1>");
    echo("<h1>Domain:".$_SERVER['SERVER_NAME']."</h1>");
                ?>
     </body>
    </html>

    2. Upload the telldomainorip.php to your server at the same place the component will be running at. For example, if the component runs at http://subdomain.domain.com/folder/subfolder/default.php, then run this License Helper at http://subdomain.domain.com/folder/subfolder/telldomainorip.php . Please run this .php in all scenarios your end users may access. For example, run it inside/outside firewall, redirection domain names, different VPNs, internet/intranet, home dial-up network etc. etc.
     
     
View Complete Thread