Jump to content

virtualbox server with no-ip


Recommended Posts

EDIT2: I tried with hamachi too, but only I can connect

EDIT : At booting I get this (I moved the Bridged Adapter to Adapter3)

 

3d9496ee6291e346d94ecad0c7e4a389.png

 

Hello guys , I have a test server hosted on my pc, and I tried to configure it for a no-ip dns (my ip is dynamic), so one of my friends can help me with testing things , but no one can connect to the server via that dns (including me)  ...

 

This is the adapter which I configured

 

0a586f04ae464a851bac7337286f2ab7.png

 

In sysinstall I've configured it like this ( I've chosen DHCP before entering those below) :

Hostname : mydomain.no-ip.info
Domain : no-ip.info
IPv4 Getaway : my.current.ip
NameServer : blank
IPv4 : my.current.ip.100
Netmask : 255.255.255.0

My serverinfo.py looks like this

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 = '...'

	STATE_DICT = {
		0 : '....',
		1 : 'NORM',
		2 : 'BUSY',
		3 : 'FULL',
	}

	CHANNELS1 = [
		{'name':'CH1','ip':'mydns.no-ip.info','tcp_port':13070,'udp_port':13070,'state':STATE_NONE,},
		{'name':'CH2','ip':'mydns.no-ip.info','tcp_port':32000,'udp_port':32000,'state':STATE_NONE,},
		{'name':'CH3','ip':'mydns.no-ip.info','tcp_port':33000,'udp_port':33000,'state':STATE_NONE,},
		{'name':'CH4','ip':'mydns.no-ip.info','tcp_port':34000,'udp_port':34000,'state':STATE_NONE,},		
	]
	CHANNELS2 = [
		{'name':'CH1','ip':'00.00.00.00','tcp_port':31000,'udp_port':31000,'state':STATE_NONE,},
	]
	MARK1 = { 'ip' : 'mydns.no-ip.info', 'tcp_port' : 13099, 'mark' : '10.tga', 'symbol_path' : '10', }
	MARK2 = { 'ip' : '00.00.00.00', 'tcp_port' : 31000, 'mark' : '10.tga', 'symbol_path' : '10', }
	AUTH1 = {'ip':'mydns.no-ip.info','port':11002, }
	AUTH2 = {'ip':'00.00.00.00','port':41001, }
	NAME1 = { 'name' : 'Metin2'}
	NAME2 = { 'name' : 'Test-Server'}
	REGION0_ORDER_LIST = [
		(NAME1, AUTH1, MARK1, CHANNELS1),
		(NAME2, AUTH2, MARK2, CHANNELS2),
	]
	NEW_REGION0, NEW_REGION0_AUTH_SERVER_DICT, NEW_MARKADDR_DICT = BuildServerList(REGION0_ORDER_LIST)
	# RESULT
	NEW_REGION_NAME_DICT = {0 : 'ENGLISH',}
	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' : 'mydns.no-ip.info', 'tcp_port' : 50000, 'udp_port' : 50000, }

I use my own game core and binary , do I need to modify something else ?

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.