Hello, tought I would share this little tool I have been using for the last couple of months. Some of you might find this completely useless and some will find it very usefull.
Main Proxy > Your standard proxy with best uptime and response.
Backup Proxy > Cheaper proxy that you bought from some random on the forum(?)
By Proxy I mean the protection you use to hide your server IP.
How it works
Proxy Backup will check if your Main Proxy is responding(ping) every 3-5 second. If Main Proxy fail to respond 5 times in a row it will automaticlly change to Backup Proxy and also update
your client.php. After your hotel is running on the Backup Proxy it will keep checking if everything is OK with Main Proxy. If Main Proxy get back up it will change back.
Example: You have a VPS you use for protection(Main Proxy) and a Backup Proxy with a cheap provider, if the VPS you use for protection go down Proxy Backup will update your client.php so
your hotel will be up in just a few seconds.
Why?
If you have more then 100 users and your Proxy goes down when you are sleeping or you just don't have access to a PC, Proxy Backup will simply step in and help you. Because downtime means loss of
users and money.
How to setup
I have added a install.txt file which include everything you need.
Don't worry about the ip_checker table, Proxy Backup will update this automatic after you configure the .exe.Code:_____ ____ _
| __ \ | _ \ | |
| |__) | __ _____ ___ _ | |_) | __ _ ___| | ___ _ _ __
| ___/ '__/ _ \ \/ / | | | | _ < / _` |/ __| |/ / | | | '_ \
| | | | | (_) > <| |_| | | |_) | (_| | (__| <| |_| | |_) |
|_| |_| \___/_/\_\\__, | |____/ \__,_|\___|_|\_\\__,_| .__/
__/ | | |
|___/ |_|
1. Run this in your database:
CREATE TABLE ip_checker (
use_ip varchar(100) not null default '',
use_port varchar(10) not null default '',
primary key (`use_ip`)
);
INSERT INTO ip_checker set use_ip = '';
------------
2. Update your client,
Add
<?php
$sql = mysql_query("SELECT use_ip, use_port FROM ip_checker LIMIT 1");
$ip = mysql_result($sql, 0, 0);
$port = mysql_result($sql, 0, 1);
?>
In the top of client.php.
------------
And then remove your current IP and port from client.php and replace it with <?php echo $ip;?> and <?php echo $port;?>
Now it should look like this:
"connection.info.host" : "<?php echo $ip;?>",
"connection.info.port" : "<?php echo $port;?>",
Save and run the .exe file!
Pictures
Spoiler:
Download
Download here
Feel free to scan it or decompile. I will add the source if anyone is interested.
This will require 2 TCP proxies.
Sorry for my bad English and explanation,

