• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • If you're using Gesior 2012 or MyAAC, please review this thread for information about a serious security vulnerability and a fix.

TFS 1.X+ Cannot login to the game, but character list works

vedvid

New Member
Joined
Jan 8, 2022
Messages
2
Reaction score
0
Hello,

I'm trying to host small server for me and a couple of friends, but I run into issues.

Initially I followed OTS guide, but with current versions of software used in the guide:
  • TFS 1.4.1
  • client 1098
  • OTLand IP Changer (latest version in topic linked by the guide)
  • UniServer Zero XIV 14.0.3
  • Znote AAC v2
At the end of the guide I had:
  • installed TFS, UniServer, etc. (config.lua had ip set to 127.0.0.1)
  • redirected ports 7171, 7172, 80 (both TCP and UDT) – confirmed to be open by three different sites
  • modifed hosts file (127.0.0.1 <my.global.ip.address>
  • static private IP address
I tested it locally by logging into Tibia via IP Changer with 127.0.0.1 IP address set.
Unfortunately, other players could not join. They could log into Tibia and see the character list, but were unable to actually join the game – after long-ish delay, there was Error: connection refused (10061) shown.

So, I started reading forum and was trying to apply various solutions, but to no avail.
  • unlocked ports 80, 7171, 7172 in firewall (both TCP and UTD, both Inbound Outbound rules)
  • enabled DMZ for my private IP address
  • set ip to my global IP address in config.lua
Now I can't enter the world from my own machineFrom my own machine. No matter if I use global IP, or 127.0.0.1 in IP Changer, I'm getting Error: Disconnected from server. (200002).

Right now I'm out of ideas. What else can I check?

Best regards,
Ved

edit: typos
 
Last edited:
OP
OP
vedvid

vedvid

New Member
Joined
Jan 8, 2022
Messages
2
Reaction score
0
I had some time after work so I experimented a bit with forwarding rules. I read also a lot about port forwarding earlier, but most of the info I found in the Internet was quite shallow and I'm still not sure how exactly it works.


I tried to set the server with DMS enabled, with internal ports specified to 7171 and 7172. I was changing IP address in the config.lua file from local IP to global IP and back, and I was modifying external ports from empty field, to 0, 0, to 7171 and 7172. (Just after finishing OTLand guide, I had local IP address in config.lua, and empty external port fields and external port source.


I can confirm that ZNote AAC was reachable.


Some observations:

as a host, I cannot log into the game (error 200002) when I use my global IP address in config lua (exception: when "external ports" and "external ports source" fields are empty)
I don't see the pattern regarding the errors when guest try to connect to the game server: it's either 200002 or 10061
it doesn't matter if I as a host enter server using local IP or global IP in IP changer: either the config / router config works for both, or for neither.

Any help would be appreciated.


If you are interested, the full table with the results of the tests carried out so far is below in the spoiler.


Code:
bindOnlyGlobalAddress: always false
config.lua msql ip: always "localhost"
config.lua port: as port 7171 seemed to work OK, I tested only against 7172.
    I also redirected 8900 to 7172 and tried using 8900 in config.lua.
"null" in ports-related columns means that the field was left empty
dmz: always enabled
ports, tfs, uniserver, Tibia: added firewall rule for all of them, both inbounds and outbounds, and both TCP and UDP for ports
hosts file has added 127.0.0.1 my.global.ip.address

| config.lua ip        | ip log host          | ip log guest         | config.lua port   | ports internal tcp/upd | ports external | ports ext src | ports web test   | result host | result guest |
|======================|======================|======================|===================|========================|================|===============|==================|=============|==============|
| 127.0.0.1            | 127.0.0.1            | my.global.ip.address | 7172              | 7171, 7172             | null, null     | null, null    | OK               | OK          | 200002       |
| 127.0.0.1            | my.global.ip.address | my.global.ip.address | 7172              | 7171, 7172             | null, null     | null, null    | OK               | OK          | 200002       |
| my.global.ip.address | 127.0.0.1            | my.global.ip.address | 7172              | 7171, 7172             | null, null     | null, null    | OK               | OK          | 200002       |
| my.global.ip.address | my.global.ip.address | my.global.ip.address | 7172              | 7171, 7172             | null, null     | null, null    | OK               | OK          | 200002       |
| 127.0.0.1            | 127.0.0.1            | my.global.ip.address | 8900 (redirected) | 7171, 7172             | null, null     | null, null    | 8900 OK 7172 NOK | OK          | 10061        |
| 127.0.0.1            | my.global.ip.address | my.global.ip.address | 8900 (redirected) | 7171, 7172             | null, null     | null, null    | 8900 OK 7172 NOK | OK          | 10061        |
| my.global.ip.address | 127.0.0.1            | my.global.ip.address | 8900 (redirected) | 7171, 7172             | null, null     | null, null    | 8900 OK 7172 NOK | 200002      | 200002       |
| my.global.ip.address | my.global.ip.address | my.global.ip.address | 8900 (redirected) | 7171, 7172             | null, null     | null, null    | 8900 OK 7172 NOK | 200002      | 200002       |
|----------------------|----------------------|----------------------|-------------------|------------------------|----------------|---------------|------------------|-------------|--------------|
| 127.0.0.1            | 127.0.0.1            | my.global.ip.address | 7172              | 7171, 7172             | 0, 0           | null, null    | OK               | OK          | 10061        |
| 127.0.0.1            | my.global.ip.address | my.global.ip.address | 7172              | 7171, 7172             | 0, 0           | null, null    | OK               | OK          | 10061        |
| my.global.ip.address | 127.0.0.1            | my.global.ip.address | 7172              | 7171, 7172             | 0, 0           | null, null    | OK               | 200002      | 200002       |
| my.global.ip.address | my.global.ip.address | my.global.ip.address | 7172              | 7171, 7172             | 0, 0           | null, null    | OK               | 200002      | 200002       |
| 127.0.0.1            | 127.0.0.1            | my.global.ip.address | 8900 (redirected) | 7171, 7172             | 0, 0           | null, null    | 8900 OK 7172 OK  | OK          | 10061        |
| 127.0.0.1            | my.global.ip.address | my.global.ip.address | 8900 (redirected) | 7171, 7172             | 0, 0           | null, null    | 8900 OK 7172 OK  | OK          | 10061        |
| my.global.ip.address | 127.0.0.1            | my.global.ip.address | 8900 (redirected) | 7171, 7172             | 0, 0           | null, null    | 8900 OK 7172 OK  | 200002      | 200002       |
| my.global.ip.address | my.global.ip.address | my.global.ip.address | 8900 (redirected) | 7171, 7172             | 0, 0           | null, null    | 8900 OK 7172 OK  | 200002      | 200002       |
|----------------------|----------------------|----------------------|-------------------|------------------------|----------------|---------------|------------------|-------------|--------------|
| 127.0.0.1            | 127.0.0.1            | my.global.ip.address | 7172              | 7171, 7172             | 7171, 7172     | null, null    | OK               | OK          | 10061        |
| 127.0.0.1            | my.global.ip.address | my.global.ip.address | 7172              | 7171, 7172             | 7171, 7172     | null, null    | OK               | OK          | 10061        |
| my.global.ip.address | 127.0.0.1            | my.global.ip.address | 7172              | 7171, 7172             | 7171, 7172     | null, null    | OK               | 200002      | 10061        |
| my.global.ip.address | my.global.ip.address | my.global.ip.address | 7172              | 7171, 7172             | 7171, 7172     | null, null    | OK               | 200002      | 10061        |
| 127.0.0.1            | 127.0.0.1            | my.global.ip.address | 8900 (redirected) | 7171, 7172             | 7171, 7172     | null, null    | 8900 OK 7172 OK  | OK          | 10061        |
| 127.0.0.1            | my.global.ip.address | my.global.ip.address | 8900 (redirected) | 7171, 7172             | 7171, 7172     | null, null    | 8900 OK 7172 OK  | OK          | 10061        |
| my.global.ip.address | 127.0.0.1            | my.global.ip.address | 8900 (redirected) | 7171, 7172             | 7171, 7172     | null, null    | 8900 OK 7172 OK  | 200002      | 200002       |
| my.global.ip.address | my.global.ip.address | my.global.ip.address | 8900 (redirected) | 7171, 7172             | 7171, 7172     | null, null    | 8900 OK 7172 OK  | 200002      | 200002       |
 
Top