Finding Computers IP Address with UiPath

studio

#1

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?


#2

Dns = System.Net.Dns

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


#3

Worked great thank you


#4

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


#5

Hi @vvaidya

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


#6

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


#7

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


#8

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