- Newest
- Most votes
- Most comments
Hello,
To troubleshoot the issue, try the following steps:
Check the security group: Ensure that the inbound rule for the VNC port (default is 5901) allows traffic from your IP address.
Verify the VNC server configuration: Make sure the VNC server is configured to accept connections from external IP addresses.
Check the instance's network settings: Ensure that the instance's network settings allow outbound traffic on the VNC port.
Try a different VNC viewer: Try using a different VNC viewer, such as TightVNC or RealVNC, to rule out any issues with Ultra VNC Viewer.
Check the instance's system logs: Check the instance's system logs for any error messages related to the VNC server or connections.
Restart the VNC server: Try restarting the VNC server to see if it resolves the issue.
You may find it helpful to keep in-mind that an EC2 instance with a Public IP address, relies on the Internet Gateway to perform the (inbound) NAT. I'd try to find a solution that doesn't use an inbound rule of ANY Source IP but if you really need to deploy this architecture, here is a reference deployment: Linux Bastion Hosts on AWS - Remote access in the AWS Cloud
Probably a daft question, but is your EC2 instance running in graphics mode? What I mean is, you've installed GNOME or XFCE or similar, and enabled it, and the Linux default run-level is set to graphical.target ?
Thanks for the help. I have installed GNOME, but I haven't touched any settings. could you please guide me which files to check?
sudo systemctl get-default
will display the current default run level. If this isn't graphical.target then set it to that withsudo systemctl set-default graphical.target
I would advise taking a backup or snapshot of the system before you start, just in case this leaves your system unbootable or unreachable.
Relevant content
- Accepted Answerasked a year ago
- asked a year ago
- AWS OFFICIALUpdated 2 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated a year ago
Thanks for your help. Can you tell me more about 'VNC server configuration'? perhaps I should modify '.vnc/xstartup' or '.vnc/config'?