Welcome, Guest
Username: Password: Remember me

TOPIC: LAN / WAN IP address

LAN / WAN IP address 3 years 1 month ago #58082

  • ifcanduela
  • ifcanduela's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 5
  • Karma: 0
Hello,

I have a configuration question regarding the email templates. I haven't found any reference to this in the manual.

In config.php, the IP that gets assigned to $roolurl is the private IP of the server (192.168.1.xxx in my case), which is the one printed on the survey emails with {SURVEYURL}.

The app is correctly displayed using the public IP, from outside the LAN. However, the surveys are unreachable from the emails; It should link to 212.xxx.xxx.xxx, but goes to 192.168.1.xxx instead, which makes the link useless.

Is there a simple way of changing the URL printed in the emails?

Thanks in advance,
Igor
The administrator has disabled public write access.

Re: LAN / WAN IP address 3 years 1 month ago #58088

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5278
  • Thank you received: 289
  • Karma: 246
Since the URL is created using settings in config.php I don't think it is possible to change that without changing the config.

Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)limesurvey.org'"
The administrator has disabled public write access.

Re: LAN / WAN IP address 3 years 1 month ago #58098

  • ifcanduela
  • ifcanduela's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 5
  • Karma: 0
I could change the config, but I'd rather not mess with that, you never know where it's used. Maybe there is a way to manually build the survey URL in the email template?
The administrator has disabled public write access.

Re: LAN / WAN IP address 3 years 1 month ago #58116

  • ifcanduela
  • ifcanduela's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 5
  • Karma: 0
So it's impossible to do this? I though my setup (a server in a LAN, people accessing to surveys from the outside via port forwarding) was pretty common.

What would be a valid setup?
The administrator has disabled public write access.

Re: LAN / WAN IP address 3 years 1 month ago #58124

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 5838
  • Thank you received: 714
  • Karma: 222
I don't understand,

Put your external url in your setup, and it's good.
The administrator has disabled public write access.

Re: LAN / WAN IP address 3 years 1 month ago #58138

  • ifcanduela
  • ifcanduela's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 5
  • Karma: 0
If I do that, then the app is unusable from inside the LAN. We need access to the admin interface (at least) via private IPs.
The administrator has disabled public write access.

Re: LAN / WAN IP address 3 years 1 month ago #58166

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 5838
  • Thank you received: 714
  • Karma: 222
Hello,

To modify the admin url, maybe you can use
$homeurl        =   "http://192.168.0.1/admin";                           // The website location (url) of the admin scripts

(see config-default.php : maube there are other optionnal settings)

Or change the
$publicurl      =   "$rooturl";                                 // The public website location (url) of the public survey script

You can see the fabrication url method for mailing in admin/token.php (search for SURVEYURL)
The administrator has disabled public write access.

Re: LAN / WAN IP address 3 years 1 month ago #58210

  • ifcanduela
  • ifcanduela's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 5
  • Karma: 0
Thanks for the help, I will try that as soon as I can.
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.239 seconds
Donation Image