- Home /
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.
Hmm, I'm not sure that function is built into Unity. Typically, the person with the IP address you need to know would post it somewhere for you to grab externally to the project. On windows, I like to use ipconfig in the cmd console.
Answer by weenchehawk · Sep 05, 2013 at 02:02 AM
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.
Answer by Oleg11 · May 30, 2016 at 02:45 PM
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
This answer is offtopic and looks like an attempted advertisement for that software. You might want to read the question carefully.
Your answer
Follow this Question
Related Questions
RPC call from client to client 1 Answer
How do i connect to a host that is registered on the MasterServer? 0 Answers
Ip Address 2 Answers
I need an alternative to Network.player.ipAdress 0 Answers
Servers and ip address 1 Answer