- Home /
Network ipAddress always 0.0.0.0 on PC, correct everywhere else.
Like the title says, after initializing the server and logging out the IP address using various methods: Network.player.ipAddress, NetworkView.owner.ipAddress, etc...
It is always 0.0.0.0 on my PC but on my Mac laptop and Android smartphone the ip address is read correctly.
Anyone have any ideas why?
Thanks in advance :)
EDIT: Learning more about 0.0.0.0 it seems to act like a catch-all address on your network. But some sites say 0.0.0.0 is a network configuration problem. Assuming it is a catch-all, does that mean I have to manually figure out what my server's ipaddress is on my local network and have my clients use that one? FYI, I am just trying to setup server/client communication on my local network.
0.0.0.0. is local host on my computer (as is 127.0.0.1)
Answer by sweatyrat · Jun 28, 2012 at 07:47 PM
well i have never had that exact error before but i have had problems where unity will only get the IP of the first network adapter listed on your computer. so like if you are connecting with people over a VPN, Network.player.ipAddress dose not show the IP of the VPN connection. so my guess would be if you have a disabled or broken internet adapter as the first one in your list unity is using it and defaulting with 0.0.0.0
Answer by DryTear · Apr 03, 2013 at 09:04 PM
0.0.0.0 means you're not connected to the Internet (also unable to play with LAN when ip is wiped)