Skip to contentSkip to conversation

VNC Connectivity Problem

Qemu-devel Volkan YAZICI 1 participant 1 message Jan 6, 2009

lore
Share & tools
lore
#0 lore raw

Hi,

Are there any subnet restrictions with the VNC service supplied by qemu? For instance, I have two networks (192.168.4.0/8 and 192.168.2.0/8) connected via VPN. When I try to connect the VNC server running on 192.168.2.10, vncviewer gets stucked without a response. Here are some details:

192.168.4.70$ nmap -p 5903 192.168.2.10
Starting Nmap 4.53 ( http://insecure.org ) at 2009-01-06 14:29 EET Interesting ports on 192.168.2.10:
PORT STATE SERVICE
5903/tcp open vnc-3
Nmap done: 1 IP address (1 host up) scanned in 2.299 seconds

192.168.4.70$ strace vncviewer 192.168.2.10
setsockopt(4, SOL_TCP, TCP_NODELAY, [1], 4) = 0
brk(0x5ad000) = 0x5ad000
getpeername(4, {sa_family=AF_INET, sin_port=htons(5903), sin_addr=inet_addr("192.168.2.10")}, [17454291721331408912]) = 0 getsockname(4, {sa_family=AF_INET, sin_port=htons(58234), sin_addr=inet_addr("192.168.4.70")}, [17454291721331408912]) = 0
select(5, [4], NULL, NULL, {0, 0}) = 0 (Timeout)
poll([{fd=4, events=POLLIN|POLLPRI}], 1, 0) = 0
ioctl(3, FIONREAD, [0]) = 0
ioctl(3, FIONREAD, [0]) = 0
poll(... (Gets stuck.)

OTOH, when I try to connect to the same VNC server from a machine located in 192.168.2.0/8, it works without a problem. Does anybody have an idea about the problem?

Regards.