Jump to content
TrinityCore

Stuck at connected / infinite loop / login issues / battle.net


CFGhost
 Share

Recommended Posts

 

 

 

Hello, I'm having trouble making the server public. I managed to do it on Windows 7 about 2 years ago (MOP core) but ever since I went Windows 10 I wasn't able to make it work without using services like Hamachi. Now I'm not sure if it's actually Windows 10 that's causing the problem or if I'm just seriously missing something. I'm currently running Legion core 7.1. I am able to connect, but no one else can.

When using websites such as canyouseeme.org, port 8085 is visible but 3724 is not.

 

Ports forwarded: TCP & UDP 8085, 3724, 3306, 7878, 3443, 8081

Ports and programs enabled in Firewall, disabling Firewall entirely does not work either.

 

Auth.realmlist:

address: neprahines.no-ip.biz

localAddress = 192.168.1.66

 

bnetserver.conf:

LoginREST.Port = 8081
LoginREST.ExternalAddress=neprahines.no-ip.biz
LoginREST.LocalAddress=192.168.1.66

 

Screenshot of bnetserver:

 

Untitled-911495018912.jpg

 

Bnetserver.conf:

 

###############################################
# Trinity Core Auth Server configuration file #
###############################################
[bnetserver]

###################################################################################################
# SECTION INDEX
#
#    EXAMPLE CONFIG
#    AUTH SERVER SETTINGS
#    MYSQL SETTINGS
#    UPDATE SETTINGS
#    LOGGING SYSTEM SETTINGS
#
###################################################################################################

###################################################################################################
# EXAMPLE CONFIG
#
#    Variable
#        Description: Brief description what the variable is doing.
#        Important:   Annotation for important things about this variable.
#        Example:     "Example, i.e. if the value is a string"
#        Default:     10 - (Enabled|Comment|Variable name in case of grouped config options)
#                     0  - (Disabled|Comment|Variable name in case of grouped config options)
#
# Note to developers:
# - Copy this example to keep the formatting.
# - Line breaks should be at column 100.
###################################################################################################

###################################################################################################
# AUTH SERVER SETTINGS
#
#    LogsDir
#        Description: Logs directory setting.
#        Important:   LogsDir needs to be quoted, as the string might contain space characters.
#                     Logs directory must exists, or log file creation will be disabled.
#        Default:     "" - (Log files will be stored in the current path)

LogsDir = ""

#
#    MaxPingTime
#        Description: Time (in minutes) between database pings.
#        Default:     30

MaxPingTime = 30

#
#    BattlenetPort
#        Description: TCP port to reach the auth server for battle.net connections.
#        Default:     1119

BattlenetPort = 1119

#
#    LoginREST.Port
#        Description: TCP port to reach the REST login method.
#        Default:     8081
#
#    LoginREST.ExternalAddress
#        Description: IP address sent to clients connecting from outside the network where bnetserver runs
#                     Set it to your external IP address
#
#    LoginREST.LocalAddress
#        Description: IP address sent to clients connecting from inside the network where bnetserver runs
#                     Set it to your local IP address (common 192.168.x.x network)
#                     or leave it at default value 127.0.0.1 if connecting directly to the internet without a router
#

LoginREST.Port = 8081
LoginREST.ExternalAddress=neprahines.no-ip.biz
LoginREST.LocalAddress=192.168.1.66


#
#
#    BindIP
#        Description: Bind auth server to IP/hostname
#        Default:     "0.0.0.0" - (Bind to all IPs on the system)

BindIP = "0.0.0.0"

#
#    PidFile
#        Description: Auth server PID file.
#        Example:     "./bnetserver.pid"  - (Enabled)
#        Default:     ""                  - (Disabled)

PidFile = ""

#
#    CertificatesFile
#        Description: Certificates file.
#        Example:     "/etc/ssl/certs/bnetserver.cert.pem"
#        Default:     "./bnetserver.cert.pem"

CertificatesFile = "./bnetserver.cert.pem"

#
#    PrivateKeyFile
#        Description: Private key file.
#        Example:     "/etc/ssl/private/bnetserver.key.pem"
#        Default:     "./bnetserver.key.pem"

