maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   VNC Viewer problems with N900 (https://talk.maemo.org/showthread.php?t=35926)

Sasler 2009-12-04 22:19

VNC Viewer problems with N900
 
I can't connect to a Real VNC Server running on a 32 bit Windows XP. I get connection errors. This is what I have tried and the errors I get:

192.168.0.1 (Error: Connection failed: )
192.168.0.1:0 (Error: Connection failed: )
192.168.0.1:5800 (Java server port - Error: Could not connect to server)
192.168.0.1:5900 (Connection port - Error: Connection failed: )

In all the variations except when trying the port 5800, the error comes almost immediately. It almost feels like that it doesn't even try to connect. When using the port 5800, however, it takes some time, so it's at least trying.

I'm able to connect fine to this IP address from Windows computer running the Real VNC Client. But just in case I tried even to disable the firewall, but that did not help either.

Pinging to this IP works fine. But for the ping to work, I have to use "sudo gainroot".

Am I doing something wrong?

Thank you for your help.

jiiv 2009-12-04 22:24

Re: VNC Viewer problems with N900
 
Is your tablet in the 192.168.0. subnet as well, or are you trying to connect via 3g or something?

Sasler 2009-12-04 22:28

Re: VNC Viewer problems with N900
 
Quote:

Originally Posted by jiiv (Post 410755)
Is your tablet in the 192.168.0. subnet as well, or are you trying to connect via 3g or something?

Yes, it's in the same subnet.

jiiv 2009-12-04 22:35

Re: VNC Viewer problems with N900
 
Does the n900 have telnet? If so, can you:
telnet 192.168.0.1 5900
from the tablet? (Sorry, my n900 hasn't arrived yet so I'm not sure whether telnet's included.)
Your windows desktop is definitely 192.168.0.1? That's not a gateway (router) address or anything?

Sasler 2009-12-04 22:51

Re: VNC Viewer problems with N900
 
Quote:

Originally Posted by jiiv (Post 410776)
Does the n900 have telnet? If so, can you:
telnet 192.168.0.1 5900
from the tablet? (Sorry, my n900 hasn't arrived yet so I'm not sure whether telnet's included.)
Your windows desktop is definitely 192.168.0.1? That's not a gateway (router) address or anything?

No, I don't have telnet. Where can I get it?

The IP address I gave is just an example. But I got yes, I'm using the correct IP and both are in the same subnet. ;)

MonkeyMagic 2009-12-04 22:52

Re: VNC Viewer problems with N900
 
Quote:

Originally Posted by Sasler (Post 410750)
I can't connect to a Real VNC Server running on a 32 bit Windows XP. I get connection errors. This is what I have tried and the errors I get:

192.168.0.1 (Error: Connection failed: )
192.168.0.1:0 (Error: Connection failed: )
192.168.0.1:5800 (Java server port - Error: Could not connect to server)
192.168.0.1:5900 (Connection port - Error: Connection failed: )

In all the variations except when trying the port 5800, the error comes almost immediately. It almost feels like that it doesn't even try to connect. When using the port 5800, however, it takes some time, so it's at least trying.

I'm able to connect fine to this IP address from Windows computer running the Real VNC Client. But just in case I tried even to disable the firewall, but that did not help either.

Pinging to this IP works fine. But for the ping to work, I have to use "sudo gainroot".

Am I doing something wrong?

Thank you for your help.

I think your desktop would be between 192.168.1.100 and 192.168.1.199 range. please someone correct me if I'm wrong but my desktop, laptop, xbox are 100 101 102 etc.
Not great with networking but I think yours should be 192.168.0.xxx:5800 (xxx=desktop address). Also ensure firewall ports are opened for 5800 and 5900 on xp and router i think.
Again please correct me If im wrong.

jiiv 2009-12-04 22:58

Re: VNC Viewer problems with N900
 
OK, good. I'm honestly not really sure where to get telnet for the n900, perhaps someone can chime in?
If your firewall is off there's no other firewall between tablet & desktop, the tablet can ping the desktop, and the VNC server is running on the desktop, there really shouldn't be any issues...we're sure you can still connect from another desktop in that subnet?
Sorry, it's a bit hard to troubleshoot without telnet/nmap/tcpdump/whatever, and I'm not sure what's available for the n900 yet. :(

jiiv 2009-12-04 22:59

Re: VNC Viewer problems with N900
 
Quote:

Originally Posted by MonkeyMagic (Post 410795)
Also ensure firewall ports are opened for 5800 and 5900 on xp and router i think.

FYI, only need 5900 for VNC.

jiiv 2009-12-04 23:02

Re: VNC Viewer problems with N900
 
I'm about to leave the office here, but could you post the output of
sudo ifconfig wlan0
? (I'm ...assuming that the wireless interface is wlan0...)

MonkeyMagic 2009-12-04 23:11

Re: VNC Viewer problems with N900
 
Quote:

Originally Posted by jiiv (Post 410804)
FYI, only need 5900 for VNC.

cool thanks. I just thought 5900 was for viewing through web browser. Not got my n900 yet but look forward to vn with it. I'll refer back to here for info.

jiiv 2009-12-04 23:18

Re: VNC Viewer problems with N900
 
If I remember my windows ports correctly, 5800 is the browser port, 5900 is the vnc port, and 5500 is for 'listen mode' on the viewer.

Sasler 2009-12-04 23:54

Re: VNC Viewer problems with N900
 
Quote:

Originally Posted by jiiv (Post 410809)
I'm about to leave the office here, but could you post the output of
sudo ifconfig wlan0
? (I'm ...assuming that the wireless interface is wlan0...)

My network connection is working fine (pinging works) and the subnet is the same, this is not the issue. Maybe I should clarify that I do work in IT. ;) I'm just not that familiar with Linux.

I was wondering if could have something to do with rights, since I need to use sudo just to ping. Again, I don't know much about Linux, so I have no idea.

Thank you for you help anyway. :)

b10 2009-12-05 02:01

Re: VNC Viewer problems with N900
 
I am having the same issue, but only when trying to use VNC to connect to a Windows machine running VNC server.
Connecting to a Mac running its built-in share-screen function works fine.

jiiv 2009-12-05 03:37

Re: VNC Viewer problems with N900
 
Sorry Sasler; didn't mean to imply anything. We've had a lot of relatively nontechnical users show up lately so I've been trying to explain everything as 'least common denominator' as possible.
I doubt it's a permissions issue, but I could certainly be wrong.
I did a bit of searching around and it appears that the Maemo-Extras repository has a telnet client. If I understand correctly 'Extras' should be relatively safe to use, but you should probably avoid Extras-Testing and Extras-Devel at this point. To add the repository:
Go into the Application manager.
Tap the menu -> Application catalogs…
Tap Maemo Extras.
Uncheck Disabled.
and then you should be able to browse for it. I can't actually find it in the list, but a blog referenced it being there.
Additionally, this telnet client from the garage _might_ work.
Of course it's possible that there's a problem in the version of vncviewer you're using. Was it in the default repositories? I know there are several people who are apparently using vnc from the 900, but I don't know where it came from. Anyone with an n900 and working vnc care to speak up? :)
As a temporary alternative, I believe there's an rdesktop client available as well since you're working with Windows machines.
Oh, here's a link to a vncviewer that's supposed to work.
I wish I could be of more assistance. :/ I'll browse around a bit more later on to see whether I can find anything. Meanwhile, maybe see if that telnet client will install for you, or try that vncviewer link to see if it will cooperate any more.

jiiv 2009-12-05 03:38

Re: VNC Viewer problems with N900
 
Just for the sake of completion, what version of realvnc are you using? And what are your authentication/encoding settings at?

Sasler 2009-12-05 07:01

Re: VNC Viewer problems with N900
 
Quote:

Originally Posted by jiiv (Post 411065)
Sorry Sasler; didn't mean to imply anything. We've had a lot of relatively nontechnical users show up lately so I've been trying to explain everything as 'least common denominator' as possible.

It's quite aright, I understand that. I wasn't upset or anything. I just thought to save some time by telling that I do understand the basics. :)

Quote:

Originally Posted by jiiv (Post 411065)
I did a bit of searching around and it appears that the Maemo-Extras repository has a telnet client.

Additionally, this telnet client from the garage _might_ work.

I cannot find the Telnet anywhere and the link you provided had only the .deb files which I can only save but not open. Any idea how to install .deb files? And is it safe?

Quote:

Originally Posted by jiiv (Post 411065)
Of course it's possible that there's a problem in the version of vncviewer you're using. Was it in the default repositories? I know there are several people who are apparently using vnc from the 900, but I don't know where it came from. Anyone with an n900 and working vnc care to speak up? :)
As a temporary alternative, I believe there's an rdesktop client available as well since you're working with Windows machines.
Oh, here's a link to a vncviewer that's supposed to work.

