WARNING: The forum is now in read-only mode as we will soon be transitioning to different forum software. Feel free to join our Discord server in the meantime.
0perat0r
Posts:6
Joined:Sat Feb 09, 2013 1:48 pm
B3 & Server Connection problem

Sun Mar 02, 2014 4:25 pm

Hey mates, I've searched around here and at b3 forums but couldnt find a solution to my problem. Trying to setup a server myself with B3. Server running well, I connected and played in it myself. But when I try to connect B3 to it, gives me error.
It says Target machine actively refused connection.

Latest server version
Server Location: C:\Server
B3 Location: C:\B3
Config created by B3 config tool
Xampp up and running
Sql imported

B3 Config

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<!--Created by BigBrotherBot Config File Generator at config.bigbrotherbot (02 Mar 2014 - Sun 17:00:48 CET)-->
<configuration>
  <settings name="b3">
    <!--Name of the bot.-->
    <set name="bot_name">b3</set>
    <!--Ingame messages are prefixed with this code, you can use colorcodes.-->
    <set name="bot_prefix">^0(^2b3^0)^7:</set>
    <!--You can arrange the time format as specified in python's time directives.-->
    <set name="time_format">%I:%M%p %Z %m/%d/%y</set>
    <!--Set your server's timezone so all timebased lookups will show the proper time.-->
    <set name="time_zone">CEST</set>
    <!--The amount of logging you want in your b3.log file. Lower numbers log more information.-->
    <set name="log_level">9</set>
    <!--Name and path of the logfile the bot will generate.<br/>@conf : the folder containing this config file-->
    <set name="logfile">@conf/b3.log</set>
    <!--Your game parser.-->
    <set name="parser">bfbc2</set>
    <!--Your database info: [mysql]://[db-user]:[db-password]@[db-server[:port]]/[db-name]-->
    <set name="database">mysql://root:mypass@localhost/b3</set>
  </settings>
  <settings name="bfbc2">
    <!--When sending a message, lines will have at most this number of characters.-->
    <set name="max_say_line_length">100</set>
  </settings>
  <settings name="server">
    <!--Enter your game server's public IP.-->
    <set name="public_ip">127.0.0.1</set>
    <!--Enter your game server's port.-->
    <set name="port">19567</set>
    <!--Enter your game server's rcon IP.-->
    <set name="rcon_ip">127.0.0.1</set>
    <!--Enter your game server's rcon (admin) port.-->
    <set name="rcon_port">48888</set>
    <!--Enter your rcon password.-->
    <set name="rcon_password">Mypass</set>
    <!--Timeout Value-->
    <set name="timeout">3</set>
    <!--Select on if you use Punkbuster.-->
    <set name="punkbuster">off</set>
  </settings>
  <settings name="autodoc">
    <!--Select autodoc file type you want to use.-->
    <set name="type">html</set>
    <!--If you want to exclude commands reserved for higher levels, you may enter a lower value here.-->
    <set name="maxlevel">100</set>
    <!--Select the location where you want to generate your command documentation file.-->
    <set name="destination">@conf/b3_doc.html</set>
  </settings>
  <settings name="update">
    <!--B3 checks if a new version is available at startup. Choose here what channel you want to check against.-->
    <set name="channel">stable</set>
  </settings>
  <settings name="messages">
    <!--The message that will be displayed when a player is kicked by a mod/admin.-->
    <set name="kicked_by">$clientname^7 was kicked by $adminname^7 $reason</set>
    <!--The message that will be displayed when a player is kicked by B3.-->
    <set name="kicked">$clientname^7 was kicked $reason</set>
    <!--The message that will be displayed when a player is banned by a mod/admin.-->
    <set name="banned_by">$clientname^7 was banned by $adminname^7 $reason</set>
    <!--The message that will be displayed when a player is kicked by a B3.-->
    <set name="banned">$clientname^7 was banned $reason</set>
    <!--The message that will be displayed when a player is temp banned by a mod/admin.-->
    <set name="temp_banned_by">$clientname^7 was temp banned by $adminname^7 for $banduration^7 $reason</set>
    <!--The message that will be displayed when a player is temp banned by B3.-->
    <set name="temp_banned">$clientname^7 was temp banned for $banduration^7 $reason</set>
    <!--The message that will be displayed when a player is unbanned by a mod/admin.-->
    <set name="unbanned_by">$clientname^7 was un-banned by $adminname^7 $reason</set>
    <!--The message that will be displayed when a player is unbanned by B3-->
    <set name="unbanned">$clientname^7 was un-banned $reason</set>
  </settings>
  <settings name="plugins">
    <!--Enter here the path to the config folder for your external plugins.-->
    <set name="external_dir">@b3/extplugins</set>
  </settings>
  <plugins>
    <!--This plugin provides main B3 functionalities.-->
    <plugin name="admin" config="@conf/plugin_admin.xml"/>
    <!--Notifies players with high ping-->
    <plugin name="pingwatch" config="@conf/plugin_pingwatch.xml"/>
    <!--Manages your server messages-->
    <plugin name="adv" config="@conf/plugin_adv.xml"/>
    <!--Writes server status to an xml file. This can be used by 3rd party tools to monitor server status.-->
    <plugin name="status" config="@conf/plugin_status.xml"/>
    <!--Welcomes players-->
    <plugin name="welcome" config="@conf/plugin_welcome.xml"/>
  </plugins>
