WM5 / Remote Desktop util. - Windows Mobile Development and Hacking General

I have changed my default remote desktop port on some servers, but Remote Desktop that comes with WM5 doesn't like that i connect to
example: hostort
Is there a way to go around that?

Open the PocketPC registry and navigate to:
HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client\Default
Add a DWORD named Server Port and enter the decimal port number of the new Remote Desktop Listening Port. Exit the registry editor program and soft reset the PocketPC. The PocketPC will now connect to the Remote Desktop host using the new listening port.
Quoted from here.

Open the PocketPC registry and navigate to:
HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client\Default
Add a DWORD named Server Port and enter the decimal port number of the new Remote Desktop Listening Port. Exit the registry editor program and soft reset the PocketPC. The PocketPC will now connect to the Remote Desktop host using the new listening port.
Quoted from here.

Thanks. Workin great

Related

Using a Port other than 3389 for Terminal services ?????????

Hi,
Is it possible to use a port other 3389 with the Terminal services client?
Or is this hardcoded into the client ?
Thanks
Rob
No its not possible. Also the server always runs on port 3389.
lutzs said:
No its not possible. Also the server always runs on port 3389.
Click to expand...
Click to collapse
REALLY!
Please explain ? As we run a multiple server network with Terminal services running on various port from 3385 up to 3399. We also change the default port on our workstations (XP prof) from 3389 This a well documented item. You then specify in Terminal server client:- IPORT. Example: 84.234.456.789:3396. Use it everyday!
Rob
two ways that you can do this:
1: on the host machine, regedit to here:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\
Control\Terminal Server\WinStations\RDP-Tcp
Find "Portnumber" and open. Click on "Decimal" and change to the desired port. The PC will now listen on your specified port number for incoming terminal service requests.
2: If you have a router you can use port redirection. (virtual servers etc)
Specify the ext port number (eg. 3390) then the int port number (3389) then the IP address of your target PC. This will redirect all traffic recieved on port 3390 to port 3389 to your specified internal IP address.
To access remotely for example using remote desktop connection, enter your IP address (or dynamic DNS address) followed by :3390
Hope this helps
J
Thanks Codiac,
So you can't specify the port in terminal services client connection box (as per a Full size PC runing XP Prof) only as a registery change.
Your piccy is right, you can enter IP addresses followed by a port number.
eg: 81.33.44.55:3399
The problem with, for example XP Pro is that it will only listen on 3389 by default, the registry change is necessary if you want to access more than 1 PC on a network.
As per your piccy, once you have edited the registry to a chosed port, the PC will then listen on that port (eg. :3390).
I personally use Option 2, this requires no change to the registry of a PC, the router does the redirection for you.
for example:
PC 1 = 192.168.0.1
PC 2 = 192.168.0.2
To access PC 1 allow a rule in the router to pass port (external) 3389 to (internal) 3389 to 192.168.0.1
To access PC 2 allow rule in router to pass port (external) 3390 to (internal) 3389 to 192.168.0.2
this way, when you open the remote desktop connection client and enter say, 81.44.231.22:3390 the router will see 3390 and redirect it to 3389 straight to 192.168.0.2
Hope this helps
J
Hi Codiac.
I think I'm confusing you here. Port change, at the host is not the problem. Either by router redirection, or registry edit of the listening port of the HOST. Its the CLIENT in Win mobile 5 wont let you specify a port when connecting to a host. You can with a registery edit of the Win mobile client on the Pocket PC, change the port, but not at connection IP 'time'
Rob

how 2 use non default port with Terminal Service Client?

In WM5 there is a built in Terminal Service Client. I need to connect to a PC that is behind a firewall and is using a non default port number.
I am easily able to connect via Windows RDP, but the WM Terminal Service Client does not seem to even try and connect if i use a non standard port number.
Example: \\10.0.0.1:4540
Any ideas how to get this to work?
I'm holding a baby in one hand, so briefly, is possible, need to edit registry appropriately. VJFullscreenTSC thread may discuss setting but it's googalable. I think it's the only setting that can be changed.
V
Bonus first hit:
http://theillustratednetwork.mvps.org/RemoteDesktop/RemoteDesktopSetupandTroubleshooting.html
at the bottom

Bluetooth & Vista

Has anybody been able to create a bluetooth connection/sync with Vista??
If so how??
vista intends to use "bluetooth" word in registry value instead of your "COM" port value where mine is COM12 port via bluesoliel so many times i have to use regedit to find and change name from "bluetooth" to "COM12" for it to recoganise and you have to download newer type of active sync for vista from microsoft(MS) site after you have got its genuine key checked from MS site ,else you might have to buy vista supported bluetooth or upgrade your drivers which are still in process of developing them the way vista wants them to be.
Go to \HKLM\Software\Microsoft\Windows CE Services, modify the value name "SerialPort" from "Bluetooth or Infrared" to "COM12", where COM12 is the virtual com port associated to your bluetooth incoming com port(12 in my case). The number varies from pc to pc, so choose the right com port for your specific use.

how to start a program on a PC from the PDA

