• 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 making server public

jimmydunphy

New Member
Joined
Aug 9, 2007
Messages
68
Reaction score
3
Location
Nova Scotia Canada
Hi all :) I would love some help to make my server public so my friends and I can mess around with the server and learn more. So far I've got tfs 1.2 engine with a rl map and the Gesior webpage up and running. I did take out my offline training because it was bugging the server and not allowing logins.

I have forwarded my ports in my router, ports 80,7171,7172,3306 and 443 are all forwarded to TCP and 3306 and 443 are forwarded to TCP and UDP.

I have tested the webpage and made accounts and they all work fine. I have also created a no-ip domain and then entered my global IP into my config.lua which now look like this :
Code:
-- Combat settings
-- NOTE: valid values for worldType are: "pvp", "no-pvp" and "pvp-enforced"
worldType = "pvp"
hotkeyAimbotEnabled = true
protectionLevel = 1
killsToRedSkull = 3
killsToBlackSkull = 6
pzLocked = 60000
removeChargesFromRunes = true
timeToDecreaseFrags = 24 * 60 * 60 * 1000
whiteSkullTime = 15 * 60 * 1000
stairJumpExhaustion = 2000
experienceByKillingPlayers = false
expFromPlayersLevelRange = 75

-- Connection Config
-- NOTE: maxPlayers set to 0 means no limit
ip = "myglobalip"
bindOnlyGlobalAddress = false
loginProtocolPort = 7171
gameProtocolPort = 7172
statusProtocolPort = 7171
maxPlayers = 0
motd = "Welcome to The Forgotten Server!"
onePlayerOnlinePerAccount = true
allowClones = false
serverName = "otserv"
statusTimeout = 5000
replaceKickOnLogin = true
maxPacketsPerSecond = 25
passwordType = "sha1"

-- 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 = "map"
mapAuthor = "Komic"

-- Market
marketOfferDuration = 30 * 24 * 60 * 60
premiumToCreateMarketOffer = true
checkExpiredMarketOffersEachMinutes = 60
maxMarketOffersAtATimePerPlayer = 100

-- MySQL
mysqlHost = "127.0.0.1"
mysqlUser = "otservs"
mysqlPass = "password"
mysqlDatabase = "otservs"
mysqlPort = 3306
mysqlSock = ""

-- Misc.
allowChangeOutfit = true
freePremium = false
kickIdlePlayerAfterMinutes = 15
maxMessageBuffer = 4
emoteSpells = false
classicEquipmentSlots = false

-- 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 = true

-- Scripts
warnUnsafeScripts = true
convertUnsafeScripts = true

-- Startup
-- NOTE: defaultPriority only works on Windows and sets process
-- priority, valid values are: "normal", "above-normal", "high"
defaultPriority = "high"
startupDatabaseOptimization = false

-- Status server information
ownerName = ""
ownerEmail = ""
url = "https://otland.net/"
location = "Sweden"


I can access this server by using a static IP address or localhost. My friends cannot access it at all and if I keep it as my config is now with my global address I wont be able to use it either. I've also tried Znote and that didnt work either.

Please help me before I pull my hair out, I am beyond frustrated. I do have team viewer.

Thank you!!!
 
Last edited by a moderator:
IP: 127.0.0.1? you have to put your real IP. www.whatismyip.com
If you put that IP in the config and you can't log in, just use your IP in the ip changer that is shown on cmd/ipconfig (normally it starts with 192), but your friends will still log in with the global.

Greetings!!!!111
 
Hello friend and thank you so much for the response! Here's where I'm at now! I've added my global ip into the configlua, and the website seems to work (my friends can connect to my website using my domain hatsot.no-ip.org) but the website still shows server status offline, they can make accounts and even log into the server, but I cannot log in at all (I have tried using my ip4v address from my cmd, i've also tried 127.0.0.1) I can load the character list but I cannot connect to game work, I've now opened ports 7171 and 7172 for both TCP and UDP but still I cannot log in and still my website says the server status is offline, although they can connect... Hm :/
 
I have fixed my website error (Always said status offline) and its now working fine and showing its online with the correct amount of players.
I still cannot figure out why I can't log into my server from my ip4v address or from 127.0.0.1.. All other players can log into my server and into my website but I can only log into char list then I'm refused connection to the game world.. My ports are open both tcp and udp... anyone have the answer for this?
 
I have fixed my website error (Always said status offline) and its now working fine and showing its online with the correct amount of players.
I still cannot figure out why I can't log into my server from my ip4v address or from 127.0.0.1.. All other players can log into my server and into my website but I can only log into char list then I'm refused connection to the game world.. My ports are open both tcp and udp... anyone have the answer for this?
https://otland.net/threads/i-cant-login-to-my-own-server-but-others-can.221467/

Solution:
https://otland.net/threads/problem-with-tfs-0-1-10-37.212349/#post-2036409
 
On your computer
Make sure your LAN IP-address is persistent. It shouldn't be 192.168.0.114 one day and 192.168.0.139 the other day, if you understand what I mean. To make it persistent, simply don't use DHCP. Set a valid LAN IP yourself. Make sure that it is not within the DHCP range, for example: If your router is automatically assign IPs to new computers on the following range: 192.168.0.101 - 192.168.0.200, then you should pick something outside of that range, like 192.168.0.210.

On your router
Reconfigure your router to forward from the persistent LAN IP that you have chosen.
Don't forward 3306, nobody needs to access you MySQL server but you, your website and theforgottenserver.exe!!!!! Only forward 7171, 7172, 80 and 443 (if you are using SSL).

In TFS
Go to http://whatismyip.com/
Copy that IP, that is your global IP. Put it in config.lua.
 
Thank you all for your fast and great reply ! It seems that no matter what I do with all the help of otlands and reading threads and google nothing is helping me. I must be missing something drastic.. I've tried everything I can try and still no go.. I have a shop system setup with the help of a thread on here and I donated $1 to myself to see if everything would work and it did, I also received the points right away but the items are "not realized" in the transaction history, not sure what else I can do lol. If anyone can help me with team viewer or something that would be FANTASTIC. Please show me where I'm wrong before I pull my hair out.

Thanks again everyone! Merry Christmas!!
 
Back
Top