</configuration>


Error

Code: Select all

140302 18:22:37   INFO   "STDOUT 'Error: [Errno 10061] Hedef makine etkin olarak reddetti\\xf0inden ba\\xf0lant\\xfd kurulamad'"
140302 18:22:37   INFO   "STDOUT '\\n'"
140302 18:22:37   ERROR   "STDERR 'Traceback (most recent call last):\\n'"
140302 18:22:37   ERROR   'STDERR \'  File "b3\\\\__init__.pyo", line 182, in start\\n\''
140302 18:22:37   ERROR   'STDERR \'  File "b3\\\\parser.pyo", line 517, in start\\n\''
140302 18:22:37   ERROR   'STDERR \'  File "b3\\\\parsers\\\\bfbc2.pyo", line 264, in startup\\n\''
140302 18:22:37   ERROR   'STDERR \'  File "b3\\\\parsers\\\\frostbite\\\\abstractParser.pyo", line 225, in startup\\n\''
140302 18:22:37   ERROR   'STDERR \'  File "b3\\\\parsers\\\\bfbc2.pyo", line 321, in checkVersion\\n\''
140302 18:22:37   ERROR   'STDERR \'  File "b3\\\\parsers\\\\frostbite\\\\rcon.pyo", line 78, in write\\n\''
140302 18:22:37   ERROR   'STDERR \'  File "b3\\\\parsers\\\\frostbite\\\\rcon.pyo", line 68, in _connect\\n\''
140302 18:22:37   ERROR   'STDERR \'  File "b3\\\\parsers\\\\frostbite\\\\connection.pyo", line 90, in __init__\\n\''
140302 18:22:37   ERROR   'STDERR \'  File "b3\\\\parsers\\\\frostbite\\\\connection.pyo", line 105, in _connect\\n\''
140302 18:22:37   ERROR   "STDERR 'FrostbiteException: [Errno 10061] Hedef makine etkin olarak reddetti\\xf0inden ba\\xf0lant\\xfd kurulamad\\n'"
140302 18:22:37   DEBUG   'closing FrostbiteConnection socket'
140302 18:22:40   BOT       'Shutting down...'
140302 18:22:40   INFO   'StatusPlugin: B3 stop/exit.. updating status'
140302 18:22:40   DEBUG   'StatusPlugin: Writing XML status to C:\\Users\\Can\\status.xml'
140302 18:22:40   VERBOSE   'AdvPlugin: Warning: No handle func for AdvPlugin'
140302 18:22:40   BOT       'Shutting down database connections...'


I followed http://forums.emulatornexus.com/viewtopic.php?f=10&t=6104 this tutorial, still no luck!

User avatar
MAGIC
Posts:1303
Joined:Wed Dec 26, 2012 4:44 am
Location:Germany/Frankfurt
Contact: Website Twitter

Re: B3 & Server Connection problem

Sun Mar 02, 2014 7:42 pm

Try to use 127.0.0.1 instead of localhost in the database information.
Also try to use your local IP from your PC in the RCon/publich IP information. Can you please post your whole b3.log next time?
Image

0perat0r
Posts:6
Joined:Sat Feb 09, 2013 1:48 pm

Re: B3 & Server Connection problem

Mon Mar 03, 2014 9:51 am

MAGIC wrote:Try to use 127.0.0.1 instead of localhost in the database information.
Also try to use your local IP from your PC in the RCon/publich IP information. Can you please post your whole b3.log next time?


Thanks for suggestion. Database connection was fine. I finally resolved the problem by changing my router to the old one. Somehow port forwarding got an issue with the new router.

Mods can lock or remove the topic.
Cheers!

User avatar
mizudg
Posts:1620
Joined:Mon Apr 01, 2013 5:09 pm
Location:Bulgaria
Contact: Facebook Skype YouTube

Re: B3 & Server Connection problem

Mon Mar 03, 2014 10:39 am

Best lock it and mark as solved in your title since others might ask the same thing and they'd have to open a new topic for it.
Image

Return to “Help and Support”

Who is online

Users browsing this forum: No registered users and 23 guests