How to connect to RTC server through proxy using rtc client api
Hi All,
Thank you in advance.
I have requirement where I have to fetch all the streams for specific project area. I have written code accomplish same(copied from jazz site). However I am getting issue while connecting to RTC server through proxy. we have proxy server configured here in my environment. The code which I have used is,
String repoUri = "serverRUL";// Server is configured out site my network
TeamRepository repository = (TeamRepository) TeamPlatform.getTeamRepositoryService().getTeamRepository(repoUri);
//repository.setProxy("proxy", port_no,null, null);-- used this line to set proxy details
repository.registerLoginHandler(new ILoginHandler2()
{
public ILoginInfo2 challenge(ITeamRepository repo)
{
return new UsernameAndPasswordLoginInfo("user", "password");
}
});
repository.login(null);
This gives timeout exception, so the question is how to set proxy details through api to connect to RTC server.
One answer
- http.proxyHost : the host name of the proxy server
- http.proxyPort : the port number, the default value being 80.
- http.nonProxyHosts :a list of hosts that should be reached directly, bypassing the proxy. This is a list of patterns separated by '|'. The patterns may start or end with a '*' for wildcards. Any host matching one of these patterns will be reached through a direct connection instead of through a proxy.