PrivateKeyFile = "./bnetserver.key.pem"

#
#    UseProcessors
#        Description: Processors mask for Windows and Linux based multi-processor systems.
#        Example:     A computer with 2 CPUs:
#                     1 - 1st CPU only, 2 - 2nd CPU only, 3 - 1st and 2nd CPU, because 1 | 2 is 3
#        Default:     0  - (Selected by OS)
#                     1+ - (Bit mask value of selected processors)

UseProcessors = 0

#
#    ProcessPriority
#        Description: Process priority setting for Windows and Linux based systems.
#        Details:     On Linux, a nice value of -15 is used. (requires superuser). On Windows, process is set to HIGH class.
#        Default:     0 - (Normal)
#                     1 - (High)

ProcessPriority = 0

#
#    RealmsStateUpdateDelay
#        Description: Time (in seconds) between realm list updates.
#        Default:     10
#                     0  - (Disabled)

RealmsStateUpdateDelay = 10

#
#    WrongPass.MaxCount
#        Description: Number of login attemps with wrong password before the account or IP will be
#                     banned.
#        Default:     0  - (Disabled)
#                     1+ - (Enabled)

WrongPass.MaxCount = 0

#
#    WrongPass.BanTime
#        Description: Time (in seconds) for banning account or IP for invalid login attempts.
#        Default:     600 - (10 minutes)
#                     0   - (Permanent ban)

WrongPass.BanTime = 600

#
#    WrongPass.BanType
#        Description: Ban type for invalid login attempts.
#        Default:     0 - (Ban IP)
#                     1 - (Ban Account)

WrongPass.BanType = 0

#
#    WrongPass.Logging
#        Description: Additionally log attempted wrong password logging
#        Default:     0 - (Disabled)
#                     1 - (Enabled)

WrongPass.Logging = 0

#
#    BanExpiryCheckInterval
#        Description: Time (in seconds) between checks for expired bans
#        Default:     60

BanExpiryCheckInterval = 60

#
#    SourceDirectory
#        Description: The path to your TrinityCore source directory.
#                     If the path is left empty, the built-in CMAKE_SOURCE_DIR is used.
#        Example:     "../TrinityCore"
#        Default:     ""

SourceDirectory  = ""

#
#    MySQLExecutable
#        Description: The path to your mysql cli binary.
#                     If the path is left empty, built-in path from cmake is used.
#        Example:     "C:/Program Files/MySQL/MySQL Server 5.6/bin/mysql.exe"
#                     "mysql.exe"
#                     "/usr/bin/mysql"
#        Default:     ""

MySQLExecutable = ""

#
###################################################################################################

###################################################################################################
# MYSQL SETTINGS
#
#    LoginDatabaseInfo
#        Description: Database connection settings for the realm server.
#        Example:     "hostname;port;username;password;database"
#                     ".;somenumber;username;password;database" - (Use named pipes on Windows
#                                                                 "enable-named-pipe" to [mysqld]
#                                                                 section my.ini)
#                     ".;/path/to/unix_socket;username;password;database" - (use Unix sockets on
#                                                                           Unix/Linux)
#        Default:     "127.0.0.1;3306;trinity;trinity;auth"

LoginDatabaseInfo = "127.0.0.1;3306;censored;censored;auth_legion"

#
#    LoginDatabase.WorkerThreads
#        Description: The amount of worker threads spawned to handle asynchronous (delayed) MySQL
#                     statements. Each worker thread is mirrored with its own connection to the
#                     MySQL server and their own thread on the MySQL server.
#        Default:     1

LoginDatabase.WorkerThreads = 1

#
#    LoginDatabase.SynchThreads
#        Description: The amount of MySQL connections spawned to handle.
#        Default:     1 - (LoginDatabase.SynchThreads)

LoginDatabase.SynchThreads  = 1

#
###################################################################################################

###################################################################################################
# UPDATE SETTINGS
#
#    Updates.EnableDatabases
#        Description: A mask that describes which databases shall be updated.
#
#        Following flags are available
#           DATABASE_LOGIN     = 1, // Auth database
#
#        Default:     0  - (All Disabled)
#                     1  - (All Enabled)

