Find IP Adress?

How can I find what the computer running the games IP address is from code?? I’m using Unity Pro and UnityScript.

I’m setting up a networking system and need to know the IP address.

here’s a thread discussing various answers : link text

My recommended answer is:

Depending on the state of your code, you may be able to use

Network.player.ipAddress

This will give you the server IP if running as a server, or the client IP if running as a client.

I use Advanced IP Scanner. It can find ip, Mac-addresses of the devices in a LAN and etc. I find it very helpful for preparing network reports. Very useful feature - you can export scan results to HTML. Simple and fast, I think, Advanced IP Scanner is the best option. http://www.advanced-ip-scanner.com