Solved

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

Posted on 2006-07-13
9
2,371 Views
Last Modified: 2008-01-09
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!
0
Comment
Question by:ibiquity
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
  • 2
  • +3
9 Comments
 
LVL 43

Expert Comment

by:zephyr_hex (Megan)
ID: 17103155
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?
0
 

Expert Comment

by:moistowelet
ID: 17103679
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
0
 
LVL 1

Expert Comment

by:PugnaciousOne
ID: 17103962
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.
0
Building an interactive eFuture classroom

Watch and learn how ATEN provided a total control system solution including seamless switching matrix switch, HDBaseT extenders, PDU, lighting control to build an interactive eFuture classroom.

 
LVL 44

Expert Comment

by:scrathcyboy
ID: 17105045
is this connect across the internet or just the local lan?  That is crucial info before we can give a solution.
0
 
LVL 3

Expert Comment

by:waqaswasib
ID: 17106345
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
0
 

Author Comment

by:ibiquity
ID: 17107742
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!
0
 
LVL 1

Expert Comment

by:PugnaciousOne
ID: 17107774
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?
0
 
LVL 44

Accepted Solution

by:
scrathcyboy earned 500 total points
ID: 17109904
It is possible that you are confusing the VNC terms -- they are exactly backward to what a "normal" person would expect.  The server is actually the listener for an incoming connection, and the "listener" is actually the "server" that does the active connecting.  So without arguing terms, if you are trying to connect to anyone, you need to run what they call the "listener" and they run the "server".  Make sure their server is set to accept a connection by default, and they have the ports at 5900 5800 and auto.

Now when you connect to them you type in "computer1" if you are on the lan (use their computer name).  If someone is connecting to you over the net, they need " 107.43.25.131:0 " i.e. your WAN IP and :0 for the first person on the network running the port settings on "0" -- not auto.  If calling in, the "server" needs to have a fixed IP -- and here is the problem, the router needs to forward ports 5900 and 5800 to a fixed IP number, but if more than 1 person is running VNC, then you need to forward ports 5901 and 5801 to the NEXT person with a fixed IP, and set their server port setting to "1", not "0".
0
 

Author Comment

by:ibiquity
ID: 17141214
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!
0

Featured Post

Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When you try to share a printer , you may receive one of the following error messages. Error message when you use the Add Printer Wizard to share a printer: Windows could not share your printer. Operation could not be completed (Error 0x000006…
WARNING:   If you follow the instructions here, you will wipe out your VTP and VLAN configurations.  Make sure you have backed up your switch!!! I recently had some issues with a few low-end Cisco routers (RV325) and I opened a case with Cisco TA…
Viewers will learn how to connect to a wireless network using the network security key. They will also learn how to access the IP address and DNS server for connections that must be done manually. After setting up a router, find the network security…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Suggested Courses
Course of the Month2 days, 18 hours left to enroll

622 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question