Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Can I use the IP address directly?

More
1 year 9 months ago #254459 by surveySn
Please help us help you and fill where relevant:
Your LimeSurvey version: [6.4.1+240108]
Own server or LimeSurvey hosting:Own server
Survey theme/template:Fruity TwentyThree
==================
Hello everyone
In certain situations, I need to display the IP address to the visitors, {ipaddr.shown}, but it doesn't work. Currently, I'm using a API, but it sometimes fails to retrieve the information.

Please Log in to join the conversation.

More
1 year 8 months ago #257216 by surveySn
Does anyone have a good method?

Please Log in to join the conversation.

More
1 year 8 months ago - 1 year 8 months ago #257500 by holch
Code:
{ipaddr.shown}

What is this supposed to be? This would show the text of the answer option chosen by a respondent from a single choice question with the ID "ipaddr". As long as you don't have a question with the ID "ipaddr" nothing will happen. And then also, if there would be a question were the IP address is stored it would most probably not be a single choice question, but rather a text question, right?

So please explain what you are doing exactly. Where do you store the IP address? How do you collect and store it?

Help us to help you!
  • Provide your LS version and where it is installed (own server, uni/employer, SaaS hosting, etc.).
  • Always provide a LSS file (not LSQ or LSG).
Note: I answer at this forum in my spare time, I'm not a LimeSurvey GmbH employee.
Last edit: 1 year 8 months ago by holch.
The following user(s) said Thank You: surveySn

Please Log in to join the conversation.

More
1 year 8 months ago #257502 by tpartner
I think surveySn is referring to the IP address collected via the Notification and data management settings. This is not available from within a survey.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: surveySn

Please Log in to join the conversation.

More
1 year 8 months ago #257504 by holch

I think surveySn is referring to the IP address collected via the Notification and data management settings. This is not available from within a survey.

Oh, this could of course be the case. And yes, this is not accessible. And even if it was, surely not with .shown

Help us to help you!
  • Provide your LS version and where it is installed (own server, uni/employer, SaaS hosting, etc.).
  • Always provide a LSS file (not LSQ or LSG).
Note: I answer at this forum in my spare time, I'm not a LimeSurvey GmbH employee.

Please Log in to join the conversation.

More
1 year 8 months ago #257528 by DenisChenu

Oh, this could of course be the case. And yes, this is not accessible. And even if it was, surely not with .shown
 
You can activate a plugin for this : www.limesurvey.org/manual/ExpressionFixedDbVar
{IPADDR} can be used

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.
The following user(s) said Thank You: holch, tpartner, surveySn

Please Log in to join the conversation.

More
1 year 8 months ago #257563 by surveySn
Awesome, perfect, thank you for your reply.

Please Log in to join the conversation.

More
1 year 8 months ago #257565 by tpartner
Yes, good catch Denis.

(I always forget the plugins)

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: DenisChenu

Please Log in to join the conversation.

More
1 year 8 months ago #257629 by DenisChenu

(I always forget the plugins)
 
Easy to remind since i develop it ;)

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.
The following user(s) said Thank You: holch

Please Log in to join the conversation.

More
17 hours 42 minutes ago #273065 by guigsilva
Hello!

Sorry to revive this old thread.

I am trying to use IPADDR but nothing seams to work.

I try versions 5 and 6 the plugin is active, with IPADDR active. The survey is recording the IP ( I can see it in responses. But can't use IPADDR in equation field or in context script.

Can You help pls?

Limesurvey onprem 6 and 5

Please Log in to join the conversation.

More
15 hours 45 minutes ago #273067 by holch
I can confirm that {IPADDR} and {ipaddr} both just show up as "IPADDR" or "ipaddr" when used within the survey.

Help us to help you!
  • Provide your LS version and where it is installed (own server, uni/employer, SaaS hosting, etc.).
  • Always provide a LSS file (not LSQ or LSG).
Note: I answer at this forum in my spare time, I'm not a LimeSurvey GmbH employee.

Please Log in to join the conversation.

More
15 hours 2 minutes ago - 15 hours 1 minute ago #273068 by Joffm
Hi,
I do not see an issue. (6.15.20)

With activated plugin I get
 
 

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 15 hours 1 minute ago by Joffm.

Please Log in to join the conversation.

More
13 hours 57 minutes ago #273071 by holch

Hi,
I do not see an issue. (6.15.20)

With activated plugin I get
 
 

Joffm
 
Unfortunately we can't see what you are trying to show us, Joffm. At the moment it looks like you get literally nothing. :-)

Help us to help you!
  • Provide your LS version and where it is installed (own server, uni/employer, SaaS hosting, etc.).
  • Always provide a LSS file (not LSQ or LSG).
Note: I answer at this forum in my spare time, I'm not a LimeSurvey GmbH employee.

Please Log in to join the conversation.

More
13 hours 56 minutes ago #273072 by holch
Oh, now it shows.

Looks good. this is weird. Will have to try to test again.

Help us to help you!
  • Provide your LS version and where it is installed (own server, uni/employer, SaaS hosting, etc.).
  • Always provide a LSS file (not LSQ or LSG).
Note: I answer at this forum in my spare time, I'm not a LimeSurvey GmbH employee.

Please Log in to join the conversation.

More
10 hours 8 minutes ago #273081 by holch
I updated to 6.15.22+251103 and tested with a new survey and it still just gives me IPADDR as words. The plugin is activated.

Help us to help you!
  • Provide your LS version and where it is installed (own server, uni/employer, SaaS hosting, etc.).
  • Always provide a LSS file (not LSQ or LSG).
Note: I answer at this forum in my spare time, I'm not a LimeSurvey GmbH employee.

Please Log in to join the conversation.

Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose