andremussche / UltraVncAsDll

vncserver and vncclient as dll (to use it within other applications)
34 stars 32 forks source link

I did change WinVnc Server PortNumber but not working. #1

Closed ginussoft closed 10 years ago

ginussoft commented 10 years ago

Hello. Sorry for my poor English.

I want change WinVnc server port number 5900 to 15900 or another port.

ex) props.PortNumber := 15900;

I did change delphi source code and compiled it. but it didn't working on port 15900. just working on port 5900. I can't solve this problem.

Please help me.

Thank you.

UltraVncAsDll / DelphiLoader / MainForm.pas

procedure TForm1.actStartExecute(Sender: TObject); var props: TvncPropertiesStruct; pollprops: TvncPropertiesPollStruct; begin //create TVncServerAsDll.WinVNCDll_CreateServer;

//setup FillChar(props, SizeOf(props), 0); TVncServerAsDll.WinVNCDll_GetProperties(@props); //note: properties are default or loaded from "ultravnc.ini" //we set some minimal values to allow local testing (in case of default values) props.AllowLoopback := 1; props.PortNumber := 15900; //<---- Change PortNumber but not changed. just working by port 5900. props.password := 'test'; props.password_view := 'guest';

ginussoft commented 10 years ago

props.AutoPortSelect := 0; //<---- Insert this line before port setting. props.PortNumber := 15900;