Yes, the VNC Viewer is from Maemo-Extras repository. It's the same as in your link.

Thank you for your help.

Sasler 2009-12-05 07:02

Re: VNC Viewer problems with N900
 
Quote:

Originally Posted by b10 (Post 411002)
I am having the same issue, but only when trying to use VNC to connect to a Windows machine running VNC server.
Connecting to a Mac running its built-in share-screen function works fine.

What VNC server are you using?

Sasler 2009-12-05 07:10

Re: VNC Viewer problems with N900
 
Quote:

Originally Posted by jiiv (Post 411068)
Just for the sake of completion, what version of realvnc are you using? And what are your authentication/encoding settings at?

VNC Server Enterprise Edition E4.4.0 32-bit
Authentication: VNC password
Encryption: Always on (I've tried this with "Prefer off", but it didn't help)

jiiv 2009-12-05 07:28

Re: VNC Viewer problems with N900
 
Yeah, I was thinking that maybe the vncviewer didn't have encryption support, but apparently that's not it (or at least not all of it).
Quote:

Originally Posted by Sasler (Post 411159)
I cannot find the Telnet anywhere and the link you provided had only the .deb files which I can only save but not open. Any idea how to install .deb files? And is it safe?

Well, I'm not entirely sure how safe it is. I've never managed to brick my n810 by installing arm .deb packages, but I can't necessarily promise that they won't break your n900. I would assume that in the case of a telnet app the worst-case scenario is that it simply won't run. What I would probably do is try too install it and if it says it's going to need to remove or upgrade any other packages, say no (it'll prompt you if it thinks it needs to). It _may_ not be 'optified', so it might use your root partition for storage, but it _should_ be pretty small. Here's the deal:
1. Download the armel .deb file to your tablet.
2. Open an xterminal.
3. Type this and hit enter:
find / -name telnet-client_0.17-36_armel.deb
4. That should show you the path to where it's stored (for example, /home/user/telnet-client_0.17-36_armel.deb)
5. Type the following to install it, substituting the full path name for _pathname_:
sudo dpkg -i _pathname_

If the package doesn't require any additional dependencies, it will just install. If it does, it will tell you what it wants to install/remove/upgrade and prompt you Y/N. As long as you don't remove a bunch of packages on accident (by saying 'Y'), I wouldn't think that it would be terribly risky-but I can't say for sure without trying it out. If you can wait a few days, my n900 apparently shipped today and I should have it by the end of next week; I'm more than happy to test it out on mine first. VNC is going to be one of the first applications I install, and I'll eventually need telnet anyway. I'm happy to keep trying to troubleshoot with you, but without something (telnet) to try that port from the tablet I'm sort of stuck; it sounds as though you have everything in order over there.

Sasler 2009-12-05 07:35

Re: VNC Viewer problems with N900
 
Quote:

Originally Posted by jiiv (Post 411170)
If you can wait a few days, my n900 apparently shipped today and I should have it by the end of next week; I'm more than happy to test it out on mine first. VNC is going to be one of the first applications I install, and I'll eventually need telnet anyway. I'm happy to keep trying to troubleshoot with you, but without something (telnet) to try that port from the tablet I'm sort of stuck; it sounds as though you have everything in order over there.

Yeah, I think I can wait. :D

Tcpdump could give some indications what is happening, but I can't find that either. Strange. :confused: I hope there will be soon an easy way to install these basic tools on N900.

MonkeyMagic 2009-12-05 07:40

Re: VNC Viewer problems with N900
 
Quote:

Originally Posted by Sasler (Post 411171)
Yeah, I think I can wait. :D

I hope there will be soon an easy way to install these basic tools on N900.

Me too, for that matter:D. Ill be in same boat no doubt. :confused:

jiiv 2009-12-05 07:51

Re: VNC Viewer problems with N900
 
Yeah :/ Unfortunately the app repositories aren't quite up to snuff yet. There are quite a few apps in extras-testing and extras-devel that are probably fine, but they won't be promoted until they've seen some more ...well, testing :) There just aren't enough devices in the wild yet; I'm sure things will start moving along pretty quickly.
I'm thinking that the vast majority of problems resulting from testing/devel could be quickly fixed with a little work in the shell, or worst-case a reflash, but in reality I don't think the wait will be too long before the useful stuff makes its way into extras (are they calling it 'applications' now?).

stobbsc 2009-12-09 09:42

Re: VNC Viewer problems with N900
 
I can't get VNC to work :-( I've installed VNCViewer on my phone. I then use the free version of RealVNC on my Windows 7 PC.
I know it's connected cause it asks for the password when I try and connect from the phone. However all I get is a black screen on my N900?

Could someone help me please?

tanekray 2009-12-09 16:36

Re: VNC Viewer problems with N900
 
Mine didn't work at first. I played around for a bit trying :0 etc and disabling firewall, nothing made a difference. Setting Encryption to "Prefer On" on the server seemed to fix it. Just straight forward 192.168.x.y on client too.

Sasler 2009-12-09 18:01

Re: VNC Viewer problems with N900
 
Quote:

Originally Posted by tanekray (Post 419150)
Mine didn't work at first. I played around for a bit trying :0 etc and disabling firewall, nothing made a difference. Setting Encryption to "Prefer On" on the server seemed to fix it. Just straight forward 192.168.x.y on client too.

Pity that I didn't see this before, because I just resolved this myslef after hours spent finding a good packet sniffer for Windows (SmartSniff is nice :)) and finding out what was the problem. :D It turns out that there were two different issues.

1. It turns out that the VNC Viewer does not like it when Encryption is set to "Always on". "Prefer on" or "Prefer off" always work. Now I had tried this already and it didn't work. This brings to the second issue.

2. If you try too many times (more then 5 in RealVNC default setting) the host will be blacklisted. You can change temporally the BlacklistThreshold in Expert setting to a higher number to be able to try again. After this the solution 1 should work.

I hope this is helpful for other who have issues with getting VNC Viewer to work. :)

