This method may get the wrong IP address, it may get virtual IP when system is Win and VMware installed.