AuthorMessage
NeiSep
Ametuar
Posts: 93

Hi there i got a problem with Indy Server components.
When i change port in the software and try to start the service again then it still runs under same port anyone know thata heck this could be?
Meka][Meka
Unstopable
Posts: 700

make sure u stop the listening
Code:

ServerName.Active := False;
ServerName.Port := 2501;
ServerName.Active := True;

NeiSep
Ametuar
Posts: 93

well hmm..
This is what i got
This is the connect button
Code:

procedure TForm1.Button1Click(Sender: TObject);
begin
IdTCPServer1.DefaultPort := StrToInt( Edit2.Text );
IdTCPServer1.Active := true;
StaticText1.Caption := 'Hublist Server is online...';
StaticText3.Caption := IntToStr (IdTCPServer1.DefaultPort);
StaticText1.Color := clGreen;
end;

And this is the Disconnect button:
Code:

procedure TForm1.Button2Click(Sender: TObject);
begin
IdTCPServer1.Active := false;
StaticText1.Caption := 'Hublist Server is offline...';
StaticText1.Color := clRed;
text3.Caption := '';
text2.Caption := '';
end;

But i cant change the port correctly
it seems that it just wont change the port becuse the socket is closing.
NeiSep
Ametuar
Posts: 93

Anyone got any help files for Indy server i need to learn much much more but i dont got any source i mean nothing to read someone know any place to read about it?
Mickey
Ametuar
Posts: 115

Quoted from NeiSep
Anyone got any help files for Indy server i need to learn much much more but i dont got any source i mean nothing to read someone know any place to read about it?

Yes, there is Indy homepage: http://www.indyproject.org/index.iwp
You can find latest Indy and help files in several format. THere are a lot of samples and guides too.