Debug Failed to connect to server!



Similar documents
Tunnel VNC through SSH Tutorial Version 1

Computer Networks I Laboratory Exercise 1

Procedure: You can find the problem sheet on Drive D: of the lab PCs. 1. IP address for this host computer 2. Subnet mask 3. Default gateway address

Quick Connect. Overview. Client Instructions. LabTech

Overview 1. Document Objectives 1. Document Organization 1. Preparation before VIP-280/VIP-320 administration 1

How to Setup and Connect to an FTP Server Using FileZilla. Part I: Setting up the server

How to configure DVR and computer for running Remote Viewer via IP network

Network/Floating License Installation Instructions

Using Remote Desktop Software with the LAN-Cell

Instructions for transferring the SINUMERIK HMI to an external screen

Lab Conducting a Network Capture with Wireshark

MultiSite Manager. Setup Guide

1 PC to WX64 direction connection with crossover cable or hub/switch

Immotec Systems, Inc. SQL Server 2005 Installation Document

Using Remote Desktop Software with the LAN-Cell 3

1.0 Basic Principles of TCP/IP Network Communications

NetSpective Global Proxy Configuration Guide

Guide to Setting up Internet Connection Sharing for Windows

Microsoft SQL Server 2008 R2 Express Edition with Advanced Services Installation Guide

MultiSite Manager. Setup Guide

Basic Exchange Setup Guide

USER GUIDE. Ethernet Configuration Guide (Lantronix) P/N: Rev 6

Tunnels and Redirectors

Scenario 1: One-pair VPN Trunk

Xerox EX Print Server, Powered by Fiery, for the Xerox 700 Digital Color Press. Printing from Windows

PigCHAMP Knowledge Software. Enterprise Edition Installation Guide

Table of Contents. FleetSoft Installation Guide

Quick Note 026. Using the firewall of a Digi TransPort to redirect HTTP Traffic to a proxy server. Digi International Technical Support December 2011

Installation and Connection Guide to the simulation environment GLOBAL VISION

CREATING AN IKE IPSEC TUNNEL BETWEEN AN INTERNET SECURITY ROUTER AND A WINDOWS 2000/XP PC

M2M Series Routers. Port Forwarding / DMZ Setup

Windows Server Firewall Configuration

Installation Guide. Your FedEx Ship Manager system number. Before you start

Basic Exchange Setup Guide

VPN Configuration of ProSafe VPN Lite software and NETGEAR ProSafe Router:

Spam Marshall SpamWall Step-by-Step Installation Guide for Exchange 5.5

ADSL Router Quick Installation Guide Revised, edited and illustrated by Neo

SYMETRIX SOLUTIONS: TECH TIP August 2014

Installing GFI MailEssentials

Enabling NAT and Routing in DGW v2.0 June 6, 2012

To install the SMTP service:

ETHERNET WEATHER STATION CONNECTIONS Application Note 33

Windows Server Update Services 3.0 SP2 Step By Step Guide

Network Address Translation (NAT)

HOW TO RETRIEVE FILES FROM THE TARGET ANALYTICS FTP SITE

Fiery EX4112/4127. Printing from Windows

Technical Brief for Windows Home Server Remote Access

1. Installing the client module on the phone

HP Device Manager 4.6

Configuration Guide. How to set up the IPSec site-to-site Tunnel between the D-Link DSR Router and the Sonicwall Firewall.

KAREL UCAP DNS AND DHCP CONCEPTS MANUAL MADE BY: KAREL ELEKTRONIK SANAYI ve TICARET A.S. Organize Sanayi Gazneliler Caddesi 10

Using IPsec VPN to provide communication between offices

ipad Installation and Setup

Biznet GIO Cloud Connecting VM via Windows Remote Desktop

How to Wirelessly Surf the Internet on your. Handheld via Bluetooth

Troubleshooting File and Printer Sharing in Microsoft Windows XP

Installation Guide For Choic Enterprise Edition

Windows Firewall Configuration with Group Policy for SyAM System Client Installation

