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

In case you want to find out your public IP address then this IP Lookup may help you out as well.
What is my IP Address

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

Easy way to find out what is my ip address without know technical commands.

I found more easier way to check what is my ip address and IP location without having any technicial knowledge.