There are a couple of ways to get around this problem by modifying the
source.

a) Comment out the lines in vncClient.cpp that filters out loopback
connections:

/*
        // By default we filter out local loop connections, because
they're pointless
        if (!m_server->LoopbackOk())
        {
                char *localname = strdup(m_socket->GetSockName());
                char *remotename = strdup(m_socket->GetPeerName());

                // Check that the local & remote names are different!
                if ((localname != NULL) && (remotename != NULL))
                {
                        BOOL ok = strcmp(localname, remotename) != 0;

                        if (localname != NULL)
                                free(localname);

                        if (remotename != NULL)
                                free(remotename);

                        if (!ok)
                        {
                                log.Print(LL_CONNERR, VNCLOG("loopback
connection attempted - client rejected\n"));
        
                                // Send an error message to the client
                                CARD32 auth_val =
Swap32IfLE(rfbConnFailed);
                                char *errmsg = "Local loop-back
connections are disabled.";
                                CARD32 errlen =
Swap32IfLE(strlen(errmsg));

                                if (!m_socket->SendExact((char
*)&auth_val, sizeof(auth_val)))
                                        return FALSE;
                                if (!m_socket->SendExact((char
*)&errlen, sizeof(errlen)))
                                        return FALSE;
                                m_socket->SendExact(errmsg,
strlen(errmsg));

                                return FALSE;
                        }
                }
        }
*/


or, b) change the lines in vncProperties.cpp (around line 677) that
allows/disables loopback connections.

Regarding registry keys, it seems that the windows vnc server sets a key
named 'AllowLoopback' to 'false', so I'm not too sure how well editing
the registry would work without modifying the code where the key gets
set.

-ano

-----Original Message-----
From: Mohamed Farag [mailto:[EMAIL PROTECTED]]
Sent: Sunday, June 03, 2001 12:05 AM
To: [EMAIL PROTECTED]
Subject: Local loop-back connection are diabled


Hello

I just installed VNC yesterday , and i am having a
problem to test it in my local machine, however i did
not have any problems installing it , I have read the
documations , and I have read that i may need to
modify my machine registry ,however i have no idea how
to do it because i have never modify or know how to
edit this Registry , and I have a Zone Alram firwall
pro in my machine , do you think would be a problem
with this firewall? how can i modify the Registry ? do
you have sort of step by step of how to do that ?

Thanks

hear from you soon

=====

 


____________________________________________________________
Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie
---------------------------------------------------------------------
To unsubscribe, send a message with the line: unsubscribe vnc-list
to [EMAIL PROTECTED]
See also: http://www.uk.research.att.com/vnc/intouch.html
---------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, send a message with the line: unsubscribe vnc-list
to [EMAIL PROTECTED]
See also: http://www.uk.research.att.com/vnc/intouch.html
---------------------------------------------------------------------

Reply via email to