Updates.EnableDatabases = 0

#
#    Updates.AutoSetup
#        Description: Auto populate empty databases.
#        Default:     1 - (Enabled)
#                     0 - (Disabled)

Updates.AutoSetup   = 0

#
#    Updates.Redundancy
#        Description: Perform data redundancy checks through hashing
#                     to detect changes on sql updates and reapply it.
#        Default:     1 - (Enabled)
#                     0 - (Disabled)

Updates.Redundancy  = 1

#
#    Updates.ArchivedRedundancy
#        Description: Check hashes of archived updates (slows down startup).
#        Default:     0 - (Disabled)
#                     1 - (Enabled)

Updates.ArchivedRedundancy = 0

#
#    Updates.AllowRehash
#        Description: Inserts the current file hash in the database if it is left empty.
#                     Useful if you want to mark a file as applied but you don't know its hash.
#        Default:     1 - (Enabled)
#                     0 - (Disabled)

Updates.AllowRehash = 1

#
#    Updates.CleanDeadRefMaxCount
#        Description: Cleans dead/ orphaned references that occur if an update was removed or renamed and edited in one step.
#                     It only starts the clean up if the count of the missing updates is below or equal the Updates.CleanDeadRefMaxCount value.
#                     This way prevents erasing of the update history due to wrong source directory state (maybe wrong branch or bad revision).
#                     Disable this if you want to know if the database is in a possible "dirty state".
#        Default:     3 - (Enabled)
#                     0 - (Disabled)
#                    -1 - (Enabled - unlimited)

Updates.CleanDeadRefMaxCount = 3

#
###################################################################################################

###################################################################################################
#
#  LOGGING SYSTEM SETTINGS
#
#  Appender config values: Given a appender "name"
#    Appender.name
#        Description: Defines 'where to log'
#        Format:      Type,LogLevel,Flags,optional1,optional2,optional3
#
#                     Type
#                         0 - (None)
#                         1 - (Console)
#                         2 - (File)
#                         3 - (DB)
#
#                     LogLevel
#                         0 - (Disabled)
#                         1 - (Trace)
#                         2 - (Debug)
#                         3 - (Info)
#                         4 - (Warn)
#                         5 - (Error)
#                         6 - (Fatal)
#
#                     Flags:
#                         0 - None
#                         1 - Prefix Timestamp to the text
#                         2 - Prefix Log Level to the text
#                         4 - Prefix Log Filter type to the text
#                         8 - Append timestamp to the log file name. Format: YYYY-MM-DD_HH-MM-SS (Only used with Type = 2)
#                        16 - Make a backup of existing file before overwrite (Only used with Mode = w)
#
#                     Colors (read as optional1 if Type = Console)
#                         Format: "fatal error warn info debug trace"
#                         0 - BLACK
#                         1 - RED
#                         2 - GREEN
#                         3 - BROWN
#                         4 - BLUE
#                         5 - MAGENTA
#                         6 - CYAN
#                         7 - GREY
#                         8 - YELLOW
#                         9 - LRED
#                        10 - LGREEN
#                        11 - LBLUE
#                        12 - LMAGENTA
#                        13 - LCYAN
#                        14 - WHITE
#                         Example: "13 11 9 5 3 1"
#
#                     File: Name of the file (read as optional1 if Type = File)
#                         Allows to use one "%s" to create dynamic files
#
#                     Mode: Mode to open the file (read as optional2 if Type = File)
#                          a - (Append)
#                          w - (Overwrite)
#
#                     MaxFileSize: Maximum file size of the log file before creating a new log file
#                     (read as optional3 if Type = File)
#                         Size is measured in bytes expressed in a 64-bit unsigned integer.
#                         Maximum value is 4294967295 (4 gb). Leave blank for no limit.
#                         NOTE: Does not work with dynamic filenames.
#                         Example:  536870912 (512 mb)
#

Appender.Console=1,2,0
Appender.Bnet=2,2,0,Bnet.log,w

