Dar daca intru pe alt client mere
Va rog modificatimi si mie asta , ca sa pot intra pe server
COD :
=============================================================================================
import locale
def BuildServerList(orderList):
retMarkAddrDict = {}
retAuthAddrDict = {}
retRegion0 = {}
ridx = 1
for region, auth, mark, channels in orderList:
cidx = 1
channelDict = {}
for channel in channels:
key = ridx * 10 + cidx
channel['key'] = key
channelDict[cidx] = channel
cidx += 1
region['channel'] = channelDict
retRegion0[ridx] = region
retAuthAddrDict[ridx] = auth
retMarkAddrDict[ridx*10] = mark
ridx += 1
return retRegion0, retAuthAddrDict, retMarkAddrDict
if locale.IsEUROPE():
STATE_NONE = 'ON'
STATE_DICT = {
0 : '....',
1 : 'NORM',
2 : 'BUSY',
3 : 'FULL',
}
CHANNELS1 = [
{'name':'CH1','ip':'25.117.212.64','tcp_port':13000,'udp_port':13000,'state':STATE_NONE,},
{'name':'CH2','ip':'25.117.212.64','tcp_port':13002,'udp_port':13002,'state':STATE_NONE,},
{'name':'CH3','ip':'25.117.212.64','tcp_port':13003,'udp_port':13003,'state':STATE_NONE,},
]
MARK1 = { 'ip' : '195.225.59.124', 'tcp_port' : 13000, 'mark' : '120.tga', 'symbol_path' : '120', }
AUTH1 = {'ip':'195.225.59.124','port':11002, }
NAME1 = { 'name' : 'Metin2'}
REGION0_ORDER_LIST = [
(NAME1, AUTH1, MARK1, CHANNELS1),
]
NEW_REGION0, NEW_REGION0_AUTH_SERVER_DICT, NEW_MARKADDR_DICT = BuildServerList(REGION0_ORDER_LIST)
# RESULT
NEW_REGION_NAME_DICT = {0 : 'POLAND',}
NEW_REGION_AUTH_SERVER_DICT = {0 : NEW_REGION0_AUTH_SERVER_DICT,}
NEW_REGION_DICT = {0 : NEW_REGION0,}
MARKADDR_DICT = NEW_MARKADDR_DICT
REGION_DICT = NEW_REGION_DICT
REGION_NAME_DICT = NEW_REGION_NAME_DICT
REGION_AUTH_SERVER_DICT = NEW_REGION_AUTH_SERVER_DICT
TESTADDR = { 'ip' : '195.225.59.124', 'tcp_port' : 50000, 'udp_port' : 50000, }
==========================================================================================================
Ip meu de la hammachi este : 25.92.151.41
Va rog spunetimi ce trebuie sa modific ca sa pot sa ma conectez la server-ul meu !
De la ce provine ultimul ip de jos "195.225.59.124" , de la ce vine ?






