CotV uses gethostbyname() to resolve machine names typed into the connection dialogue. This method does not return IPv6 addresses if they exist. This patch replaces the use of gethostbyname() with getaddrinfo() which returns both IPv4 and IPv6 addresses so that you can connect to IPv6 VNC servers as long as they have a hostname which resolves to their IPv6 address.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Patch to make use of getaddrinfo
Logged In: YES
user_id=2189094
Originator: NO
Could someone provide a little more detail about this patch?
Logged In: YES
user_id=418008
Originator: YES
CotV uses gethostbyname() to resolve machine names typed into the connection dialogue. This method does not return IPv6 addresses if they exist. This patch replaces the use of gethostbyname() with getaddrinfo() which returns both IPv4 and IPv6 addresses so that you can connect to IPv6 VNC servers as long as they have a hostname which resolves to their IPv6 address.
This patch is included in Chicken, a fork/revival of Chicken of the VNC:
https://sourceforge.net/projects/chicken/