![]() |
|
|
#30 |
|
Архивный участник
Join Date: May 2005
Posts: 368
|
Tx a lot, it works, its a nice solution:
1) Set LAN IP for Server in lin2db 2) Start Server 3) Enter the game 4) Set WAN IP for Server in lin2db (With Server ON) 5) Unload C2auth 6) Reload C2auth I made some *.vbs scripts to update IP in lin2db table: SET_LAN_IP.vbs Code:
SERVERIP = "127.0.0.1"
ms_sql_server_host_addr = "127.0.0.1"
sql_server_username = "your_sql_login"
sql_server_password = "your_sql_password"
lin2db = "lin2db"
set lin2db_conn = CreateObject("ADODB.CONNECTION")
lin2db_conn.open "driver={SQL Server};server="&ms_sql_server_host_addr&"; uid="&sql_server_username&";pwd="&sql_server_password&";database="&lin2db
sql = "update [server] set [IP] = '" & SERVERIP & "' WHERE [id] = 1"
set rs = lin2db_conn.Execute(SQL)
msgbox("IP : " & SERVERIP)
|
|
|
| Thread Tools | Search this Thread |
| Display Modes | |
|
|