Jump to content

How to manually assign ip to dedicated server?


adek997

Recommended Posts

Hello! 

My dedicted server is used for several different tasks, running windows. It have 3 ip addresses, one for local file shares and other two for VMs. 7d2d dedicated server grab different local ip every time i start it. Is there a way i could specify which ip allow to use?

 

Link to comment
Share on other sites

At one point I thought there was an option in the config, but I can't find anything on it now.   It appears that Unity may have an argument serverBindToIP that could be used in the startup string.

 

In the config you would change line 69 from

start %GAMENAME% -logfile "%LOGFILE%" -quit -batchmode -nographics -configfile=serverconfig.xml -dedicated

to

start %GAMENAME% -logfile "%LOGFILE%" -quit -batchmode -nographics -serverBindToIP=192.168.1.145 -configfile=serverconfig.xml -dedicated

where 192.168.1.145 would be the IP address for the local adapter you wish to bind to.

 

I've been running into a similar issue with Empyrion lately, and will try this there.  I host our 7 Days server on Linux, and it's easy peasy there. (Windows used to have an option for binding a protocol/process to an adapter, but it was removed. The 3rd-Part program ForceBindIP no longer functions either.)

Link to comment
Share on other sites

You right. Lol. I jump the gun:p

Finally got little time to mess around with the server and adding serverbindtoip didn't work for me. Any other ideas? 

 

Alternatively I could move it under one of my Linux vms however is there a way to also move 7d2d server world data files from windows to Linux? Or would I be forced to start all over? 

 

 

 

Link to comment
Share on other sites

7 hours ago, adek997 said:

Alternatively I could move it under one of my Linux vms however is there a way to also move 7d2d server world data files from windows to Linux? Or would I be forced to start all over? 

Yes, there is a guide to migrating saves in the Sticky FAQ thread.  I do it quite often between Windows and Linux.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...