RDP Port C# - C#/.NET 4.x

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP


RDP Port C# - C#/.NET 4.x



I'm developing RDP Helper, it's simple program, which will connect to the remote server by ip, port, username, password.



Screenshot



But, there's one problem, this program can connect only to 3389 port, as you can see I have added textBox, which named Port.



I found information about specific port for RDP Client, but it isn't working.


rdp.Server = txtIP.Text;
rdp.UserName = txtUsername.Text;
rdp.AdvancedSettings.RDPPort = txtPort; //Error there//
IMsTscNonScriptable secured = (IMsTscNonScriptable)rdp.GetOcx();
secured.ClearTextPassword = txtPassword.Text;
rdp.Connect();



Error



Sorry if translate is crooked, I'm russian.



How can i fix it?









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

Makefile test if variable is not empty

Will Oldham

'Series' object is not callable Error / Statsmodels illegal variable name