LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to get user's ip address

I am currently working on a scheduler for my department in school. I want to grant users access to an online lab using the ip access list. The problem is how do I get their ip? Is there a VI which handles that? If not, how would I go about this?
0 Kudos
Message 1 of 4
(3,213 Views)
If I understand corretly, this is across a TCP/IP connection, correct? Are you using the 'create listener' VI? If so, as soon as a connection is established, it will give you the client's IP address.
0 Kudos
Message 2 of 4
(3,213 Views)
You can get a user's ip address by opening a command prompt (dos) window on their computer and typing ipconfig. Once you have all the addresses you can enter them in the Browser access list and LabVIEW will automatically check the connecting computer to see if its ip address is on the list.
0 Kudos
Message 3 of 4
(3,213 Views)
If you have the Internet Toolkit addon, then you can get the current user's IP address by creating a CGI VI and then extracting the IP address from the environment. Using the Internet Toolkit webserver for CGI pages with the Remote Panels server for online labs allows you to easily set up a login/password system for accessing remote panels.
0 Kudos
Message 4 of 4
(3,213 Views)