I've created a HTTP server via the IdHTTP-component and now I want to access it via the internet. I've posted a string from a text file.
I can accesss it via:
But how do I acces it via the internet? I've tried http://[myexternalIPaddress]:80 but I do not get a reply.
This is my code:
procedure TForm1.IdHTTPServer1CommandGet(AContext: TIdContext;
ARequestInfo: TIdHTTPRequestInfo; AResponseInfo: TIdHTTPResponseInfo);
var
myFile : TextFile;
text: String;
begin
AssignFile(myFile, 'C:\Users\xxx\Desktop\test.txt');
Reset(myFile);
ReadLn(myFile, text);
AResponseInfo.ContentText := text;
end;
procedure TForm1.FormCreate(Sender: TObject);
begin
IdHTTPServer1.Active := True;
end;