Hi,
I need to start a program on my PC from my XDA (connected by ActiveSync 4.5). I'm running Windows Mobile 5. How could this be done?
Regards, Gerrit
therminal services
and vnc
are 2 ways to do it
I don't want to see the PC's screen on my PDA (will be very slow anyway). I just need to be able to start a program (for example "notepad.exe") on the PC. I don't have to see the program on my PDA. It just has to run on the PC. That's all!
Regards, Gerrit
I think it is only possible to start an application on the device
from desktop with RAPI. The other way is not possible with
ActiveSync. You can write your own server that runs on the desktop
and a client on the ppc. Then send commands from pda client
to the server that starts then your application.
Houser
Hello Hauser,
Problem is that the command has to be possible both with ActiveSync (cable) and when syncing with GPRS/UMTS (wireless). Could this be done with RAPI?
Regards, Gerrit
If you use GPRS then you cannot use ActiveSync.
ActiveSync is only possible if you connect via USB.
RAPI can only be used from a desktop application to communicate with
the pocket pc, copy files, start applications on the PPC,...
So what do you want to do exactly with your app?
Houser
when connected to the pc using activesync or wifi or bluetooth PEN
make a normal network connection
and it should be transparent for the applications as they just see the connection
Hi Houser,
1. My PDA application exports lines from a PDA database to .CSV files.
2. On my PC I have to run an import & conversion program to load the exported lines into a server database
3. My PDA has to import other (new) files into the PDA's relational database
With USB syncing this works fine. I now have to run the PC's program manually. I want to control the whole process now from my PDA.
That's all...
Regards, Gerrit
If I remember right, a drive symbol is mounted on "My Computer" when Active Sync connects the device, right? So has anyone already tried to use an autorun enrty (autorun.inf like on CDs) on the PocketPC?
broekhuis said:
Hi Houser,
1. My PDA application exports lines from a PDA database to .CSV files.
2. On my PC I have to run an import & conversion program to load the exported lines into a server database
3. My PDA has to import other (new) files into the PDA's relational database
With USB syncing this works fine. I now have to run the PC's program manually. I want to control the whole process now from my PDA.
That's all...
Regards, Gerrit
Click to expand...
Click to collapse
So ok.
I would do this as follows:
1) Write a desktop application that uses ActiveSync RAPI to start you PDA export application
2) Then in your desktop app use RAPI to copy the file from PDA to desktop
3) In your desktop app start the import & conversion program with the file from the pda
4) If you want to import a file to the PDA database you can copy with RAPI to pda and then start with RAPI the pda import application
So I would not go on searching how to start a app on desktop from pda. Let the desktop application handle it.
Houser
Hi,
Problem is that a technician on location (at a customer or at home) should be able to synchronise, without going to the office. In other words: the PDA is the device that starts the communication process, not the PC! This is also what is so problematic...
Regards, Gerrit
about autorun on the pda then i dont think it will work havent made the test
but modile devices like
gmail drive
digicams
and such dont get drive letters
and i think only devices which get drive letters can use
autostart because those other devices dont seem to be "really" connected untill one click on them
you could write a service for the pc which would be listening for a network connection from the pocketpc
you could make it so it would run any applications you told it
you could give it a parth and arguments
then as soon as you got a network connections by what ever means your pda could start sending commands to the pc which it would then execute as in start programs
of cause it does require you to code a bit of c++ or .net but not tooo complex stuff if one is a programmer
Two points:
The PDA is not mounted as a drive, ActiveSync controls all access to it (even though it is integrated in the explorer) so autorun.inf can not work.
Redugar is right, for you purpose - accessing the PC directly and by remote, you need a little server app on the PC. Just use windows sockets to listen to a connection.
On the PPC side you can use the constant ppp_pear when the device is synced to get the PC address and the regular IP (I assume you have a static IP) for access via GPRS.
I did something like this a couple of years back - a server on the PC that checks a page for updates and provides them to a device when it connects and asks for them.
salling software
You might want to look into this company http://www.salling.com/Clicker/windows/scripts.php
http://www.salling.com/forums/viewforum.php?f=15&sid=45e42aa57aeb994b7b02e8ab12dc1794
Their software controls programs such as PowerPoint, WMP etc, might be a script out there that you could modify to open any program. Connects via BT and WiFi. Works real nice with my wizard with my MCE Dell running Toshiba BT Software.
About Salling Clicker..
anothersmith said:
You might want to look into this company http://www.salling.com/Clicker/windows/scripts.php
http://www.salling.com/forums/viewforum.php?f=15&sid=45e42aa57aeb994b7b02e8ab12dc1794
Their software controls programs such as PowerPoint, WMP etc, might be a script out there that you could modify to open any program. Connects via BT and WiFi. Works real nice with my wizard with my MCE Dell running Toshiba BT Software.
Click to expand...
Click to collapse
Yeah. Salling Clicker is a great software for starting or ending programs on your pc using bluetooth or wifi! the first time i installed the software,i was amazed and i played a prank on my sister.she thought that there was something wrong with the computer because it started itunes/powerdvd on its own... and i was in the other room controlling my pc..hahaha...
i've Been looking for a "script" that'll allow you to open any file/program (so are a lot of people who use salling clicker)..been following it up and As far as i know, there is still no Salling Clicker "script" that allows you to open any program on your pc.. you have to make a "script" specific to the program you want to start/control/stop.
Houser said:
If you use GPRS then you cannot use ActiveSync.
ActiveSync is only possible if you connect via USB.
RAPI can only be used from a desktop application to communicate with
the pocket pc, copy files, start applications on the PPC,...
So what do you want to do exactly with your app?
Houser
Click to expand...
Click to collapse
What?
ActiveSync can work through Bluetooth or Infrared as well.
Also, why go through all of this trouble? Run an SSH server on the PC. SSH into the PC.
C:\Documents and Settings\Administrator> start "C:\Program Files\My Program Path\My Program.exe"
Doesn't this do what you want?

making a remote controller

hi everyone,
i am a noob to this side of things, i need an app to work with a bluetooth remote that is wonderful, i need this because i cant remember what letters to press for what. what i would like is a media center remote to work like NiveusPocketRemote, i just need the interface mapped, is this easy to do? how can i?
you can make a program which use bluetooth com port
setup the comports on the pda and on the pc
then develeop a client frondend on the pda
and a "server" on the pc which interp the commands
from the pda client and do it's stuff using com or some
dll to talk to the program you want to remote

Categories

Resources