RTC Forums
August 11, 2020, 07:27:54 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

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


« 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: 1825


« 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.023 seconds with 17 queries.