After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 604053 - Desktop sharing preferences can not show the correct IP address if VirtualBox is installed
Desktop sharing preferences can not show the correct IP address if VirtualBox...
Status: RESOLVED DUPLICATE of bug 596190
Product: vino
Classification: Applications
Component: Server
unspecified
Other All
: Normal major
: ---
Assigned To: Vino Maintainer(s)
Vino Maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2009-12-08 08:35 UTC by Halton Huo
Modified: 2011-03-20 10:12 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
ignore vboxnet interfaces (1.07 KB, patch)
2009-12-08 08:54 UTC, Halton Huo
rejected Details | Review

Description Halton Huo 2009-12-08 08:35:12 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
Comment 1 Halton Huo 2009-12-08 08:54:19 UTC
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()?
Comment 2 David King 2011-03-20 10:10:27 UTC

*** This bug has been marked as a duplicate of bug 596190 ***
Comment 3 David King 2011-03-20 10:12:52 UTC
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.