computer.ipaddress


Author
Message
DCole9
DCole9
Distinguished Member (4.4K reputation)Distinguished Member (4.4K reputation)Distinguished Member (4.4K reputation)Distinguished Member (4.4K reputation)Distinguished Member (4.4K reputation)Distinguished Member (4.4K reputation)Distinguished Member (4.4K reputation)Distinguished Member (4.4K reputation)Distinguished Member (4.4K reputation)
Group: Forum Members
Posts: 42, Visits: 220
Hi InQuisiters,
I am running into an issue when trying to record the computer's ipaddress.  This is the code I am using.


"<data>
/file = "MyDataFile.iqdat"
/columns = [date, time, subject, computer.ipaddress]
/format = tab
/separatefiles = true
</data>"

And I am receiving the error "Invalid expression 'computer.ipaddress'".

Any help would be greatly appreciated!
DCole9
DCole9
Distinguished Member (4.4K reputation)Distinguished Member (4.4K reputation)Distinguished Member (4.4K reputation)Distinguished Member (4.4K reputation)Distinguished Member (4.4K reputation)Distinguished Member (4.4K reputation)Distinguished Member (4.4K reputation)Distinguished Member (4.4K reputation)Distinguished Member (4.4K reputation)
Group: Forum Members
Posts: 42, Visits: 220
I found this post from a few years ago-

Dave (2/16/2013)

You should log suitable computer properties to the data file then. There's computer.ipaddress, but computer.macaddress may be preferrable (IPs change, MACs don't, etc.). Details can be found in the documentation.

Regardless, as long as you designed / set up things properly and people complete both tasks in the same session, you should not need any of the above. You should be able to match data based on participants' subjectid.

Finally note that the data file names contain the IP address, i.e., you should also be able to match files from both tasks based on the respective file names.



If this is true then I suppose it is not necessary to log the IP Address in the data file since it is stored in the data file name.  However, the computer.macaddress command also has not worked on my machine which would be good to have.  

Thanks again for your help!

Dan


Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 104K
computer.ipaddress is an indexed property. A computer can have multiple network interfaces with a different IP assigned to each. As detailed in the documentation:

"ipaddress property
This property reports the IP addresses assigned to the computer.

Applies to
<computer>

Remarks
This is a collection property containing a list of all of the IP Addresses assigned to a computer. Computers typically have only one IP Address but may have more if they have multiple network cards. If the computer is located within a LAN, the computer may be assigned an IP address that is not globally unique.

Examples
The following displays the ip address in a text stimulus:

<text sometext>
/ items= ("correct = <% computer.ipaddress.1 %>")
</text>
"
Thus computer.ipaddress.1 will return the IP assigned to the machine's 1st network interface. computer.ipaddress alone does not mean / return anything, hence the error.

Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 104K
computer.macaddress is also a collection property. The reason is the same as with computer.ipaddress.

Note that additional technical information -- including a connecting client's public IP -- is available via the Web Logs section of your account ( https://www.millisecond.com/myaccount/logs.aspx ).

DCole9
DCole9
Distinguished Member (4.4K reputation)Distinguished Member (4.4K reputation)Distinguished Member (4.4K reputation)Distinguished Member (4.4K reputation)Distinguished Member (4.4K reputation)Distinguished Member (4.4K reputation)Distinguished Member (4.4K reputation)Distinguished Member (4.4K reputation)Distinguished Member (4.4K reputation)
Group: Forum Members
Posts: 42, Visits: 220
Thank you Dave that was very helpful!
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search