Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Netzwerke (https://www.delphipraxis.net/14-netzwerke/)
-   -   Delphi detecting http port (https://www.delphipraxis.net/6507-detecting-http-port.html)

marconi8 13. Jul 2003 16:47


detecting http port
 
situation is next;

for example for data exchanging i choose http protocol, TIdHTTP server /and client

by default in client app , in TIdHTTP client component port option i set to 80, but if client using not 80 port but 8080 ????

can my server app listen on ports 80,8080 or any other kind of http ports,

thanks

Chewie 13. Jul 2003 17:01

Re: detecting http port
 
A server can listen to any port. Port 80 is only the officially specfifieed port for HTTP, and every HHTP-client tries to reach a server on port 80 if not specified differently.

marconi8 13. Jul 2003 17:20

Re: detecting http port
 
in Indy component TIdHTTP (client) is one property - bindings
this option i must to use, at this point of work i cant realy understand what this bindings mean....

i must set bindings like

myIP:80
myIP:8080
myIP:any other known internet port

and when client connects i must in loop try all kind of ports ???

:coder: thanks


Alle Zeitangaben in WEZ +1. Es ist jetzt 13:04 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz