Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

Proxy issues on Windows

Hi there.

Have been evaluating Titanium for a while now and ready to build a prototype at/for my work. We are running Windows XP and a SOCKS v5 proxy. I setup the environment variables as follow:

HTTP_PROXY=username:password@proxyhost:proxyport
HTTPS_PROXY=username:password@proxyhost:proxyport

Replacing the username, password, host and port to the right values, does not work at all. Launching the Titanium Developer tool, the internet sign comes up for 0.3 seconds and goes to gray.

This has been very frustrating and would really appreciate someone to help.

Thanks in advance

Olivier

— asked November 16th 2010 by Olivier Brand
  • proxy
  • socks5
  • windows
  • xp
3 Comments
  • Oliver, would you provide the following info?

    • what firewall do you use? (try to disable it temporarily to see if the issue improves)
    • what do you know about the socks server (what brand, version etc)?
    • are you able to ping and tracert, by ip address, the socks server (in order to determine whether IMCP is enabled)
    • are you able to ping the socks server by name (the name used in the env vars you have defined above)
    • what antivirus do you use?
    — commented November 16th 2010 by Paul Dowsett
  • We are using McAfee. But I have just tried to disable the proxy and go through an open connection and it works. Therefore, there is a problem with the connectivity with the proxy. Once again using a curl command works fine through the proxy.
    Are you opening any other ports than 80 or 443?

    — commented November 19th 2010 by Olivier Brand
  • Actually, the cloud icon disappears after a while and I cannot connect. The anti virus may play a role in there. Are you once again using non traditional ports?

    — commented November 19th 2010 by Olivier Brand

3 Answers

  • Digging around a bit, I find that you can also set up a SOCKS_PROXY environment variable - maybe give that a shot with your setup?

    — answered November 16th 2010 by Kevin Whinnery
    permalink
    1 Comment
    • heh, alternatively, disregard my comment above, and follow Kevin's advice (I mistook the environment variables you have set with SOCKS_PROXY).

      — commented November 16th 2010 by Paul Dowsett
  • Kevin,

    Just tried it, does not work either. Would it be possible to trace the execution of the dashboard and see what is going on? If not, maybe you could send me a version that traces the connection issue?

    Thanks

    Olivier

    — answered November 16th 2010 by Olivier Brand
    permalink
    2 Comments
    • You can launch Developer from the command line with the --debug flag - this will send debug output to a console window, and enable the Webkit Web Inspector when you right click on the Developer its self.

      — commented November 16th 2010 by Kevin Whinnery
    • Oliver

      Is this Titanium Developer itself that cannot connect to the appcel cloud, or is it your virtual device/emulator?

      If it's the former, it is worth you providing here the answers to the questions I posted above.

      — commented November 16th 2010 by Paul Dowsett
  • OK, I went a little further. The –debug option did show that the HTTP and HTTPS PROXY environment variables are being picked up. However, no error whatsoever in the log.

    I confirm that this is not a SOCK server but purely HTTP and HTTP Proxy.

    I then opened a cygwin shell session and issued a curl command passing the -x parameter with the same format defined in HTTP_PROXY and I was able to get a valid response back.

    It seems therefore that there is an issue with the Titanium Developer console. We also had the same issues with our development partners in the UK (different company…)

    Olivier

    — answered November 17th 2010 by Olivier Brand
    permalink
    4 Comments
    • Again, Oliver, would you please provide the information I requested in my previous response?

      — commented November 17th 2010 by Paul Dowsett
    • By the way, your post above is not an answer, it should be a comment response to one of the answers you have received from other people.

      If you follow the correct format, it will make it so much easier for everyone to follow the conversation and, hence, much more likely that someone else will assist you with your problem.

      — commented November 17th 2010 by Paul Dowsett
    • Sorry about this…
      Ok, so in fact this is not a SOCKS server. I am able to ping and tracert on the IP address as well as the domain name.
      Next step is virus check….

      — commented November 18th 2010 by Olivier Brand
    • Also, why are you forcing people to log in the developer console? Would it make sense to be able to work in an offline mode? Is it possible? If so, that would satisfy my requirements to move forward.

      — commented November 18th 2010 by Olivier Brand
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.