Finding Computers IP Address with UiPath

Hello I am using Get Environment Variables to get the Machine Name of my VM’s. I need to also be able to get the IP Address that the VM is using. I thought it would also be under Get Environment Variables but do not see it as an option. How to I use UiPath to return the IP Address of the VM it is running on?

Dns = System.Net.Dns

Dns.GetHostByName(Dns.GetHostName()).AddressList(0).ToString()

4 Likes

Worked great thank you

Hi @vvaidya

I’m not sure I do it correctly…but seems like Uipath can’t find the dns function? Please help!
image
image

Ah…I got it. need to declare DNS as System.Net.Dns
Thanks @vvaidya