[Guide]For Dynamic IP Hoster

Status
Not open for further replies.
Newbie Spellweaver
Joined
Feb 27, 2007
Messages
56
Reaction score
0
If you are running a dynamic IP(meaning each time you do a reconnection on your internet, your IP changes), it will be difficult to tell your each and every friends whats your current IP now.

Well, I hope this will help. You can make a sub-domain name which is easily can be remember and your friends don't have to ask you for your IPs.

First you need to register at a DNS hosting company which is free.



and many more. Just google it. And you can download a update client from those each dns hoster. Then choose your sub-domains name.
Example: (it's not there. I just make it up)
Now you need to tell your friends what's your ip address is.
Put this code into your CMS php files.(Better to create a new one)
Code:
<?php
$myhost = 'spotlifter.is-a-geek.org';
$ip = gethostbyname($myhost);
     echo "My Server IP is <i> $ip </i>";
?>
So when your friends browse your websites and click on this link. He now knows your IP server. Or he can choose to find out himself by dns your hostname. For fixed ips, it works too.

I wish Akai could comes up with putting hostname instant of putting ips in the config files. Just an idea :punch: .
 
Wat exactly should i use to make a website?(with dynamic ip here)
If you're using the Xampp, goto htdocs/your CMS files(Element CMS v2.6). Create a new php file(example: gethost.php)& save it at folder modules.
Put the code in & make a link on ur index.php.
Code:
   <li><a href="?op=gethost">Server IP</a></li>
Whenever your friends click on it. Your friends will be able to see your ip.

For others , it's just the same.
 
Status
Not open for further replies.
Back