Hi,
I have a licenced sfs instance running on ec2. The problem is each time I restarted ec2 instance, its internal ip changed so I must edit the server.xml config.
Pls tell me how can I solve this issue.
Thanks,
ec2 restarted and ip changed
Re: ec2 restarted and ip changed
(Sorry, I have probably misunderstood your question. I have removed my previous answer)
If you are expecting the local network address to change between restarts (not all cloud systems do that) you can use a little "trick". You can manually edit the server.xml file and set the TCP (and UDP if you use it) listener to 0.0.0.0, which will bind any address available.
We are going to set this value as default in the next SFS 2X release.
Thanks
If you are expecting the local network address to change between restarts (not all cloud systems do that) you can use a little "trick". You can manually edit the server.xml file and set the TCP (and UDP if you use it) listener to 0.0.0.0, which will bind any address available.
We are going to set this value as default in the next SFS 2X release.
Thanks
Re: ec2 restarted and ip changed
No, if we use 0.0.0.0 the licence validation will fail. We need to use the private ip.
I use puppet to update automatically server.xml but even then, I always have to reset the licence on the web dashboard every time we need to stop/start an ec2 instance.
I use puppet to update automatically server.xml but even then, I always have to reset the licence on the web dashboard every time we need to stop/start an ec2 instance.
Re: ec2 restarted and ip changed
What is exactly the error message you are getting?
Thanks
Thanks
Re: ec2 restarted and ip changed
I confirm that at the moment 0.0.0.0 can't be used due to license validation issues.
The other option you have is to run a script during the server startup (before SFS2X is launched) which writes the private IP in the server.xml file.
If you need it, we have a Python script which does that exactly. Contact us by email.
The other option you have is to run a script during the server startup (before SFS2X is launched) which writes the private IP in the server.xml file.
If you need it, we have a Python script which does that exactly. Contact us by email.
Paolo Bax
The SmartFoxServer Team
The SmartFoxServer Team
Who is online
Users browsing this forum: No registered users and 55 guests