Can't Get Connected...

113 views
Skip to first unread message

Jeff Earls

unread,
Apr 12, 2012, 1:54:25 PM4/12/12
to androi...@googlegroups.com
Hi Walter,

So I'm hacking apart your rdp.html file to take advantage of all of the new code, but I'm running into an issue...

I'm attempting to this as "raw" as possible, so here's my function:

function connectRDP() {
var gw = "GATEWAY"
var s = "SERVER";
var u = "USER";
var pw = "PASSWORD!";
var d = "DOMAIN";
var p = 3389;
var c = "C:\\Apps\\outlook.bat";
var w = window.innerWidth;
var h = window.innerHeight
var b = 16;
var protocol = ("https:" == location.protocol) ? "wss://" : "ws://";
var connection = protocol 
+ gw 
+ "/RDP?"
+ "server=" + s 
+ "&port=" + p 
+ "&user=" + u 
+ "&pwd=" + pw 
+ "&domain=" + d
+ "&keyboard=1033"
+ "&timezone=(GMT-05%3A00)%20Eastern%20Standard%20Time"
+ "&playSound=0"
+ "&mapClipboard=on"
+ "&startProgram=shell"
+ "&command=" + c
+ "&width=" + w
+ "&height=" + h
+ "&server_bpp=" + b
+ "&audio=true"
+ "&tzOffset=240"
+ "&time=1334250494447"
+ "&binary=on";
var r = svManager.getInstance();
if (r == null) {
r = new svGlobal.Rdp(connection);
}
r.onclose = function(){
r.hide();
};
r.addSurface(new svGlobal.LocalInterface());
r.onerror = function(e){
console.log(e.name + ":" + e.message);
};

r.run();
return false;
};

Seems legit?

Well, when I go to connect, it disconnects instantly...

opened...
rdp_min.js:128closed, code=1006 reason=

And this is the connection string it's using:

ws://sg.federalresources.com:8081/RDP?server=SERVER&port=3389&user=USER&pwd=PASSWORD&domain=DOMAIN&keyboard=1033&timezone=(GMT-05%3A00)%20Eastern%20Standard%20Time&playSound=0&mapClipboard=on&startProgram=shell&command=C:\Apps\outlook.bat&width=1600&height=839&server_bpp=16&audio=true&tzOffset=240&time=1334250494447&binary=on&width=0&height=0&server_bpp=NaN&audio=true&tzOffset=240&time=1334252362767&binary=on 

As you can see, as highlighted, width, height, and server_bpp are being injected / appended and I have no idea why?!

I assume that's the reason it's failing to connect.

Thanks!

Support Remote

unread,
Apr 12, 2012, 2:33:58 PM4/12/12
to androi...@googlegroups.com
Hi Jeff,

You also need 3 more arguments for Rdp()L
r = new svGlobal.Rdp(connection, width,height, color);

You don't need to put these 3 more arguments in url.

Walter 

--
You received this message because you are subscribed to the Google Groups "AndroidRemote" group.
To view this discussion on the web visit https://groups.google.com/d/msg/androidremote/-/Bdxz9hquDrMJ.
To post to this group, send email to androi...@googlegroups.com.
To unsubscribe from this group, send email to androidremot...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/androidremote?hl=en.

Jeff Earls

unread,
Apr 12, 2012, 2:40:01 PM4/12/12
to androi...@googlegroups.com
Thanks, got it. :)


On Thursday, April 12, 2012 2:33:58 PM UTC-4, Support Remote wrote:
Hi Jeff,

You also need 3 more arguments for Rdp()L
r = new svGlobal.Rdp(connection, width,height, color);

You don't need to put these 3 more arguments in url.

Walter 

To unsubscribe from this group, send email to androidremote+unsubscribe@googlegroups.com.

gtg...@gmail.com

unread,
Feb 13, 2013, 12:24:43 PM2/13/13
to androi...@googlegroups.com
Where do I find the info needed to log on to via my phone remotely to my desktop at work?

The fields prompt for 

HOST
PORt
USER
PASS
Domain

Im on a 64bit Windows 7 machine, I know my computer name and my user and pass. Is Host my IP or the IP of the server or something?

Thanks,
 
Johnny Brown


On Thursday, April 12, 2012 1:40:01 PM UTC-5, Jeff Earls wrote:
Thanks, got it. :)


On Thursday, April 12, 2012 2:33:58 PM UTC-4, Support Remote wrote:
Hi Jeff,

You also need 3 more arguments for Rdp()L
r = new svGlobal.Rdp(connection, width,height, color);

You don't need to put these 3 more arguments in url.

Walter 

To unsubscribe from this group, send email to androidremot...@googlegroups.com.

Walter Wang

unread,
Feb 13, 2013, 4:05:20 PM2/13/13
to androi...@googlegroups.com
Make sure you enabled Remote Desktop on your windows.


Open a command prompt window,

Enter "iponcfig" and return, find the network adapter you are using, you should see a line like this:

IPv4 Address. . . . . . . . . . . : 192.168.1.64

192.168.1.64 is the ip address. 3389 is the port by default. User name, password, domain is same as your windows credential.

Walter


To unsubscribe from this group and stop receiving emails from it, send an email to androidremot...@googlegroups.com.

To post to this group, send email to androi...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages