Cannot connect to IP address
Brought to you by:
kedoin
I can't get you VNCViewer to connect to a VNC Server on
with an "internal" IP address (192.168.3.xx). The program
gives a "Couldn't find the host 192.168.3.xx." error. I can
ping the machine with Terminal, and connect via NFS so it
doesn't appear to be something related to the networking
side. Also, at least one other VNC viewer seems to connect
okay (VNCThing), although it crashes after connecting.
Logged In: YES
user_id=832176
If I had to guess, I would guess that your network does not have a
Domain Name Server (DNS) that includes the host 192.168.3.xx in
it. Similarly, the NetInfo database doesn't have any entry for the
host with IP address 192.186.3.xx.
The easiest workaround for this is to add a NetInfo entry on your
Macintosh for this host. You can do this in a Terminal window by
issuing the next two commands after you type the "su" command
and enter your root password:
/usr/bin/niutil -create . /machines/A_NEW_HOST_NAME
/usr/bin/niutil -createprop . /machines/
A_NEW_HOST_NAME ip_address 192.168.3.xx
Cocoa provides a very convenient class that is used called NSHost
which is used in the VNCViewer. Unfortunately, it's limited to
working with IP addresses that are known by DNS or NetInfo. :-( I
knew about this limitation but considered this configuration (which
I actually have at home) to be a network configuration that only a
small minority of users would also have. It seems you might be a
member of this minority :-)
I'll look again at fixing the VNCViewer so it doesn't have this
limitation.