People can't access the client.

Status
Not open for further replies.

Denero

New Member
May 11, 2019
23
6
Hi guys its me again lol.
So i got everything working and when i go onto the hotel via my VPS it allows to go onto the client. However when i come off my VPS it sticks at 76%.
Ive been to the firewall and that is turned off and I've also checked thats the ports have been forwarded and they have been... So I'm a bit confused ?
 

Joe

Well-Known Member
Jun 10, 2012
4,090
1,918
Hi guys its me again lol.
So i got everything working and when i go onto the hotel via my VPS it allows to go onto the client. However when i come off my VPS it sticks at 76%.
Ive been to the firewall and that is turned off and I've also checked thats the ports have been forwarded and they have been... So I'm a bit confused ?
Who’s your host? Post your client and client config
 

Daltron

Web Developer
Aug 6, 2015
283
152
Go to windows firewall advanced security, Inbound ports > New Rule > Select TCP, Specific ports for instance: "30000, 30001" > Allow the connection > name it as hotel so it is easy to find, do the same on the outbound ports as well.
NOTE: Outbound Ports will auto have block the connection selected, So you will have to select "Allow the connection".
 

Denero

New Member
May 11, 2019
23
6
Hi guys, ill upload the client code later as im at work at the moment.
How do i check if the ports are open?
Will update as soon as i get home!
 

Joe

Well-Known Member
Jun 10, 2012
4,090
1,918
Hi guys, ill upload the client code later as im at work at the moment.
How do i check if the ports are open?
Will update as soon as i get home!
You open the ports in the firewall, there’s a port opening in the releases section that will do this for you.
 

Denero

New Member
May 11, 2019
23
6
You open the ports in the firewall, there’s a port opening in the releases section that will do this for you.
Hi guys. Ive realised i didnt open the ports via my router. Ive just gone to do it but mine doesnt look anything like what the tutorials are showing me

EDIT: Managed to get it done and checked it using portquiz.net. I have portforwarded now but still no luck on accessing it outside the vps.
Post automatically merged:

Who’s your host? Post your client and client config
My host is 1&1 IONOS.

Client code is:

<?php
staffCheck();
Game::sso('client');
Game::homeRoom();
?>
<html>
</body>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title><?= $config['hotelName'] ?> - Hotel</title>
<script src="/templates/brain/client/js/jquery-latest.js" type="text/javascript"></script>
<script src="/templates/brain/client/js/jquery-ui.js" type="text/javascript"></script>
<script src="/templates/brain/client/js/flashclient.js"></script>
<script src="/templates/brain/client/js/flash_detect_min.js"></script>
<script src="/templates/brain/client/js/browse.js"></script>
<script src="/templates/brain/client/js/client.js" type="text/javascript"></script>
<link rel="stylesheet" href="/templates/brain/client/css/client.css" type="text/css">
<link rel="stylesheet" href="/templates/brain/client/css/no-flash.css" type="text/css">
</head>
<body>
<?php
if($hotel['onlineCounter'] == true)
{
?>
<script type="text/javascript">
$(document).ready(function(e) {
$.ajaxSetup({
cache:true
});
setInterval(function() {
$('#onlinecount').load('/onlinecountclient');
}, 8000);
$( "#onlinecount").click(function() {
$('#onlinecount').load('/onlinecountclient');
});
});
</script>
<div class="clientOnlineBox">
<div class="clientOnlineBoxTxt" id="onlinecount"><small><b><?= Game::usersOnline() ?></b> <?= $config['hotelName'] ?>'s online</small></div>
<img src="/templates/brain/client/images/onlineiconclient.png" style="width:29px;height:28px;ht; */position: absolute;margin-left: 130px;margin-top: -19px;">
</div>
<?php
}
?>
<center>
<div id="client-ui">
<div class="client" id="client"></div>
<div class="hb-container" id="area-container">
<h1 class="text" id="client-title"></h1>
<div id="no-flash" style="display: none;">
<div id="info-allow"></div>
<div id="info-allow-button" style="display: none; text-align: center;">
<a href=" " target="_blank" id="allow-flash-button-extern" class="client-reload__button" style="display: none;"><?=$lang['nbutton']?></a>
<button id="allow-flash-button-more" class="client-reload__button" style="display: none; background-color: #f44336;border-color: #d66d66;color: #fff;"><?=$lang['nbuttonerror']?></button>
</div>
<p id="info-flash">
<?=$lang['ninfoflash']?>
<br /><br />
<?=$lang['ninfoflashtray']?><br /><br />
<b style="font-weight: bold;"><?=$lang['ninfoflashpc']?></b>
</p>
<div id="info-flash-extra">
<ul>
<li>Download <a href=" ">Adobe Flash Player</a> <?=$lang['nfree']?></li>
</ul>
<br />
<b style="font-weight: bold;"><?=$lang['nenableflash']?></b>
<ul>
<li><?=$lang['nenableflashsee']?> <a target="_blank" href=" ">Google Chrome</a>
<?=$lang['nenableflashinfo']?>
</li>
<li><?=$lang['nenableflashsee']?> <a target="_blank" href=" ">Internet Explorer</a>
<?=$lang['nenableflashinfo']?>
</li>
<li><?=$lang['nenableflashsee']?> <a target="_blank" href=" ">Microsoft Edge</a>
<?=$lang['nenableflashinfo']?>
</li>
<li><?=$lang['nenableflashsee']?> <a target="_blank" href=" ">Firefox</a>
<?=$lang['nenableflashinfo']?>
</li>
<li><?=$lang['nenableflashsee']?> <a target="_blank" href=" ">Apple Safari</a>
<?=$lang['nenableflashinfo']?>
</li>
</ul>
</div>
</div>
</div>
<script>
var Client = new SWFObject("<?= $hotel['swfFolderSwf'] ?>", "client", "100%", "100%", "10.0.0");
Client.addVariable("client.allow.cross.domain", "0");
Client.addVariable("client.notify.cross.domain", "1");
Client.addVariable("connection.info.host", "<?= $hotel['emuHost'] ?>");
Client.addVariable("connection.info.port", "<?= $hotel['emuPort'] ?>");
Client.addVariable("site.url", "<?= $config['hotelUrl'] ?>");
Client.addVariable("url.prefix", "<?= $config['hotelUrl'] ?>");
Client.addVariable("client.reload.url", "<?= $config['hotelUrl'] ?>/me");
Client.addVariable("client.fatal.error.url", "<?= $config['hotelUrl'] ?>/me");
Client.addVariable("client.connection.failed.url", "<?= $config['hotelUrl'] ?>/me");
Client.addVariable("external.override.texts.txt", "<?= $hotel['external_Texts_Override'] ?>");
Client.addVariable("external.override.variables.txt", "<?= $hotel['external_Variables_Override'] ?>");
Client.addVariable("external.variables.txt", "<?= $hotel['external_Variables'] ?>");
Client.addVariable("external.texts.txt", "<?= $hotel['external_Texts'] ?>");
Client.addVariable("external.figurepartlist.txt", "<?= $hotel['figuredata'] ?>");
Client.addVariable("flash.dynamic.avatar.download.configuration", "<?= $hotel['figuremap'] ?>");
Client.addVariable("productdata.load.url", "<?= $hotel['productdata'] ?>");
Client.addVariable("furnidata.load.url", "<?= $hotel['furnidata'] ?>");
Client.addVariable("use.sso.ticket", "1");
Client.addVariable("sso.ticket", "<?= User::userData('auth_ticket') ?>");
Client.addVariable("processlog.enabled", "0");
Client.addVariable("client.starting", "<?= $config['hotelName'] ?> is loading...");
Client.addVariable("flash.client.url", "<?= $hotel['swfFolder'] ?>/");
Client.addVariable("flash.client.origin", "popup");
Client.addVariable("ads.domain", "");
Client.addVariable("diamonds.enabled", '<?= $hotel['diamonds.enabled'] ?>');
Client.addParam('base', '<?= $hotel['swfFolder'] ?>/');
Client.addParam('allowScriptAccess', 'always');
Client.addParam('wmode', "opaque");
Client.write('client');
FlashExternalInterface.signoutUrl = "<?= $config['hotelUrl'] ?>/logout";

