Link to home
Start Free TrialLog in
Avatar of ibiquity
ibiquity

asked on

Cannot connect with VNC. Likewise, other machines cannot conect to my machine via VNC

Hello Experts.  Here is my issue.  (I'll get this out of the way - windows firewall is not on)  When trying to connect to a machine via VNC I am receiving this error:  unable to connect to host: An invalid argument was supplied. (10022)  Can anyone help?  It's driving me nuts!  Thanks!
Avatar of zephyr_hex (Megan)
zephyr_hex (Megan)
Flag of United States of America image

10022 "invalid argument" is a standard TCP/IP error code.
are you trying to connect to a machine inside your network?  i would start there so as to rule out firewall issues on the router, or port forwarding issues on the router.
also, are all computers involved fully patched?
Avatar of moistowelet
moistowelet

Try running VNC in service mode
then restart the VNC service and try and connect


also, make sure both ends are using the same version of VNC
I've had alot of problems with this type of connection. Some more information is needed to accurately answer this question.  First, are the machines connected on a local network?  If not, what types of connections do they use.  Second, How is VNC setup on each machine?  To clarify that, which one runs the server, and which the client, and how are they configured.
is this connect across the internet or just the local lan?  That is crucial info before we can give a solution.
for example, specifying an invalid level to the setsockopt function). In some instances, it also refers to the current state of the socket - for instance, calling accept on a socket that is not listening.
install any other version of VNC
check if all connection are open
firewall is also a probability but u have mentioned it's off
hope it might help you
bye
Avatar of ibiquity

ASKER

The machine(s) are inside a local LAN.  VNC is set up with both server and client on everymachine.  My counter part in Maryland (I am in NJ - but on the same network) can connect to many machines but not mine.  I cannot connect to any machines.
I just tried to run VNC - Run Listening VNC Server and got this error:  unable to set socket to listening mode.  An invalid argument was supplied (10022)
All your help is, as usual, much apprciated!
I'm fond of a version of VNC called UltraVNC which has a repeater function ( http://www.uvnc.com/addons/repeater.html )  Have you tried that type of connection?
ASKER CERTIFIED SOLUTION
Avatar of scrathcyboy
scrathcyboy
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
After a fix here and there it all boiled down to McAfee.  McAfee Total Protection for small businesses was blocking not only VNC and Remote Desktop but a whol array of connections.  It kept on blocking even after 1) Turned the McAfee firewall off and 2) Completely unistalling McAfee.  Had to format and rebuild machine.  No McAfee now and everything is running smoothly!