Solved

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

Posted on 2006-07-13
9
2,189 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
  • 2
  • 2
  • 2
  • +3
9 Comments
 
LVL 42

Expert Comment

by:zephyr_hex
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
 
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
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 
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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

What’s a web proxy server? A proxy server is a server that goes between clients and web servers, used in corporate to enforce corporate browsing policy and ensure security. Proxy servers are commonly used in three modes. A)    Forward proxy …
ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

746 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now