$(document).ready(function() {
if (!FlashDetect.installed) {
$("#disconnected, #hide-message,#client-support, #no-flash").show();
$("#client").hide();
if (bowser.chrome) {
$("#client-reload, #hide-message, #client-support, #info-flash, #info-flash-extra").hide();
$("#client-title").html('<?=$lang['ntitlechrome']?>');
$("#info-allow").html('<?=$lang['ntxtchrome']?>');
$("#info-allow-button, #allow-flash-button-extern").show();
} else if (bowser.msedge) {
$("#client-reload, #hide-message, #client-support, #info-flash, #info-flash-extra").hide();
$("#client-title").html('<?=$lang['ntitleedge']?>');
$("#info-allow").html('<?=$lang['ntxtedge']?>');
$("#info-allow-button, #allow-flash-button-extern").show();
}
$("#disconnected").show().css('z-index', 0);
$("#flash-wrapper").remove();
$(".roomenterad-habblet-container").hide();
connection = false;
}
});
$('#allow-flash-button-extern').click(function(event){
if(bowser.chrome){
$("#info-allow").html('<?=$lang['ntxtchromeerror']?>');
event.stopPropagation();
}
if(bowser.msedge){
$("#info-allow").html('<?=$lang['ntxtedgeerror']?>');
event.stopPropagation();
}
$("#allow-flash-button-extern").hide();
$("#allow-flash-button-more").show();
});
$('#allow-flash-button-more').click(function(){
if(bowser.chrome){
location.href=" ";
}
});
</script>
</center>
</body>
</html>

config is:


<?php
if(!defined('BRAIN_CMS'))
{
die('Sorry but you cannot access this file!');
}

/* Database Setting */
$db['host'] = 'localhost'; //Mysql's Host
$db['port'] = '3306'; //Mysql's port
$db['user'] = "root"; //Mysql's user
$db['pass'] = 'dandre12'; //Mysql's password
$db['db'] = "hotel"; //Mysql's database

/* Emu Settings */
$config['hotelEmu'] = 'plusemu'; // plusemu // arcturus

/* Client Setting */
$hotel['emuHost'] = "77.68.23.168"; //IP of VPS//IP of Proxy
$hotel['emuPort'] = "30000"; //Port of VPS//Port of Proxy
$hotel['staffCheckClient'] = false; //Enable the staff pin in the client (true) or disable it (false)
$hotel['staffCheckClientMinimumRank'] = 3; //Minium staff rank to get the staff pin in the client
$hotel['homeRoom'] = '1'; //Set the start room when you get in the hotel
$hotel['external_Variables'] = " ";
$hotel['external_Variables_Override'] = " ";
$hotel['external_Texts'] = " ";
$hotel['external_Texts_Override'] = " ";
$hotel['productdata'] = " ";
$hotel['furnidata'] = " ";
$hotel['figuremap'] = " ";
$hotel['figuredata'] = " ";
$hotel['swfFolder'] = " ";
$hotel['swfFolderSwf'] = " ";
$hotel['onlineCounter'] = true; // Enable the user count in the client.
$hotel['diamonds.enabled'] = true; // Enable diamonds in the hotel.

/* Website Setting */
$config['hotelUrl'] = " ";//Address of your hotel. Does not end with a "/"
$config['skin'] = "brain"; //Skin/template of your website
$config['lang'] = "en"; //Language of your website en/nl/es
$config['hotelName'] = "Dabbo"; //Name of your hotel
$config['favicon'] = " ";
$config['staffCheckHk'] = true; //Enable the staff pin in the housekeeping (true) or disable it (false)
$config['staffCheckHkMinimumRank'] = 4; //Minium staff rank to get the staff pin in the housekeeping
$config['maintenance'] = false; //Enable the maintenance of your website (true) or disable it (false)
$config['maintenancekMinimumRankLogin'] = 4; //Minium staff rank to login when the website is in maintenance
$config['groupBadgeURL'] = " ";
$config['badgeURL'] = " ";
$config['userLikeEnable'] = true; // Enable user likes
$config['newsCommandEnable'] = true; //Enable news commands
$config['newsCommandFilter'] = true; //Enable wordfilter on news commands (the filter use the db tabels wordfilter and wordfilter_characters)
$config['alertReferrer'] = false;
$config['alert'] = 'Please report all bugs and requests to user Chris'; //Alert message. If you don't want a alert, you do leave it blank.
$config['brainversion'] = '1.9.1'; // Please do not change.