Rob1n 2009-12-09 18:56

Re: VNC Viewer problems with N900
 
Quote:

Originally Posted by Sasler (Post 419326)
1. It turns out that the VNC Viewer does not like it when Encryption is set to "Always on". "Prefer on" or "Prefer off" always work. Now I had tried this already and it didn't work. This brings to the second issue.

2. If you try too many times (more then 5 in RealVNC default setting) the host will be blacklisted. You can change temporally the BlacklistThreshold in Expert setting to a higher number to be able to try again. After this the solution 1 should work.

These issues are both specific to the commercial VNC offerings (Enterprise/Personal) - the free version doesn't include any encryption or blacklisting. The maemo vncviewer will be based on the free codebase, so that's why encryption has to be disableable for it to connect.

stobbsc 2009-12-10 08:00

Re: VNC Viewer problems with N900
 
I can't find any of those options in the free version.

Should I maybe get a better version of realVNC?

Rob1n 2009-12-10 09:54

Re: VNC Viewer problems with N900
 
I don't think the free edition supports Windows 7 currently (or even Vista), so various things may not work properly. Have you made sure that connecting from another PC actually works? If not, then it's a server problem.

2disbetter 2010-01-06 20:57

Re: VNC Viewer problems with N900
 
yeah the free edition does NOT support Vista and by extension Windows 7. Licensed personnel and profession edition do.

