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

[Windows] Can't login with global ip

Bladefist

New Member
Joined
Oct 26, 2010
Messages
65
Reaction score
0
Location
Carlin
Hey!

I have portforwarded 7171 and still I can't login (or others) into my OTserver by using my global ip which I found at Whatismyip.com

Heres my config.php is it something wrong here or do you know something else I could try? :(

PHP:
---------------------------- OTServ configuration ------------------------------

-- datadir
datadir = "data/"

-- sets what map to load
map = "data/world/Norge.otbm"

-- OTBM for binary, SQL for SQL map, XML for OTX maps
mapkind = "OTBM"

-- SQL for acc/player info from SQL, XML for acc/player info from XML
sourcedata = "XML"

-- the message the player gets when he logs in
loginmsg = "Welcome to Bladefist! We have 5 cities, over 200 houses! Own Map! Training arena in every city! Many demon and warlock spawns! Many quest too! Try out o exori, pally hur, love, fart, exevo heal and utani mega hur!"

-- the port otserv listens on
port = "7171"

-- name of our server
servername = "Bladefist"

-- name of the owner of our server
ownername = "GM Blade"

-- email of the owner of our server
owneremail = ""

-- the url for more server info
url = "80.212.190.111"

-- the location of the server
location = "Sweden"

-- the ip the server should redirect too
ip = "80.212.190.111"

-- The messagebox you sometimes get before you choose characters
motd = "Welcome! Please note the server is custom so exploring is a must."
motdnum="0"

-- use md5 passwords for accounts, yes/no
md5passwords = "no"

-- world type. options: pvp, no-pvp, pvp-enforced
worldtype = "pvp"

-- max number of players allowed
maxplayers = "200"

-- exhausted time in ms (1000 = 1sec)
exhausted = 1000

-- exhaustion time for healing spells (1000 = 1sec)
exhaustedheal = 100

-- how many ms to add if the player is already exhausted and tries to cast a spell (1000 = 1sec)
exhaustedadd = 100

-- how long does the player has to stay out of fight to get pz unlocked in ms (1000 = 1sec)
pzlocked = 7*1000

-- allow multiple logins of the same char
allowclones = 0

-- vocation names
vocations = {"a sorcerer", "a druid", "a paladin", "a knight"}
promoted_vocations = {"a master sorcerer", "an elder druid", "a royal paladin", "an elite knight"}


--- SQL part
sql_host = ""
sql_user = "root"
sql_pass = ""
sql_db   = ""


--- SQL MAP part
sqlmap = "test_map"
map_host = "localhost"
map_user = "root"
map_pass = ""
map_db   = ""

------------------------- YurOTS basic configuration ---------------------------

-- name of your world (seen on the character list when logging in)
worldname = "Bladefist"

-- how often do server saves it's state (0 = off, 5 = 5min, 60 = hour)
autosave = 2

-- do you want to enable cap system? (yes/no)
capsystem = "no"

-- do you want players to learn spells before they can use them? (yes/no)
learnspells = "no"

-- do you want to give premium account to all players? (yes/no)
freepremmy = "yes"

-- do you want premium players to wait in queue as others? (yes/no)
queuepremmy = "yes"

-- how much % of {exp, mana, skill, eq, bp} do you lose when dying
diepercent = {"3", "3", "3", "3", "100"}

-- how many summons player can have
maxsummons = 0

-- do you want to give summons for all vocations? (yes/no)
summonsallvoc = "no"

-- chance of losing a spear when shot (0 - none lost, 100000 - all lost)
spearlosechance = 0

-- anti-afk - maximum idle time to kick player (1 = 1min)
kicktime = 15

-- maximum number of items player can keep in his/her depot
maxdepotitems = 1000

-- maximum number of items on a house tile (including those in containers)
maxhousetileitems = 1000

-- how much death entries are saved in players file (old are deleted)
maxdeathentries = 10

-- mana consumend by {snakebite, moonlight, volcanic, quagmire, tempest} rod
rodmana = {"2", "3", "5", "8", "13"}

-- mana consumed by wand of {vortex, dragonbreath, plague, cosmic energy, inferno}
wandmana = {"2", "3", "5", "8", "13"}

-- shooting range of {snakebite, moonlight, volcanic, quagmire, tempest} rod
rodrange = {"4", "3", "2", "2", "3"}

-- shooting range of  wand of {vortex, dragonbreath, plague, cosmic energy, inferno}
wandrange = {"4", "3", "2", "2", "3"}

-- damage of burst arrows blast
-- default is from (1*lvl+5*mlvl)*0.24 to (1*lvl+5*mlvl)*0.55
burstarrowdmg = {"2.0", "5.0", "0.24", "0.55"}

--------------------------- Multipliers and gains ------------------------------

-- experience multiplier (how much faster you got exp from monsters)
expmul = 12

-- experience multiplier for pvp-enforced (how much faster you got exp from players)
expmulpvp = 2

-- skill multipliers: 1 - rl tibia, 10 - ten times faster etc. {no-voc, sorcerer, druid, paladin, knight}
weaponmul = {"1", "1", "1", "1", "40"}
distmul = {"1", "1", "1", "40", "1"}
shieldmul = {"1", "1", "1", "40", "40"}
manamul = {"1", "7", "7", "7", "7"}

-- how much points of life,mana,cap do you get when advancing {no-voc, sorcerer, druid, paladin, knight}
capgain = {"7", "7", "7", "13", "18"}
managain = {"5", "30", "30", "15", "5"}
hpgain = {"5", "15", "15", "20", "25"}

-- how much faster do you recovery life,mana after eating food (1 - rl tibia)
healthtickmul = 10
manatickmul = 100

-------------------------------- Skull system ----------------------------------

-- how many unjustified kills to get a red skull
redunjust = 6

-- how many unjustified kills to get banned
banunjust = 10

-- how long do you have white skull after attacking player (1 = 1min)
hittime = 2

-- how long do you have white skull after killing player (1 = 1min)
whitetime = 7

-- how long do you have red skull (1 = 1min)
redtime = 6*30

-- how long do you have to wait to lose 1 unjustified kill (1 = 1min)
fragtime = 60

-------------------------------Own settings-----------------------------------

-- house price for 1 sqm
priceforsqm = 5000

-- max houses for player
maxhouses = 1

------------------------------ GM access rights --------------------------------

-- access to walk into houses and open house doors
accesshouse = 4

-- access to login without waiting in the queue or when server is closed
accessenter = 1

-- access to ignore damage, exhaustion, cap limit and be ignored by monsters
accessprotect = 2

-- access to broadcast messages and talk in colors (#c blabla - in public channels)
accesstalk = 1

-- access to move distant items from/to distant locations
accessremote = 4

-- access to see id and position of the item you are looking at
accesslook = 4

I running XML as readable and client 7.6.

Please help me :)
 
With some routers, you can't use your global IP to reach your server, but only 127.0.0.1, localhost or the router's IP.
Yeah, do what WTF.Error said just in case you've got one of those routers.
 
Thanks for the link and replys, now it shows that port 7171 is open, but port 80 is closed. This was oppositt yesterday before I resetted the ruter, (which it for some reason did by itself). Anyways I have all 7172, 7171 and 80 open and the portforward program says it too. Although VAPus - Canihost says only 7171 is open ( And I got port 7170-7173 open) so it should atleast say 7171 and 7172 is open?

I have tested and everyone plus me can login with global ip, but can't enter the website on port 80.. Any ides why my port doesen't work or what blocking it? And why does PFPortchecker say all is up when the site don't work? ;S
 
you did't awnser the question if you use a router then you need to use your local ip in the config.lua and in the ip changer
if you use modem then you put ur global ip in config.lua and ip changer.

open Command Prompt and type ipconfig and there look you local ip and then open 7171 tcp/udp and 7172 tcp/udp that would work fine.
 
oke then loginto your router and then forward the port 7171 ip 10.0.0.5 tcp/udp and 7172 10.0.0.5 tcp/dup and in config.lua add there you local ip 10.0.0.5 like this ip = "10.0.0.5"
 
But will the server be running on my local ip? How can others connect to my server then?

How about in the HTdocs config.php?

//For online status. Do not change, unless you running on diferent port.
$cfg['server_ip'] = "LOCAL HERE TOO?";
$cfg['server_port'] = 7171;

This is correct right? in the config.lua

-- the ip the server should redirect too
ip = "10.0.0.5"
 
when outher ppl will try to connect from your global ip then your router will send them on port 7171 to the ip 10.0.0.5.

ye there to local ip or just 127.0.0.1
 
listen man all pc's who are connected to your router will need to login with your local ip
All pc's that are not connected to your router will need to connect from your global IP
and you need to open port 80 for ip 10.0.0.5 tcp/udp so ppl who are not connected to your router can still acsses your website

post here if it worked or not ;P
 
Back
Top