error when trying ot get alone

Play Now

forspinki

Legend
Legendary
Oct 23, 2006
3,431
115
190
Handan, China
changed all ips to my online i.p and triple checked them but still egting this error Windows socket error: The requested address is not valid in its context (10049), on API 'bind'
 

Zen2

LOMCN Veteran
Veteran
Jul 26, 2007
1,818
18
125
You dont change them all to your online ip adress. In the files you will see txt doc files telling you where to put the global ip adress when required to go online. Windows socket errors always means your useing the wrong ip adress. Well in most cases im pritty sure.
 
Upvote 0

forspinki

Legend
Legendary
Oct 23, 2006
3,431
115
190
Handan, China
so when files do i need to change to online can you give me a list like M2/!setup.txt just give me a list like that and it will be great help thanks. oh and my text file is in korean so cant read what it says :P
 
Last edited:
Upvote 0

koni

V.I.P
VIP
Mar 14, 2006
1,111
1
165
Southampton UK
on a router ? have you forwarded the ports 7000 7100 7200 to your local ip (192.168.*.*) ?

try turning unpnp on or off, can get a program to do it for you from here
http://www.fernys.co.uk/elements_page6.htm

also its worth going to:

start > run and type cmd press return

then type ipconfig and make sure the internal ip addy you have enetered in the files is the correct ip addy, and you dont change every ip addy in the files to your online ip only 2 or three of the gates need your external ip, and the rest need your internal ip either 127.0.0.1 or 192.168.*.* if your on a router.
 
Upvote 0

koni

V.I.P
VIP
Mar 14, 2006
1,111
1
165
Southampton UK
the only files that need an external ip are the following:

dbserver folder serverinfo txt file

internal ip your external ip 7200 (space inbetween each entry)

Gamegate folder config file

[GameGate]
Title=Diamond <----- change to your server name
ServerAddr=127.0.0.1
ServerPort=5000
GateAddr=servers internal ip,, usually 192.168.0.* if on a router or 127.0.0.1 if not
GatePort=7200
ShowLogLevel=10
ShowBite=0
ServerCheckTimeOut=180000
ClientSendBlockSize=500
MaxConnOfIPaddr=50
BlockMethod=0
MaxClientPacketSize=6420
NomClientPacketSize=190
MaxClientMsgCount=100
kickOverPacket=1
ClientTimeOutTime=5000

Login server folder - addrtable txt file

Diamond Diamond 127.0.0.1 your external ip your external ip:7100

(change server names to yours , change internal ip to yours)

M2server folder

runaddr txt file

your external ip

servertable txt file

; Followings have to be arrayed by server no.
;server no. connect-addr port
0 external ip 7200


and thats it mate, this will get the server online, all the other ips in the files need to be set to your internal ip, 127.0.0.1 or 192.168.*.* if on a router or left alone if they display 0.0.0.0
 
Upvote 0

forspinki

Legend
Legendary
Oct 23, 2006
3,431
115
190
Handan, China
thanks alot your a great help ill give it a try later and get back to you

EDIT: im using a routher so will i need to change all the 127.0.0.1 into 192.168.0.1 ?
 
Last edited:
Upvote 0

forspinki

Legend
Legendary
Oct 23, 2006
3,431
115
190
Handan, China
UPDATE: when i try them to 192.168.0.1 i just get socket errors on the db but when i turned them all to 127.0.0.1 i get 0 errors but just get conn closed some reason

also some of my server names are ÁúÖ®´«Ææ becuase that was default the only 1 i changed is this 1 you told me too

[GameGate]
Title=AncientLands
ServerAddr=127.0.0.1
ServerPort=5000
GateAddr=servers internal ip,, usually 192.168.0.* if on a router or 127.0.0.1 if not
GatePort=7200
ShowLogLevel=10
ShowBite=0
ServerCheckTimeOut=180000
ClientSendBlockSize=500
MaxConnOfIPaddr=50
BlockMethod=0
MaxClientPacketSize=6420
NomClientPacketSize=190
MaxClientMsgCount=100
kickOverPacket=1
ClientTimeOutTime=5000

do i need to change them all or leave ?





 
Last edited:
Upvote 0

forspinki

Legend
Legendary
Oct 23, 2006
3,431
115
190
Handan, China
ok to make it easyer im gona go post you all my teext files.


Folder DBServer:

!Addrtable:
192.168.0.2
192.168.0.2

!Serverinfo:
192.168.0.2 90.198.117.6 7200

Dbsrc config:
[Setup]
ServerName=ÁúÖ®´«Ææ
ServerAddr=192.168.0.2
ServerPort=6000
MapFile=C:\Mir2Server\Mir200\Envir\MapInfo.txt
ViewHackMsg=0
GateAddr=192.168.0.2
GatePort=5100
DynamicIPMode=0
DisableAutoGame=0
EnglishNameOnly=1
BackupClearData=1
ShowItemName=0
DBName=HeroDB

[Server]
IDSAddr=192.168.0.2
IDSPort=5600

[Backup]
BackupTime=7200000
AutoBackup=1

[DBClear]
Interval=1000
Level1=1
Level2=7
Level3=14
Day1=7
Day2=62
Day3=124
Month1=0
Month2=0
Month3=0

[DB]
dir=.\FDB\
IdDir=.\FDB\
HumDir=.\FDB\
FeeDir=.\FDB\
Backup=.\Backup\
connectDir=.\Connection\
LogDir=.\Log\
BackupDir=.\Backup\
ClearLogDir=.\ClearLog\


LoginGate:

Config:
[LoginGate]
KeepConnectTimeOut=60000
MaxConnOfIPaddr=10
BlockMethod=0
Title=ÁúÖ®´«Ææ
ServerAddr=192.168.0.2
ServerPort=5500
GateAddr=0.0.0.0
GatePort=7000
ShowLogLevel=3

LoginSrv:

!Serveraddr:
192.168.0.2

!Addrtable:
DevilSoul Title1 192.168.0.2 90.198.117.6 90.198.117.6:7100

Loginsrv config:
[Server]
DBServer=192.168.0.2
FeeServer=192.168.0.2
LogServer=192.168.0.2
GateAddr=0.0.0.0
GatePort=5500
ServerAddr=0.0.0.0
ServerPort=5600
MonAddr=0.0.0.0
MonPort=3000
DBSPort=16300
FeePort=16301
LogPort=16301
ReadyServers=0
TestServer=1
DynamicIPMode=0

[DB]
IdDir=.\IDDB\
WebLogDir=.\Share\
CountLogDir=.\CountLog\
FeedIDList=.\FeedIDList.txt
FeedIPList=.\FeedIPList.txt
[Setup]
Positions=.\Positions.ini

Rungate:

Config:
[GameGate]
Title=AncientLands
ServerAddr=192.168.0.2
ServerPort=5000
GateAddr=192.168.2
GatePort=7200
ShowLogLevel=3
ShowBite=1
ServerCheckTimeOut=180000
ClientSendBlockSize=1000
MaxConnOfIPaddr=50
BlockMethod=0
MaxClientPacketSize=7000
NomClientPacketSize=150
MaxClientMsgCount=15
kickOverPacket=1
ClientTimeOutTime=5000

Selgate:

Config:
[SelGate]
KeepConnectTimeOut=60000
Title=ÁúÖ®´«Ææ
ServerAddr=192.168.0.2
ServerPort=5100
GateAddr=0.0.0.0
GatePort=7100
ShowLogLevel=3

M2Server
:

!RunAddr:
90.198.117.6

!Servertable
; Followings have to be arrayed by server no.
;server no. connect-addr port
0 90.198.117.6 7200

!Setup
[SQL]
UseSQL=FALSE
SQLHost=192.168.0.2
SQLPort=3306
SQLUsername=mir2
SQLPassword=mir2
SQLDatabase=mir2
SQLType=mysql
[Server]
ServerIndex=0
ServerName=DevilSoul
ServerNumber=0
VentureServer=FALSE
TestServer=TRUE
TestLevel=60
TestGold=0
TestServerUserLimit=1000
ServiceMode=FALSE
NonPKServer=FALSE
ViewHackMessage=TRUE
ViewAdmissionFailure=FLASE
GateAddr=192.168.0.2
GatePort=5000
DBAddr=192.168.0.2
DBPort=6000
IDSAddr=192.168.0.2
IDSPort=5600
MsgSrvAddr=192.168.0.2
MsgSrvPort=4900
LogServerAddr=192.168.0.2
LogServerPort=10000
DiscountForNightTime=FALSE
HalfFeeStart=2
HalfFeeEnd=10
HumLimit=30
MonLimit=30
ZenLimit=5
NpcLimit=5
SocLimit=10
DecLimit=20
SendBlock=1024
CheckBlock=8000
SocCheckTimeOut=50
AvailableBlock=8000
<<<<carrys on but no more ips
 
Last edited:
Upvote 0

steve

Golden Oldie
Golden Oldie
Oct 20, 2005
1,496
142
250
in the td all ine one files or whatever its called, it tells u wat ips to change
 
Upvote 0

Neptune

Golden Oldie
Golden Oldie
Nov 19, 2003
1,473
9
175
Chester :P
on that picture u loaded up in a previous post. everythin is working fine and the server is actually online. u just need to go thru all of the .txt files and make sure that u change "ÁúÖ®´«Ææ" to ur server name (only change this)

and then in ur folder for getting onto mir, in server.ini type in ur server name and the ips ur using (try both 192.168.0.2) and 127.0.0.1 as both should connect but 127.0.0.1 will connect with as minimal lag as possable
 
Upvote 0

jasper

Golden Oldie
Golden Oldie
Sep 10, 2005
890
3
105
what files are they pinki? this is wrong for starters if TD's 2.3

!Setup
[SQL]
UseSQL=FALSE << should say TRUE
SQLHost=192.168.0.2 try localhost, local, or 127.0.0.1
SQLPort=3306
SQLUsername=mir2
SQLPassword=mir2
SQLDatabase=mir2
SQLType=mysql
 
Upvote 0

forspinki

Legend
Legendary
Oct 23, 2006
3,431
115
190
Handan, China
no jasper there the new korean files which dont need sql
http://www.lomcn.co.uk/forum/showthread.php?t=55174


on that picture u loaded up in a previous post. everythin is working fine and the server is actually online. u just need to go thru all of the .txt files and make sure that u change "ÁúÖ®´«Ææ" to ur server name (only change this)

and then in ur folder for getting onto mir, in server.ini type in ur server name and the ips ur using (try both 192.168.0.2) and 127.0.0.1 as both should connect but 127.0.0.1 will connect with as minimal lag as possable

just tried doing that but still no luck i cant understand why its not working i get 0 errors but it just says con closed
 
Last edited:
Upvote 0

Neptune

Golden Oldie
Golden Oldie
Nov 19, 2003
1,473
9
175
Chester :P
on the m2server.exe wen u hav loaded it up cick file (i think its file) then see if u can find a "Gate 0" and see if u can open / close it (u want it to be on open in order for it to allow access to your server
 
Upvote 0

forspinki

Legend
Legendary
Oct 23, 2006
3,431
115
190
Handan, China
umm when i go to gate and then press open it says

Windows socket error: The requested address is not valid in its context (10049), on API 'bind'

but all my ips are ok :S
 
Upvote 0