#  Logger config values: Given a logger "name"
#    Logger.name
#        Description: Defines 'What to log'
#        Format:      LogLevel,AppenderList
#
#                     LogLevel
#                         0 - (Disabled)
#                         1 - (Trace)
#                         2 - (Debug)
#                         3 - (Info)
#                         4 - (Warn)
#                         5 - (Error)
#                         6 - (Fatal)
#
#                     AppenderList: List of appenders linked to logger
#                     (Using spaces as separator).
#

Logger.root=3,Console Bnet
Logger.realmlist=3,Console Bnet
Logger.session=3,Console Bnet
Logger.session.packets=3,Console Bnet
Logger.sql.updates=3,Console Bnet

#
###################################################################################################
 

Link to comment
Share on other sites

I've only done this on 3.3.5, but i don't see why you need external and internal addresses defined. You would only need the  neprahines.no-ip.biz defined in you Auth/Relmlist table and all connections (internal and external) should point to that as the login server. When you try to connect internally, it should hit the external port of your router with the external IP 92.37.70.65 and be re-directed to your server from the port forward. Make sure your ISP external address hasn't changed if its dynamic.

 

Link to comment
Share on other sites

1 minute ago, skipperheartbeat said:

I've only done this on 3.3.5, but i don't see why you need external and internal addresses defined. You would only need the  neprahines.no-ip.biz defined in you Auth/Relmlist table and all connections (internal and external) should point to that as the login server. When you try to connect internally, it should hit the external port of your router with the external IP 92.37.70.65 and be re-directed to your server from the port forward. Make sure your ISP external address hasn't changed if its dynamic.

 

 

Yes, I've tried your way as well, but this did not work either. The IP has also not changed.

Link to comment
Share on other sites

1 minute ago, skipperheartbeat said:

Have you cleared the cache and wtf folders? In the realmlist table, do you have the DNS or IP address?

 

 

I'm able to connect, but others can't. The realmlist table is set to the DNS for remote and my local address for localAddress as written above.

Link to comment
Share on other sites

we don't support wow 7.1, but anyway, 6.x and higher needs port  8086 open too. you don't need to open port  3306  to internet at all. and if you don't run mop or lower server you don't need port 3724.

The only needed ports for 6. and > are:
1119, 8081, 8085 and 8086.

Link to comment
Share on other sites

  • 2 weeks later...

Hello all!
So this is few days I wanted to try the TrinityCore under legion (because I really like the one under wotlk) so I do every steps, but when I try to connect with client patched, in another folder, it put me cache/data/logs but in the logging I stay on "connection" I set portal 127.0.0.1 (I'm under Windows 10)

 

So I tried to put in on a vps under linux to try, but even setting the portal with VPS IP it stay on connection, so I would like how to connect because I really don't see why it don't work (I open port 8087, 8088 for the world server).
Thanks to read because I would really try what the TC Legion :)
 
(also thanks for all the work you do)

wow legion vps.png

wow vps world.png

Edited by labaouici
This message explain in a better way the problem I encounter
Link to comment
Share on other sites

I've had a stable 3.3.5a server up for a while, so I decided to try master branch tonight.  Everything compiled/patched fine until I tried to connect from the client.

The client is throwing blz51901002 and I'm seeing this in the logs:

6/1 22:59:40.195  [IBN_Login] Front disconnected | connectionId=1 | result=( | code=ERROR_NETWORK_MODULE_CONNECTION_REFUSED (1002) | localizedMessage= | debugMessage=)
6/1 22:59:40.195  [GlueLogin] Fatal error while logging in | result=( | code=ERROR_NETWORK_MODULE_CONNECTION_REFUSED (1002) | localizedMessage= | debugMessage=)

This is after I added the tc_bundle.txt to the wow directory.  Before that it just hangs at Connecting.

If it helps, this isn't an attempt to upgrade 3.3.5, I'm using fresh databases, and realmlist under auth is identical to my 3.3.5 setup (minus the build number).

Link to comment
Share on other sites

You need to set the IP in the config file bnetserver.conf this is the reason for the disconnects when using the master branch because of new settings for LoginRest not to mention the new port for master branch port 1119. The ports to be open are 8085, 8086, 1119, 8081. The things to change in the config file are, because I take it you are trying to connect outside where the server is, which even if you are not this should be set to the correct IP's. When you open the ports that I mention you will ensure that the ports are now open for 3.3.5 and for 7.2.0 this way you can connect to either one.

