Welcome to the LimeSurvey Community Forum

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

Can I use the IP address directly?

  • surveySn
  • surveySn's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
3 months 1 week ago #254459 by surveySn
Can I use the IP address directly? was created 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.

  • surveySn
  • surveySn's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
2 months 2 days ago #257216 by surveySn
Replied by surveySn on topic Can I use the IP address directly?
Does anyone have a good method?

Please Log in to join the conversation.

  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 months 13 hours ago - 1 month 4 weeks ago #257500 by holch
Replied by holch on topic Can I use the IP address directly?
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?

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

Last edit: 1 month 4 weeks ago by holch.
The following user(s) said Thank You: surveySn

Please Log in to join the conversation.

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 months 12 hours ago #257502 by tpartner
Replied by tpartner on topic Can I use the IP address directly?
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.

  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 months 12 hours ago #257504 by holch
Replied by holch on topic Can I use the IP address directly?

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

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

Please Log in to join the conversation.

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 month 4 weeks ago #257528 by DenisChenu
Replied by DenisChenu on topic Can I use the IP address directly?

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 : manual.limesurvey.org/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 service on demand , plugin 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.

  • surveySn
  • surveySn's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
1 month 4 weeks ago #257563 by surveySn
Replied by surveySn on topic Can I use the IP address directly?
Awesome, perfect, thank you for your reply.

Please Log in to join the conversation.

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 month 4 weeks ago #257565 by tpartner
Replied by tpartner on topic Can I use the IP address directly?
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.

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 month 4 weeks ago #257629 by DenisChenu
Replied by DenisChenu on topic Can I use the IP address directly?

(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 service on demand , plugin development .
I don't answer to private message.
The following user(s) said Thank You: holch

Please Log in to join the conversation.

Lime-years ahead

Online-surveys for every purse and purpose