GNOME Bugzilla – Bug 604053
Desktop sharing preferences can not show the correct IP address if VirtualBox is installed
Last modified: 2011-03-20 10:12:52 UTC
This bug is actually reported on OpenSolaris bug database, http://defect.opensolaris.org/bz/show_bug.cgi?id=13142 After investigation, this bug happens on system those install VirtualBox either OpenSolaris or Linux. It returns vboxnet0 IP address rather than the exact one. $ifconfig -a lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1 inet 127.0.0.1 netmask ff000000 nge0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2 inet 129.158.217.65 netmask ffffff00 broadcast 129.158.217.255 ether 0:14:4f:70:8f:9a vboxnet0: flags=201000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4,CoS> mtu 1500 index 3 inet 192.168.56.1 netmask ffffff00 broadcast 192.168.56.255 ether 8:0:27:9e:8:6d lo0: flags=2002000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv6,VIRTUAL> mtu 8252 index 1 inet6 ::1/128
Created attachment 149311 [details] [review] ignore vboxnet interfaces Use this attached patch will fix the issue. But I think there is still problem when system has multiple interfaces. So I think the way to get_local_hostname is incorrect somehow. Use gethostname()?
*** This bug has been marked as a duplicate of bug 596190 ***
Comment on attachment 149311 [details] [review] ignore vboxnet interfaces I need to review the network reachability reporting code before applying patches (see bug 596190), and this will happen for 3.2.