/* Email Settings */
$email['mailServerHost'] = 'smtp.gmail.com';
$email['mailServerPort'] = 587;
$email['SMTPSecure'] = 'TLS';
$email['mailUsername'] = '[email protected]';
$email['mailPassword'] = '*****';
$email['mailLogo'] = '
$email['mailTemplate'] = '/system/app/plugins/PHPmailer/temp/resetpassword.html';

/* Social settings */
$config['facebook'] = '
$config['facebookEnable'] = false;
$config['twitter'] = '
$config['twitterEnable'] = true;

/* Register Setting */
$config['startMotto'] = "I love Dabbo hotel"; //Register start motto
$config['credits'] = "1000";
$config['duckets'] = "200";
$config['diamonds'] = "10";
$config['diamondsRef'] = "10";
$config['registerEnable'] = true;
$config['look'] = "hr-3163-1035.hd-3092-2.ch-215-63.lg-3320-1189-62.sh-3089-1408.ca-3219-110.wa-2001-0";

/* Google recaptcha Site Key
Go to this website to create a recaptcha Site Key: */
$config['recaptchaSiteKey'] = "6LdzewwUAAAAABkJ3vsdfCDca9qmLGDaWAHqMRtFEs2";
$config['recaptchaSiteKeyEnable'] = false;

/* Buy VIP Settings */
$config['vipCost'] = "25";
$config['vipRankToGet'] = "3";
$config['vipBadge'] = "vip";

switch($config['hotelEmu'])
{
case "arcturus":
$emuUse['user_wardrobe'] = 'users_wardrobe ';
$emuUse['ip_last'] = 'ip_current';
$emuUse['respect'] = 'respects_received';
$emuUse['user_stats'] = 'users_settings';
$emuUse['user_stats_user_id'] = 'user_id';
$emuUse['OnlineTime'] = 'online_time';
break;
case "plusemu":
$emuUse['user_wardrobe'] = 'user_wardrobe ';
$emuUse['ip_last'] = 'ip_last';
$emuUse['respect'] = 'Respect';
$emuUse['user_stats'] = 'user_stats';
$emuUse['user_stats_user_id'] = 'id';
$emuUse['OnlineTime'] = 'OnlineTime';
break;
default:
//Nothing
break;
}
 
Last edited:

Joe

Well-Known Member
Jun 10, 2012
4,090
1,918
OK, I've never used Brain so I've got no idea how it's setup.

If you're using a VPS you don't have to port forward anything..? Especially in your router, you'd open the ports in the VPS to allow connections in and out. Open 'Firewall with advanced security' on your VPS and add an inbound rule to open them.
 

Denero

New Member
May 11, 2019
23
6
OK, I've never used Brain so I've got no idea how it's setup.

If you're using a VPS you don't have to port forward anything..? Especially in your router, you'd open the ports in the VPS to allow connections in and out. Open 'Firewall with advanced security' on your VPS and add an inbound rule to open them.
Ive did this, i even downloaded the port opener someone released on here not long ago and the client still gets stuck at 76%
 

Denero

New Member
May 11, 2019
23
6
Either it isn't linked correctly or you have the wrong SWF for that release or you have failed to open your ports correctly.
Im not sure.. If it wasnt linked correctly or the swf is wrong would it still allow me to use the client via vps? I read something about a ddos ticket but wasn't too sure how to turn it off
 

Denero

New Member
May 11, 2019
23
6
Did you modify your Emulators Config file? Change 127.0.0.1 to your servers ip?
Yh i tried this not long ago, still getting the same issue..

If someone to free to maybe have a look via team-viewer to double check ive done everything correctly then id appreciate it because now im just stuck
 
Status
Not open for further replies.

Users who are viewing this thread

Top