You can try the trial version to test it out though.

2d

gtessier00 2010-01-18 01:11

Re: VNC Viewer problems with N900
 
I just managed to get vnc to work...
I'm on Windows 7, behind a linksys router and Kaspersky's firewall and I didn't deactivate any protection.
First, connect using your address IP that is NOT local (In my case, 24.122.XXX.XX). On my router, I redirected port 5900 to my LOCAL ip adress which is 192.168.1.101 (for my laptop).

I needed to download VNC personnal edition, because I use Windows 7, and you need to change encryption settings.

Good luck!

wmarone 2010-01-18 02:09

Re: VNC Viewer problems with N900
 
Quote:

Originally Posted by 2disbetter (Post 456209)
yeah the free edition does NOT support Vista and by extension Windows 7. Licensed personnel and profession edition do.

You can try the trial version to test it out though.

2d

UltraVNC supports Vista and 7, and works fine with the VNC client in the repository.

tuxian 2010-01-18 07:55

Re: VNC Viewer problems with N900
 
A use x11vnc as server and if i enter "hello" then "hheelllloo" will be entered.
Each letter is entered twice.

gtessier00 2010-01-20 00:07

Re: VNC Viewer problems with N900
 
hey everyone
i have a little problem using vnc viewer from my n900 to connect to my laptop. i hope you know whats wrong...
i enter my ip adress and connect, enter the password and i can see my desktop BUT the problem is that i cant move or do anything on the screen. its there, actualizing every second or so, but i cant click or do anything!!! i cant even send ctrl+alt+del command... and after a small time lets say 1 min, it says connection lost...
whats wrong?

