RTC Forums

Subscription => Support => Topic started by: twinsoft on June 03, 2020, 12:59:17 PM



Title: RtcHttpClient set BoundPort
Post by: twinsoft 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


Title: Re: RtcHttpClient set BoundPort
Post by: D.Tkalcec (RTC) 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