Register for your free account! | Forgot your password?

You last visited: Today at 02:08

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Release]Basic Auto-Show External IP

Discussion on [Release]Basic Auto-Show External IP within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

Reply
 
Old   #1
 
stealarcher's Avatar
 
elite*gold: 0
Join Date: Apr 2006
Posts: 231
Received Thanks: 94
[Release]Basic Auto-Show External IP

Ok, basic and simple PHP script you can add to your website. In any file with the extension .php you can put this script. Basically what it does is show the servers external ip address, even when visited by the server itself. (Typically when a server visits its own server, it will show 127.0.0.1) This comes in handy when you have a dynamic ip especially, this way you dont have to keep your website up to date with your ip everytime it changes :P (if you know a little coding maybe even make an automatic server.dat maker )

Script:
PHP Code:
<?php
$page_contents 
file_get_contents("http://www.whatismyip.org/");
//You can use any website you want (that shows your ip) to get an ip address, this is the fastest one because it doesnt have to go threw a lot of page content before the page loads
$regex "([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3})";
preg_match($regex $page_contents$matches);

echo 
'Your External IP: <strong>' $matches[0] . '</strong>';
?>
stealarcher is offline  
Thanks
1 User
Old 11/07/2009, 08:20   #2
 
elite*gold: 20
Join Date: Jan 2008
Posts: 2,338
Received Thanks: 490
a server.dat maker would be easier as a EXE but anyway nice lol
~Yuki~ is offline  
Old 11/07/2009, 08:47   #3
 
stealarcher's Avatar
 
elite*gold: 0
Join Date: Apr 2006
Posts: 231
Received Thanks: 94
Lol true, but some people post theirs on the website etc to download. Could easily change the file their downloading (if its on ur server to download) to the current IP.
stealarcher is offline  
Old 11/07/2009, 09:24   #4
 
elite*gold: 0
Join Date: Feb 2006
Posts: 550
Received Thanks: 82
no need for the regular expressions, whatsmyip do offer a page somewhere with just the plain text of your IP. find it
ChingChong23 is offline  
Old 11/07/2009, 14:56   #5
 
stealarcher's Avatar
 
elite*gold: 0
Join Date: Apr 2006
Posts: 231
Received Thanks: 94
thats what im using. plain text to display your ip. No other content being gathered, simply your ip. Saves a lot of load time.
stealarcher is offline  
Reply


Similar Threads Similar Threads
[Release] Basic Hax CF 11.08.10
08/25/2010 - CrossFire Hacks, Bots, Cheats & Exploits - 106 Replies
Grad auf MPGH gefunden und gestestet: Hacks: Boxes No Sky No Fog No Smoke No Light World
[Release] Basic Website
07/13/2010 - General Art - 0 Replies
This is my first html/psd website made by me, very crappy but still my first. I don't know if this is the right section anyways. Thanks. >.< You can download it down there. http://i25.tinypic.com/ejefd5.jpg
[RELEASE] Basic SocketLibrary
05/06/2010 - CO2 PServer Guides & Releases - 5 Replies
Also part of my dump on this forum, I hope someone can use this for mainly learn purposes. Release Notes: This SocketLibrary (.dll) can be used for any purposes. From something big like a complete MMORPG, to something as small as a chat. Version(s): 0.1 - The first release, not many extras yet, just a basic, but easy library to set up a socket system. Downloads:
[REQUEST] Quiz Show Bot / Auto-Responder
05/01/2009 - CO2 Programming - 11 Replies
I would like to see a bot released that contains all known quiz show questions and can recognize the correct answer out of the 4 pre-fabricated options. Furthermore it could be automated to alt-tab through all your conquer accounts and answer the questions for all of them in under 30 seconds. I'm looking for something that could do this for between 7-11 accounts at a time in under 30 seconds, so thats tight neat programming that can search its own database, arrive at the solution and...
No Falling Damage/Auto Follow NPC/Show Names
02/15/2005 - WoW Exploits, Hacks, Tools & Macros - 3 Replies
Atm, it only works for the US client, and will no longer work when there is a patch, but I will probally update it. Currently what Nemesis can do for you: -No Falling Damage- Never take falling damage, no matter how high you fall. -Show name- Enables you to see your characters name/guild title over his head (Like in EverQuest). -FollowNPC- Great for bots, lets you autofollow any NPC/creature you wish.



All times are GMT +1. The time now is 02:09.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.