norstadt 2010-01-22 00:31

Re: VNC Viewer problems with N900
 
I just tried setting this up and can't get it to work. I installed Enterprise on my pc (Windows XP 32-bit) and have set the Encryption to "Prefer on".

I've tested a VNC Client on my laptop, both in the local network and via an external network, and it worked ok.

When I try with the N900 I get a "Could not connect to server" error both locally and externally. I'm trying the following IPs;

192.168.0.2:5800 (locally)
xxx.xxx.xxx.xxx:5800 (externall)

I have a DG834G router and have port forwarded 5500, 5800 & 5900 to 192.168.0.2.

Any ideas?

bunanson 2010-01-22 00:44

Re: VNC Viewer problems with N900
 
I am using tightVNC on winXP, and it works from within (subnet, 192.168.1.xxx) and outside (external ip address). The only requirement tightVNC requires is to set up a user ID.

I would try to setup working within the network before attempting to do outside the network.
We all know there is 2 firewalls one has to deal with. One is your virus protection, which automatically setup a firewall which can be the same or can be different from your window firewall.

My setup are detailed here, http://talk.maemo.org/showthread.php?t=35043

bun

wongjemi85 2010-01-22 02:36

Re: VNC Viewer problems with N900
 
May I know if there is a way to clear the IP history list (IP that was connected to in the past)?

Rob1n 2010-01-22 09:34

Re: VNC Viewer problems with N900
 
Quote:

Originally Posted by norstadt (Post 487928)
I just tried setting this up and can't get it to work. I installed Enterprise on my pc (Windows XP 32-bit) and have set the Encryption to "Prefer on".

I've tested a VNC Client on my laptop, both in the local network and via an external network, and it worked ok.

When I try with the N900 I get a "Could not connect to server" error both locally and externally. I'm trying the following IPs;

192.168.0.2:5800 (locally)
xxx.xxx.xxx.xxx:5800 (externall)

I have a DG834G router and have port forwarded 5500, 5800 & 5900 to 192.168.0.2.

Any ideas?

Port 5800 is usually for the Java applet, so unless you've reset this you should be using 5900 (or just :0) in the VNC client.

jaeezzy 2010-01-22 14:07

Re: VNC Viewer problems with N900
 
Sorry for this completely noob question but how do I set up my router etc to be able to VNC to my home network from a different network. Locally I can VNC to my Vista laptop with my n900 and its awesome and it would be super awesome if I could do the same from completely different network. BTW, I'm using D-Link Dir-300 router. Thank you.

norstadt 2010-01-22 19:53

Re: VNC Viewer problems with N900
 
Quote:

Originally Posted by Rob1n (Post 488307)
Port 5800 is usually for the Java applet, so unless you've reset this you should be using 5900 (or just :0) in the VNC client.

Thanks for pointing that out. But I tried 5900 and am still getting the same error when I attempt from outside. But if I try 5900 on the local network I get an immediate "Connection failed" response. Perhaps I'm still missing something in my router setup.

norbertauslinz 2010-01-22 20:16

Re: VNC Viewer problems with N900
 
Please try Port 5901


All times are GMT. The time now is 01:16.

vBulletin® Version 3.8.8