How To Remotely View Your Security Cameras Through An Ezwatch Pro Dvr/Camera Server On A Pc Or Ipod (For A Small Charge) On A Network (For An Extra $20) On Your Computer Or Ipo (For Free

NETWORK SET UP GUIDE FOR

How to setup PPTP VPN connection with DI-804HV or DI-808HV using Windows PPTP client

PC/POLL SYSTEMS Version 7 Polling SPS2000 Cash Register TCP/IP Communications

ReadyNAS Remote Troubleshooting Guide NETGEAR

Configuring Routers and Their Settings

Chapter 8 Router and Network Management

NEFSIS DEDICATED SERVER

SIP Domain/Proxy, Ring Detect Extension or/and Page Audio Extension, (The 8180 needs its own phone extension) Authentication ID, Password,

How To Install A New Database On A 2008 R2 System With A New Version Of Aql Server 2008 R 2 On A Windows Xp Server 2008 (Windows) R2 (Windows Xp) (Windows 8) (Powerpoint) (Mysql

PFSENSE Load Balance with Fail Over From Version Beta3

Install MS SQL Server 2012 Express Edition

SGUL VPN Connection Guide for Windows 10

Networking Basics for Automation Engineers

CostsMaster. CostsMaster Dongle Server User Guide

Chapter 6 Configuring the SSL VPN Tunnel Client and Port Forwarding

Vodafone PC SMS (Software version 4.7.1) User Manual

BASIC ANALYSIS OF TCP/IP NETWORKS

freesshd SFTP Server on Windows

Basics of Port Forwarding on a Router for Security DVR s

DSL- G604T Frequently asked Questions.

WHITE PAPER Citrix Secure Gateway Startup Guide

StarMOBILE Network Configuration Guide. A guide to configuring your StarMOBILE system for networking


OpenVPN over SSH tunneling

Introduction. What is a Remote Console? What is the Server Service? A Remote Control Enabled (RCE) Console

Setting up VMware ESXi for 2X VirtualDesktopServer Manual

Host Installation on a Terminal Server

How to make a VPN connection to our servers from Windows 8

Network Configuration Settings

How To - Configure Virtual Host using FQDN How To Configure Virtual Host using FQDN

MFC7840W Windows Network Connection Repair Instructions

Multi-Homing Dual WAN Firewall Router

Setting up VPN connection: DI-824VUP+ with Windows PPTP client

Smart Tips. Enabling WAN Load Balancing. Key Features. Network Diagram. Overview. Featured Products. WAN Failover. Enabling WAN Load Balancing Page 1

Lab - Using Wireshark to View Network Traffic

FortiVoice. Version 7.00 VoIP Configuration Guide

Classroom Management network FAQ and troubleshooting

Printing Options. Netgear FR114P Print Server Installation for Windows XP

NovaBACKUP xsp Version 12.2 Upgrade Guide

Laptop Backup - Administrator Guide (Windows)

Basic Troubleshooting (Common Problems)

Transcription:

Debug Failed to connect to server! Version 2 To many of the first time visitors to the forums, the following screenshot may look all too familiar. There are many causes for this error and unfortunately this is all the information available to the viewer so it isn t possible for the developers to display a more specific error message. Microsoft offers a port query utility that can be used to help isolate exactly where the connection is failing. From Microsoft s site: PortQry.exe is a command-line utility that you can use to help troubleshoot TCP/IP connectivity issues. PortQry.exe runs on Windows 2000-based computers, on Windows XP-based computers, and on Windows Server 2003-based computers. The utility reports the port status of TCP and UDP ports on a computer that you select. Microsoft also offers a front end to the command line utility called PortQueryUI which I ll be using for debugging. Download PortQueryUI from Microsoft at http://www.microsoft.com/downloads/details.aspx?familyid=8355e537-1ea6-4569- AABB-F248F4BD91D0&displaylang=en. The download is a self-extracting executable so when you run it, it will prompt you for a path for extraction. We ll just be scratching the surface of what PortQry can be used for, but there s a great two part How To at http://www.windowsecurity.com/articles/mastering-portqryexe-part1.html and at http://www.windowsecurity.com/articles/mastering-portqryexe-part2.html if you d like further details.

Is the UltraVNC Server started and listening on the port you think it is? Ok, let s start at the beginning on the machine you are trying to access from a remote location. UltraVNC installation procedures are presented at http://www.uvnc.com/install/installation.html and I ll be assuming that you ve looked there first. This question can be answered either by connecting the UltraVNC Viewer to the UltraVNC Server in Loopback mode or using PortQueryUI. If you ve successfully connected the UltraVNC Viewer to the UltraVNC Server in Loopback mode you can skip to the next question. However, since this is a debug procedure using this tool, start the Port Query User Interface by clicking Start Run Browse then navigate to the location of the PortQueryUI.exe executable, select it, click Open, and press <Enter>. The default Enter destination IP or FQDN to query: is the local machine, 127.0.0.1 which is what we want so leave that alone. The default Query Type is Query predefined service:, but we are only verifying that the UltraVNC server is running and that it s listening on the port we think so change it to Manually input query ports:, set Ports to query: to 5900 or the port you ve set the server to listen to (for the remainder of the procedure I ll refer to port 5900 so substitute your port if using a different one for the rest of the document) and leave the Protocol: set to its default TCP then click Query.

The results are displayed in the Query Result: area. I won t bother explaining the entire display (refer to the references if you can t understand it), but what we re looking for is the TCP port 5900 status. In this case, I ve shown the results with my UltraVNC Server not started so the results are that it is NOT LISTENING. This would also be the result if my server were listening on a different port. If NOT LISTENING, and you installed the UltraVNC server as a service, check to see that it has been started. Click Start Run, type services.msc, and press <Enter>. In the list of services you should see VNC Server and its Status should be Started and its Startup Type should be Automatic. If NOT LISTENING, and if you didn t install the UltraVNC server as a service, ensure that you manually started it.

If NOT LISTENING, and the server is running verify that it is listening on the port you think. Double-click on the server s eyeball icon,, to open the administrative properties. Verify that the Main: port under Incoming Connections is set to 5900 or that Auto is selected which will also cause the server to listen on port 5900. Once the UltraVNC server is running and listening on the port we expect, rerun the PortQueryUI query and you should get the following result.

TCP port 5900 status is LISTENING after the server is running and set to port 5900. Verify by connecting the UltraVNC Viewer to the UltraVNC Server in Loopback mode.

Is connection being blocked by your security software? This is the reason why 90% of the UltraVNC users receive the failed to connect error. Unfortunately, answering this question requires having more than one machine on your private network. If I figure out a way to do it with a single PC, I ll update the procedures. If you don t have another machine inside your LAN, then proceed to the next question where we ll try to answer this question as part of answering the next question. Download PortQueryUI from Microsoft at http://www.microsoft.com/downloads/details.aspx?familyid=8355e537-1ea6-4569- AABB-F248F4BD91D0&displaylang=en on another machine inside your private network. The download is a self-extracting executable so when you run it, it will prompt you for a path for extraction. Start the Port Query User Interface by clicking Start Run Browse then navigate to the location of the PortQueryUI.exe executable, select it, click Open, and press <Enter>. Since we re communicating over the LAN, we need to change the default Enter destination IP or FQDN to query: to the private IP address of the machine you are trying to access from a remote location. In my case, that s 192.168.1.3. You can obtain the private IP address using ipconfig on the machine running the server as shown in the following screenshot. You get a command prompt by clicking Start Run, type cmd, and press <Enter>. The default Query Type is Query predefined service:, but we are only verifying that security software is not preventing the connection so change it to Manually input query ports:, set Ports to query: to 5900 and leave the Protocol: set to its default TCP then click Query.

The results are displayed in the Query Result: area. What we re looking for is the TCP port 5900 status. In this case, I ve shown the results with the Windows firewall turned on without exceptions on the machine running the server so the results are that it is FILTERED. This indicates that PortQry did not receive a response from the port. If FILTERED, then the VNC connection may be being blocked by your security software. To look at the status of the Windows firewall, click Start Run, type firewall.cpl, and press <Enter>. If the firewall is on as shown in the following screenshot, you need to create an exception for the connection.

Click Exceptions Add Port and add a TCP exception for the VNC traffic as shown in the following screenshot then click OK.

There are too many different security software choices to cover them all here, but this should give you an idea of what you need to do. Once you allow an exception for the UltraVNC traffic, rerun the PortQueryUI query and you should get the following result. TCP port 5900 status is LISTENING after adding port exception.

Is connection being blocked by your router? Hopefully you ve been able to confirm that the connection isn t being blocked by your security software in the previous section, but if not we should be able to confirm that here. Move back to the PC you re having trouble accessing remotely. You ll need to identify your public IP address assigned by your internet service provider or DynDNS host name. You can see your public IP address by visiting http://whatsmyip.org/, but since most ISPs assign a dynamic IP address, I recommend signing up for a free account at http://www.dyndns.com/. This will allow you to create a host name that will resolve to your dynamic public IP address. Start the Port Query User Interface by clicking Start Run Browse then navigate to the location of the PortQueryUI.exe executable, select it, click Open, and press <Enter>. Since we re communicating over the WAN, we need to change the default Enter destination IP or FQDN to query: to the public IP address assigned by your ISP or DynDNS host name. The default Query Type is Query predefined service:, but we are only verifying that router is not preventing the connection so change it to Manually input query ports:, set Ports to query: to 5900 and leave the Protocol: set to its default TCP then click Query.

The results are displayed in the Query Result: area. What we re looking for is the TCP port 5900 status. In this case, I ve shown the results without port forwarding port 5900 on my router so the results are that it is FILTERED. This indicates that PortQry did not receive a response from the port. If FILTERED, then the VNC connection may be being blocked by your router or your security software if you weren t able to eliminate that as a possibility in the last step (if that s the case, refer to the If FILTERED section under the security software question above). There are too many router types for me to cover them all here so see http://portforward.com/routers.htm for instruction on how to port forward using the router you have. You want to port forward port 5900 TCP traffic to the private IP address of the

machine you are trying to access from a remote location. Once port forwarding is set up properly, rerun the PortQueryUI query and you should get the following result. TCP port 5900 status is LISTENING after adding port forwarding. Not all routers allow for a connection using the public IP address from inside the LAN. As a result, it is possible that a FILTERED response may be received even when configured properly. If you ve followed the PortForward instructions carefully and still receive the FILTERED response, you can also check your port forward setup by using the following link: https://www.grc.com/x/portprobe=5900. This uses the Gibson Research Corporation s ShieldsUP! Utility. ShieldsUP! returns a Status of Stealth when it does not receive a response from the port. The VNC connection may be being blocked by your router or your security software if you weren t able to eliminate that as a

possibility in the last step (if that s the case, refer to the If FILTERED section under the security software question above). ShieldsUP! returns a Status of OPEN! when it receives a response from the port so the router has been properly configured. ShieldsUP! returns a Status of Closed when the port has been forwarded to a PC, but the UltraVNC server software is not currently listening on that PC.

Is connection being blocked by the firewall or proxy at the remote location? At this point we re sure that everything is set up properly at home so if you still have problems connecting, then the only other possibility is something on the network of the PC running the UltraVNC viewer. It may be possible to resolve this by modifying the port from the default 5900. Some corporate firewalls only allow internet traffic on a very small number of ports so you may be limited to ports 80 and 443. In addition, some corporate firewalls require all outgoing traffic to be routed through a proxy. Tunneling the VNC traffic through a secure shell as described in http://forum.ultravnc.info/viewtopic.php?t=5890 is another possible means of getting rid of the dreaded Failed to connect to server! error.