• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Socket connection on VPN plus Proxy server

 
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi to all!
At my work place we have a proxy server and on each machine we have a proxy client. With everything enabled, I can send emails and connect to sockets on Internet without any problems.
However, we are now switching to opening the sockets on a VPN; I have found that for this to properly work, I must disable the local proxy client, otherwise the default gateway will try to resolve the IP specified in the VPN connection. Disabling the proxy client will prohibit me from sending email with java mail.
I tried adding -DproxySet=true -DproxyHost=myProxyHost -DproxyPort=myProxyPort, with no effect. I read that I can also use socksProxyHost and socksProxyPort properties, but this will affect all TCP connection and also my sockets connections too...

Is there any work around to this mess? Basically I want the socket to be opened using the VPN but the mail to be sent using the default gateway; can this be achieved on the same JVM?

Best regards
 
Seriously? That's what you're going with? I prefer this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic