It's all about the answers!

Ask a question

How to connect to RTC server through proxy using rtc client api

Nilesh Patil (1733050) | asked Mar 08 '16, 3:07 a.m.

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");

This gives timeout exception, so the question is how to set proxy details through api to connect to RTC server.

One answer

permanent link
Rafael Hayama (15926) | answered Mar 14 '16, 1:04 p.m.
Hi Nilesh,

You should try using the Java property as specified in this document

  • 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.

Best regards,

Your answer

Register or to post your answer.