RTC Forums
November 27, 2024, 03:38:10 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   Home   Help Login Register  
Pages: [1]
  Print  
Author Topic: RtcHttpClient set BoundPort  (Read 3996 times)
twinsoft
RTC License
***
Posts: 15


« on: June 03, 2020, 12:59:17 PM »

Hi, we need to set the BoundPort property of the undelying socket binding to a predefined port, as we do in Indy with IdTcpClient.BoundPort := 9000. How can this be done with RtcHttpClient ?

Stefanos
Logged
D.Tkalcec (RTC)
Administrator
*****
Posts: 1881


« Reply #1 on: June 03, 2020, 01:14:43 PM »

With all RTC Clients, the OS decides which Local Port to use when opening a client socket.

To assign the remote port (where the Server is listening and the Client should connect to), use the "ServerPort" property.

You will also need to set "ServerAddr" to the Server IP address or domain name.

Best Regards,
Danijel Tkalcec
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.022 seconds with 16 queries.