• 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!

Help - How to put server online and configure ZnoteAAC in linux?

MooMage

New Member
Joined
Jan 18, 2015
Messages
11
Reaction score
0
Hello!

Well, I am trying to create an Otserver in Ubuntu Server using a Virtual Machine in my computer.
All is running perfect, but I can't access the game outside my local network.
If I configure it to access locally, I can play it perfectly, but can't allow my friends to log in the game.
To do so, I installed No-ip and followed their tutorial.
I opened the doors of my router.
But I get 'Error: Connection refused. (10061)'

I need help on how proceed or what to do.
Can someone help me?

Thanks!













 
Thanks so much, but still have problems, also tried to put my local ip in the /etc/hosts, but didn't work too.
I put my config.lua to help understant my configurations.
Is this problem possibly caused 'cause I trying to run it in a Virtual Machine (VMware)?
I also tried to setup the VM as NAT, Bridge and Host-Only, none worked :(
Locally it works! Logged using another computer connected via wifi, using my local ip in config.lua and it worked fine;


8.JPG

9.JPG


Code:
-- Combat settings
-- NOTE: valid values for worldType are: "pvp", "no-pvp" and "pvp-enforced"
worldType = "pvp"
hotkeyAimbotEnabled = "yes"
protectionLevel = 1
killsToRedSkull = 3
killsToBlackSkull = 6
pzLocked = 60000
removeChargesFromRunes = "yes"
timeToDecreaseFrags = 24 * 60 * 60 * 1000
whiteSkullTime = 15 * 60 * 1000
stairJumpExhaustion = 2000
experienceByKillingPlayers = "no"
expFromPlayersLevelRange = 75
noDamageToSameLookfeet = "no"
-- Connection Config
-- NOTE: maxPlayers set to 0 means no limit
ip = "xxxxotserver.no-ip.org"
bindOnlyGlobalAddress = "no"
loginProtocolPort = 7171
gameProtocolPort = 7172
statusProtocolPort = 7171
maxPlayers = 0
motd = "Welcome to The Forgotten Server!"
onePlayerOnlinePerAccount = "yes"
allowClones = "no"
serverName = "Forgotten"
statusTimeout = 5000
replaceKickOnLogin = "yes"
maxPacketsPerSecond = 25
-- Deaths
-- NOTE: Leave deathLosePercent as -1 if you want to use the default
-- death penalty formula. For the old formula, set it to 10. For
-- no skill/experience loss, set it to 0.
deathLosePercent = -1
-- Houses
-- NOTE: set housePriceEachSQM to -1 to disable the ingame buy house functionality
housePriceEachSQM = 1000
houseRentPeriod = "never"
-- Item Usage
timeBetweenActions = 200
timeBetweenExActions = 1000
-- Map
-- NOTE: set mapName WITHOUT .otbm at the end
mapName = "forgotten"
mapAuthor = "Komic"
-- Market
marketOfferDuration = 30 * 24 * 60 * 60
premiumToCreateMarketOffer = "yes"
checkExpiredMarketOffersEachMinutes = 60
maxMarketOffersAtATimePerPlayer = 100
-- MySQL
mysqlHost = "127.0.0.1"
mysqlUser = "root"
mysqlPass = "root"
mysqlDatabase = "forgottenserve"
mysqlPort = 3306
mysqlSock = ""
-- Misc.
allowChangeOutfit = "yes"
freePremium = "no"
kickIdlePlayerAfterMinutes = 15
maxMessageBuffer = 4
emoteSpells = "no"
classicEquipmentSlots = "no"
-- Rates
-- NOTE: rateExp is not used if you have enabled stages in data/XML/stages.xml
rateExp = 5
rateSkill = 3
rateLoot = 2
rateMagic = 3
rateSpawn = 1
-- Monsters
deSpawnRange = 2
deSpawnRadius = 50
-- Stamina
staminaSystem = "yes"
-- Scripts
warnUnsafeScripts = "no"
convertUnsafeScripts = "no"
-- Startup
-- NOTE: defaultPriority only works on Windows and sets process priority.
defaultPriority = "high"
startupDatabaseOptimization = "no"
-- Status server information
ownerName = ""
ownerEmail = ""
url = "http://otland.net/"
location = "Sweden"
 
1. VM to Bride
2. get VM local IP(address starting in 192.168.x.x or maybe 10.x.x.x)
3. Hosts line 3: "192.168.x.x server.domain.com" Replace 192.168.x.x with your local ip ofc
4. config.lua: bind only global adress "yes"
5. config.lua ip to local 192.168.x.x ip
6. ipchanger to domain

Its not the VM because that is how I used to host test servers.
 
1. Set to Bridge.
2. VM assumed local ip as '10.1.1.3' -> opened doors in the router Nat -> 7171 and 7172 to 10.1.1.3
3. Hosts line 3: '10.1.1.3 xxxxotserver.no-ip.org
4. bind only global adress "yes"
5. Config.lua ip set to "10.1.1.3"
6. Ip Changer set to "xxxxotserver.no-ip.org"

-> Connection refused... :(

If I set my ip changer to '10.1.1.3' I can access it from windows.

This is the result of a ping from the server in the VM.

10.JPG


It seems like something is blocking the access, so stopped the windows firewall and antivirus.
But uselless. :/
 
That ping is pointelss. You might as well just ping 127.0.0.1. Ping from another device. Also, in your IP changer use the domain. Also are you sure your VM was access to www?
 
Can it be my problem? How can I solve it?View attachment 28413
was about to suggest for you to check your ports, that's the only logical problem.

How to open ports:

Step One:
http://www.whatismyip.com—>> Write your ip down for future reference.

Step Two:
http://192.168.1.1/—>> There should pop up a login screen.
You can try most of the following and one of them works most of the time
Admin/Admin
Admin123/Admin123
Admin/Password
Password/Password
Admin123/Password
Admin/
/Password

Step Three:
Now that you are logged in, if yours is like mine it should show something like this
http://img55.imageshack.us/img55/3757/step15tx.png

Step Four: You should see something like, Create new port, or as mine says Add Custom Service.
http://img81.imageshack.us/img81/2530/step26up.png

Once you click it, then make sure its TCP, and port forward
Name: Tibia
Starting Port: 7171
Ending Port: 7172

Name: Apache
Starting Port: 80
Ending Port: 80

Name: MySQL
Starting Port: 3306
Ending Port: 3306

Then all you do, is launch xampp_start and goto your ip that i had you detail earlier, and put /index.php on end, EXAMPLE: if your ip was 222.555.12 you would type
http://222.555.12/index.php.


cred: @cordinator
 
HEY HEY HEY!!!
I found!
My modem has a factory defect, so can't disable firewall, cause changes don't save! LOL?
So I had to set it up as Bridge and configure it with my tp-link router. That worked!

Now I am having problems about ZnoteAAC installation on linux, I have no idea how to start....

Can someone help me?

I have already installed apache and php.
But can't set properly the ZnoteAAC at the specified locals as suggested in the site. (maybe cause it is in windows.)

I would thanks!

Found This, but can't replicate on linux :(

http://otland.net/threads/video-tut...ing-ot-server-website-and-shop-system.166818/

@dominique120 any suggestion?
 
Last edited:
@dominique120
Thanks a lot!

Noticed my friends can connect and see character list but when choose a character, they are not able to login and had connection time out...
Can it be permission in som file?
 
Back
Top