LoginREST.ExternalAddress=xxx.xxx.xxx.xxx
LoginREST.LocalAddress=xxx.xxx.xxx.xxx

  • Upvote 1
Link to comment
Share on other sites

Thanks for the reply codeman!

I did set both those values during setup, but you gave me a clue that fixed it! 

I'm using an external IP in my Config.wtf to connect to an TC server that's internal to my network.   There's no firewalls on my windows client or my TC linux server, but my router does a NAT bounce when using the external IP.  What I forgot was to open the new ports (1119, 8081 and 8086) in my routers forwarding.

I just connected now, and I'm able to connect to the realm and create characters.  Thanks again, you guys are awesome!

Link to comment
Share on other sites

On 5/30/2017 at 0:51 PM, labaouici said:

So I tried to put in on a vps under linux to try, but even setting the portal with VPS IP it stay on connection, so I would like how to connect because I really don't see why it don't work (I open port 8087, 8088 for the world server).
Thanks to read because I would really try what the TC Legion

You said you open ports 8087, 8088 did you change your ports for some reason to a different number from what it was set to and why did you change them do you have more than one server is that why.  If you are running just one server then your ports should be 8085, 8086 for world server then for login you should have open ports 1119, and 8081 open for the login server.

Now did you set your bnetserver.conf file where LoginRest has your external address and local address setup correctly because this is the most common problems when trying to connect to the server outside where the server is actually on.  Another common problem I have been seeing people doing is they are setting the external address to there localhost IP address and the localhost address being set to localhost when the realm is set to there local router address.

Link to comment
Share on other sites

4 minutes ago, codeman8214 said:

You said you open ports 8087, 8088 did you change your ports for some reason to a different number from what it was set to and why did you change them do you have more than one server is that why.  If you are running just one server then your ports should be 8085, 8086 for world server then for login you should have open ports 1119, and 8081 open for the login server.

Now did you set your bnetserver.conf file where LoginRest has your external address and local address setup correctly because this is the most common problems when trying to connect to the server outside where the server is actually on.  Another common problem I have been seeing people doing is they are setting the external address to there localhost IP address and the localhost address being set to localhost when the realm is set to there local router address.

 

LoginREST.ExternalAddress=VPS-IP
LoginREST.LocalAddress=127.0.0.1 <= (is that could be that one who is wrong?)

 

 

and I open 1119 and 8081, but I put 8087 and 8088 because I already use to make a wotlk sometimes

Link to comment
Share on other sites

I am wondering something what are you actually getting an error or realm looping what is your error message if you are getting an error? Are you getting disconnected error message when you try to connect or are you even getting disconnected let me know and is it realm looping or do you even see the realm list?

Link to comment
Share on other sites

Wait are you saying when you hit connect after entering your information in all you get is connecting, you don't get any kind of error it just sits on connecting all the time it has to give something back after sitting there for a bit even on connecting. Are you even waiting long enough to get something back even after sitting on connecting for a bit because it has to timeout after 1 minute.

Link to comment
Share on other sites

Okay then if that is the case then I can say for sure it is not seeing the server at all, which also tells me that it is not even seeing the login server or world server to even try to connect so now my questions lead me to have you even used the connection patcher to patch the client and if so are you sure you are running the right one, if you did patch the client are you running the patch client and not making the common mistake of running the normal client that is not patched because this is common when getting just the connected message and nothing else.

If you are running the right client my next thing is are you sure you are able to connect to other things like MySQL to this VPS IP because something is not seeing the server at all because this is a common problem with the just connecting message. One thing for sure it is not seeing the server because normally if it sees the server you will either get the information you entered is either not correct, disconnected message, or the server is not secured for a connection.

Link to comment
Share on other sites

I'm using the correct patch yes, the only way to make it work for me is to put everything in the same folder (every files including the maps etc, even in local if I put the patcher anywhere else it will just create data/cache/log, but stay on connection)

 

" If you are running the right client my next thing is are you sure you are able to connect to other things like MySQL to this VPS IP " I don't know, I just set the portal to the IP and try to connect

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...