Direct tcp/ip through socks proxy

is this possible to direct all tcp/ip traffic through a socks proxy. how about just one application. can i socksify an application? tia

hi baarney,
I am not very clear what you mean. Could you tell me more about it because
I have the same problem. And after connecting for a long time, I received this message "Malformed message from SOCKS server"
Forgot to add:
Running on Windows XP
java version "1.4.2_06"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_06-b03)
Java HotSpot(TM) Client VM (build 1.4.2_06-b03, mixed mode)Thanks

Similar Messages

  • Cannot connect socket through socks proxy

    Hi,
    I'm having problems connecting a socket through a socks proxy. I'm using the Apache Commons FTPClient, which I understand uses the standard java.net.Socket:
      System.setProperty("socksProxyHost", proxyUrl);
      System.setProperty("socksProxyPort", proxyPort);
      FTPClient ftp = new FTPClient();
      try {
        ftp.connect(url);
        ...When I run this, the whole thing just hangs. However, using a standalone FTP client (SmartFTP) configured with the same settings works fine.
    Analysing the network traffic (using Ethereal) reveals the following:
    Frame 4 off the successful connection (SmartFTP) contains ethernet, IP, TCP and Socks data. The socks data is 9 bytes long and looks perfectly normal.
    Frame 4 of the unsuccessful connection contains the same 4 data segments, but the socks data is only 1 byte long and contains only the socks version number. Ethereal reports this as "Unreassembled Packet (incorrect TCP checksum)".
    Is there anything I'm missing here? I've tried setting the proxy information on the command line when I run the test (java -DsocksProxyHost=proxy -DsocksProxyPort=1080) but that appeared to make no difference.
    Any pointers much appreciated, as I'm really stumped here!
    Thanks

    hi baarney,
    I am not very clear what you mean. Could you tell me more about it because
    I have the same problem. And after connecting for a long time, I received this message "Malformed message from SOCKS server"
    Forgot to add:
    Running on Windows XP
    java version "1.4.2_06"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_06-b03)
    Java HotSpot(TM) Client VM (build 1.4.2_06-b03, mixed mode)Thanks

  • Direct all traffic through a socks proxy

    is this possible to direct all tcp/ip traffic through a socks proxy. how about just one application. can i socksify an application? tia

    You want to utilize an upstream SOCKS proxy? I doubt it, you'd be better off setting up a VPN and routing your outbound traffic through that.

  • Arch as a router... through a socks proxy

    I have my arch box acting as a gateway on my local network, is it possible to tunnel all the traffic that goes through the box through a socks proxy?
    I want to be able to proxy things like my phone and xbox
    Thanks!

    You want to utilize an upstream SOCKS proxy? I doubt it, you'd be better off setting up a VPN and routing your outbound traffic through that.

  • Client connecting through a proxy

    hi
    i'm new to RMI programming, i need to clear some things up
    . is RMI a standalone protocol like http or does it require another protocol so
    it can run over it ?
    . how does an RMI connection get through a proxy server, ie. if the client is behind a proxy server and the server is a known public host, can the client still get to the server, or does this have to be done in the proxy configuration?
    Is there certain types of proxy servers RMI can't go through or ( they won't let it pass through ) .
    i need those infos because i've been stuck with an RMI server deployed on the net and a client behind a web proxy, the same box ( IP ) hosting the RMI server also hosts a WEB server from which javaWS starts the application but this application exits at a certain point sayin it cannot find the RMI server.
    i didn't have the chance to test through a direct connection, but have tested
    in an intranet environment and it was workin great,
    thanks for any help

    . is RMI a standalone protocol like http or does it
    require another protocol so
    it can run over it ?The question doesn't make much sense. HTTP runs over TCP, and so does RMI. RMI also uses the Serialization protocol.
    how does an RMI connection get through a proxy
    server, ie. if the client is behind a proxy server
    and the server is a known public host, can the
    client still get to the server, or does this have to
    be done in the proxy configuration?http://java.sun.com/j2se/1.5.0/docs/guide/rmi/faq.html#firewallOut
    s there certain types of proxy servers RMI can't go
    through or ( they won't let it pass through ) .Java supports SOCKS and HTTP proxies.

  • UC560 T1E1 with Direct TCP SIP

    Hi,
    Firstly I am new to cisco's voice setup, and have a UC560-T1E1-K9 which I need to configure as just a basic gateway. Essentially i want to setup trunk-to-trunk between ISDN PRI and TCP SIP but do not have the first idea where to start.
    The main aim is to receive calls over ISDN PRI (E1 NET5) and pass the call stright through to a direct tcp sip trunk (incoming only).
    Then configure FXS for a few numbers for two way calling.
    Hope someone can give me a couple of pointers as the CUE is not very helpful
    Thanks,
    Alex.

    Hi,
    You have two approaches.
    Option A
    Use CCA to configure the unit from scratch. Configure the unit for your ISDN connection and test using the fxs ports. Manually configure a SIP dial-peer to route inbound PSTN calls to your Lync server. You'll need to tweak the configuration at various places to make it work. You therefore need to be pretty confident in understanding all the work CCA has done for you. The benefit this, is you have a local outbound dial-plan pre-configured on the unit.
    Option B
    Configure the unit yourself from scratch. Rough outline:
    1. Configure E1 controller for voice
    2. Setup the DSP modules for your region
    3. configure a pots inbound dial peer to accept calls from the PSTN
    4. configure an outbound SIP dial-peer to send the calls to Lync.
    Lync expects calls to be prefixed with a + & E.164 and bare in mind the telco may only send you the last 6 sigits of the called number
    Here's an example for UK ISDN with 30 timeslots: note module slots will be incorrect in this code, example is generic IOS and not specific to UC560.
    1. Configure E1 controller for voice
    card type e1 0
    network-clock-participate wic 0  ! something like this, you may need to work out which slot you have
    network-clock-participate slot 1 ! or something like this
    network-clock-select 5 E1 1/0 ! you get the idea....
    controller E1 1/0
    pri-group timeslots 1-31
    interface Serial1/0:15 ! do a show run to check the right interface slot number
    description "use dial-peer voice 10 to reach me for outbound"
    no ip address
    encapsulation hdlc
    isdn switch-type primary-net5
    isdn timer T309 400000
    isdn incoming-voice modem
    isdn T309-enable
    isdn send-alerting
    isdn sending-complete
    no cdp enable
    Your E1 card should now be up
    c2821.1.hex#show controllers e1
    E1 1/0 is up.
      Applique type is Channelized E1 - balanced
      Cablelength is Unknown
      No alarms detected.
      alarm-trigger is not set
      Version info Firmware: 20090408, FPGA: 13, spm_count = 0
      Framing is NO-CRC4, Line Code is HDB3, Clock Source is Line.
      CRC Threshold is 320. Reported from firmware  is 320.
      Data in current interval (652 seconds elapsed):
         0 Line Code Violations, 0 Path Code Violations
         0 Slip Secs, 0 Fr Loss Secs, 0 Line Err Secs, 0 Degraded Mins
         0 Errored Secs, 0 Bursty Err Secs, 0 Severely Err Secs, 0 Unavail Secs
      Total Data (last 24 hours)
         0 Line Code Violations, 0 Path Code Violations,
         0 Slip Secs, 0 Fr Loss Secs, 0 Line Err Secs, 0 Degraded Mins,
         0 Errored Secs, 0 Bursty Err Secs, 0 Severely Err Secs, 0 Unavail Secs
    2. Setup the DSP modules for your region
    voice-port 1/0:15
    cptone GB
    bearer-cap Speech
    3. configure a pots inbound dial peer to accept calls from the PSTN
    I suggest at this point, you debug isdn q931 and dial in. See how many digits the telco sends you.
    Configure a number translation to put this number in to E.164
    In my example we take the 6 digits the telco sends us and prepend 441234
    voice translation-rule 10
    rule 1 /^\(.+\)$/ /441234\1/
    voice translation-profile incomingisdn
    translate called 10
    in exec mode:
    SOV_TAG1#test voice translation-rule 10 567890
    Matched with rule 1
    Original number: 567890 Translated number: 441234567890
    Original number type: none      Translated number type: none
    Original number plan: none      Translated number plan: none
    dial-peer voice 1000 pots
    description Inbound POTS dial-peer
    translation-profile incoming incomingisdn
    incoming called-number .+
    direct-inward-dial
    port 1/0:15
    4. configure an outbound SIP dial-peer to send the calls to Lync. Lync expects calls to be prefixed with a + & E.164 so we're going to add a plus
    voice class codec 1
    codec preference 1 g711alaw
    codec preference 2 g711ulaw
    codec preference 3 g729r8
    codec preference 4 g729br8
    voice translation-rule 20
    rule 1 /\(.+\)/ /+\1/
    voice translation-profile addaplus
    translate called 20
    in exec mode
    #test voice translation-rule 20 123
    Matched with rule 1
    Original number: 123    Translated number: +123
    dial-peer voice 1010 voip
    description SIP Trunk to Lync
    translation-profile outgoing addaplus
    preference 5
    destination-pattern ^441234.+  ! note this is the area code we added to make the number into E164
    voice-class codec 1
    voice-class sip outbound-proxy ipv4:192.168.10.10 ! ip address of lync
    session target dns:lync.mydomain.net ! your lync realm
    session protocol sipv2
    session transport tcp
    dtmf-relay rtp-nte
    no vad
    and that's about it apart from getting the fx0 ports sorted - one step at a time.
    For outbound you added an incoming SIP dial-peer and an outgoing pots dial peer.
    Adam
    VoIP.co.uk

  • How to use RDP client through a proxy ?

    Hi,
    we have some users in our LAN that have to connect to external RDP servers.
    Those servers don't use RDP Gateway (and we are not the owner of those servers).
    We dont want to open specific trafic from our LAN to those IP Adress on port 3389; we prefer to let this trafic goes through our proxy server (for security reason, because the direct connection will not be supervised).
    So, my question is : Is there a way to configure the RDP Client (the official one or another one) to connect through a local proxy instead of trying to directly connect to the external IP address of the RDP Server ? 
    Thank you

    You could do this with an ssh tunnel and putty very easily. Most web proxies won't actually allow port forwarding like that and restricted to 80 and 443.
    If you want to know how to do it with a ssh tunnel and putty let me know.
    Opening outgoing 3389 from one internal subnet to specific external IP is not such a security risk. Just don't open inbound 3389 from those hosts and you should be fine?
    I am not sure if outbound RDP will require inbound ports to be opened. Its quite rare that any external RDP is opened in my experience as its such a security risk (on the part of the external rdp hosts).
    ITs much better to VPN to the external hosts then initiate local (via vpn) rdp connections.

  • Bug? Socks Proxy not taking effect for SocketChannel

    I find there's something not working when setting socks proxy in my java application.
    In java api there's such introduction about socks proxy setting:
    (from http://java.sun.com/j2se/1.4.2/docs/guide/net/properties.html)
    SOCKS protocol support settings
    The SOCKS username and password are acquired in the following way. First, if the application has registered a java.net.Authenticator default instance, then this will be queried with the protocol set to the string "SOCKS5", and the prompt set to to the string "SOCKS authentication". If the authenticator does not return a username/password or if no authenticator is registered then the system checks for the user preferences "java.net.socks.username" and "java.net.socks.password". If these preferences do not exist, then the system property "user.name" is checked for a username. In this case, no password is supplied.
    socksProxyHost
    socksProxyPort (default: 1080)
    Indicates the name of the SOCKS proxy server and the port number that will be used by the SOCKS protocol layer. If socksProxyHost is specified then all TCP sockets will use the SOCKS proxy server to establish a connection or accept one. The SOCKS proxy server can either be a SOCKS v4 or v5 server and it has to allow for unauthenticated connections.
    I am using java.nio.channels.SocketChannel to do packets trasferring, and I've caught all the packets with Ethereal, but I find there's no packets to the socks proxy.
    What I use in the application is as below:
    System.getProperties().setProperty("socksProxySet", "true");
    System.getProperties().setProperty("socksProxyHost", socksProxyHost);
    System.getProperties().setProperty("socksProxyPort", socksProxyPort);I do this above before the connection issues. The connection lines are belows:
    SocketChannel s = SocketChannel.open();
    InetSocketAddress addr = new InetSocketAddress("daisho.waaaghtv.com",  10383);
    if (s.connect(addr)) {
      System.out.println("Socks Proxy Complete!");
    }else {
      System.out.println("Socks Proxy Failed!");
    }But every time it prints me "failed" message. I am sure that I can use the socks proxy to connect to daisho.waaaghtv.com:10383.
    My shortened program is:
    import java.net.InetSocketAddress;
    import java.nio.channels.SocketChannel;
    public class socketTest {
      public static void main(String[] args) {
        try{
          System.getProperties().setProperty("socksProxySet", "true");
          System.getProperties().setProperty("socksProxyHost", "166.111.70.13");
          System.getProperties().setProperty("socksProxyPort", "1080");
          SocketChannel s = SocketChannel.open();
          InetSocketAddress addr = new InetSocketAddress("daisho.waaaghtv.com",  10383);
          if (s.connect(addr)) {
            System.out.println("Socks Proxy Complete!");
          }else {
            System.out.println("Socks Proxy Failed!");
        }catch(Exception e) {
          e.printStackTrace();
    }The printed message is:
    java.net.ConnectException: Connection timed out: connect
         at sun.nio.ch.Net.connect(Native Method)
         at sun.nio.ch.SocketChannelImpl.connect(Unknown Source)
         at socketTest.main(socketTest.java:12)I can find very limited help from internet, hope you could help me.

    But it's stated surely both in the 1.4 API and 1.5 API that it supports socks proxy by simply setting the system properties.
    I set socksProxySet to be true because I've found it from internet, but, yup, it seems useless.
    You mean the only way is to implement the socks proxy in my code? I know there is (or was, whatever) some open source project that is on this kinda topic, but ain't there a simple way?

  • Authenticating to Socks proxy using different accounts in a given JVM

    I have a J2EE application that runs some background jobs. Each of these background jobs need to connect to an external FTP server. However, all connections must go through a central SOCKS proxy server. The SOCKS proxy server is set up to require authentication using user names and passwords. Everything works fine if I've to use this SOCKS proxy with "a set" of credentials across all background jobs. However, if I want Job1 to use "user1" for SOCKS login, and Job2 to use "user2" for SOCKS login, I can't seem to find a way to do this. I need this functionality for accounting purposes. Any help on how this can be accomplished is greatly appreciated.
    Regards,
    Sai Pullabhotla

    I tried implementing the ThreadLocal idea and I think the code is working as expected, but my proxy logs are not matching up with what the code says. Below is the code I've including a test class. See below the code for my additional comments.
    import java.net.Authenticator;
    import java.net.PasswordAuthentication;
    * A customer authenticator for authenticating with SOCKS Proxy servers.
    public class ProxyAuthenticator extends Authenticator {
          * A thread local for storing the credentials to the SOCKS proxy. The Javadoc
          * for ThreadLocal says they are typically used for static fields, but
          * here I've a singleton instance. Hope this is not an issue.
         private ThreadLocal<PasswordAuthentication> credentials = null;
          * Singleton instance.
         private static ProxyAuthenticator instance = null;
          * Creates a new instance of <code>ProxyAuthenticator</code>. Each thread
          * will have its own copy of credentials, which would be <code>null</code>
          * initially. Each thread must call the <code>setCredentials</code> method
          * to set the proxy credentials if needed.
         private ProxyAuthenticator() {
              credentials = new ThreadLocal<PasswordAuthentication>() {
                   @Override
                   protected PasswordAuthentication initialValue() {
                        System.out.println("ThreadLocal initialized for "
                             + Thread.currentThread().getName());
                        return null;
                   @Override
                   public void set(PasswordAuthentication value) {
                        System.out.println(Thread.currentThread().getName() + " SET");
                        super.set(value);
                   @Override
                   public PasswordAuthentication get() {
                        System.out.println(Thread.currentThread().getName() + " GET");
                        return super.get();
          * Returns the singleton instance of this class.
          * @return the singleton instance of this class.
         public static synchronized ProxyAuthenticator getInstance() {
              if (instance == null) {
                   instance = new ProxyAuthenticator();
              return instance;
          * Sets the proxy creditials. This method updates the ThreadLocal variable.
          * @param user
          *            the user name
          * @param password
          *            the password
         public void setCredentials(String user, String password) {
              credentials.set(new PasswordAuthentication(user, password.toCharArray()));
         @Override
         public PasswordAuthentication getPasswordAuthentication() {
              System.out.println("Requesting host: " + this.getRequestingHost());
              System.out.println("Requesting port: " + this.getRequestingPort());
              System.out.println("Requesting protocol: "
                   + this.getRequestingProtocol());
              System.out.println("Requesting prompt: " + this.getRequestingPrompt());
              System.out.println("Requesting scheme: " + this.getRequestingScheme());
              System.out.println("Requesting site: " + this.getRequestingSite());
              System.out.println("Requesting URL: " + this.getRequestingURL());
              System.out.println("Requestor type: " + this.getRequestorType());
              System.out.println(Thread.currentThread().getName()
                   + " Authenitcator returning credentials "
                   + credentials.get().getUserName() + ":"
                   + new String(credentials.get().getPassword()));
              return credentials.get();
    import java.io.BufferedReader;
    import java.io.BufferedWriter;
    import java.io.IOException;
    import java.io.InputStreamReader;
    import java.io.OutputStreamWriter;
    import java.net.Authenticator;
    import java.net.InetSocketAddress;
    import java.net.Proxy;
    import java.net.Socket;
    import java.net.Proxy.Type;
    * A test class for testing the {@link ProxyAuthenticator}.
    public class SocksProxyTest implements Runnable {
          * Socks proxy host, used by the FakeFtpClient
         private static final String SOCKS_PROXY_HOST = "192.168.1.240";
          * Target FTP host to connect to
         private String host = null;
          * Proxy user
         private String proxyUser = null;
          * Proxy password
         private String proxyPassword = null;
          * Creates a new instance of <code>SocksProxyTest</code>
          * @param host
          *            the target FTP host
          * @param proxyUser
          *            proxy user
          * @param proxyPassword
          *            proxy password
         public SocksProxyTest(String host, String proxyUser, String proxyPassword) {
              this.host = host;
              this.proxyUser = proxyUser;
              this.proxyPassword = proxyPassword;
         public void run() {
              // Create the FakeFtpClient
              FakeFtpClient test = new FakeFtpClient(host, 21, proxyUser,
                   proxyPassword);
              for (int j = 0; j < 5; j++) {
                   try {
                        test.connect();
                        test.disconnect();
                        // Thread.sleep(10000);
                   catch (Throwable t) {
                        t.printStackTrace();
          * Test run.
          * @param args
          *            command line arguments
          * @throws IOException
          *             propagated
         public static void main(String[] args) throws IOException {
              // Get the singleton instance of the ProxyAuthenticator.
              ProxyAuthenticator authenticator = ProxyAuthenticator.getInstance();
              // Update the default authenticator to our ProxyAuthenticator
              Authenticator.setDefault(authenticator);
              // Array of FTP hosts we want to connect to
              final String[] ftpHosts = { "192.168.1.53", "192.168.1.54",
                        "192.168.1.55" };
              // Proxy login/user names to connect to each of the above hosts
              final String[] users = { "User-001", "User-002", "User-003" };
              // Proxy passwords for each of the above user names (in this case
              // password == username).
              final String[] passwords = users;
              // For each target FTP host
              for (int i = 0; i < 3; i++) {
                   // Create the SocksProxyTest instance with the target host, proxy
                   // user and proxy password
                   SocksProxyTest spt = new SocksProxyTest(ftpHosts, users[i],
                        passwords[i]);
                   // Create a new thread and start it
                   Thread t = new Thread(spt);
                   t.setName("T" + (i + 1));
                   try {
                        t.join();
                   catch (InterruptedException e) {
                        e.printStackTrace();
                   t.start();
         * A fake FTP client. The connect method connects to the given host, reads
         * the first line the server sends. Does nothing else. The disconnect method
         * closes the socket.
         private static class FakeFtpClient {
              * The FTP host
              private String host = null;
              * The FTP port
              private int port = 0;
              * Proxy login/user name
              private String proxyUser = null;
              * Proxy password
              private String proxyPassword = null;
              * Socket to the target host
              private Socket s = null;
              * Creates a new instance of <code>FakeFtpClient</code>
              * @param host
              * the FTP host
              * @param port
              * the FTP port
              * @param proxyUser
              * Proxy user
              * @param proxyPassword
              * Proxy password
              public FakeFtpClient(String host, int port, String proxyUser,
                   String proxyPassword) {
                   this.host = host;
                   this.port = port;
                   this.proxyUser = proxyUser;
                   this.proxyPassword = proxyPassword;
              * Connects to the target FTP host through the specified Socks proxy and
              * proxy authentication. Reads the first line of the welcome message.
              * @throws IOException
              * propagated
              public void connect() throws IOException {
                   System.out.println(Thread.currentThread().getName()
                        + " Connecting to " + host + " ...");
                   // Update the ProxyAuthenticator with the correct credentials for
                   // this thread
                   ProxyAuthenticator.getInstance().setCredentials(proxyUser,
                        proxyPassword);
                   s = new Socket(new Proxy(Type.SOCKS, new InetSocketAddress(
                        SOCKS_PROXY_HOST, 1080)));
                   s.setSoTimeout(10000);
                   s.connect(new InetSocketAddress(host, port), 10000);
                   System.out.println(Thread.currentThread().getName() + " Connected");
                   BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(
                        s.getOutputStream()));
                   BufferedReader reader = new BufferedReader(new InputStreamReader(
                        s.getInputStream()));
                   System.out.println(reader.readLine());
              * Closes the socket.
              public void disconnect() {
                   System.out.println(Thread.currentThread().getName()
                        + " Disconnecting...");
                   if (s != null) {
                        try {
                             s.close();
                             System.out.println(Thread.currentThread().getName()
                                  + " Disconnected");
                        catch (IOException e) {
                             e.printStackTrace();
    Looking at the test class, it creates 3 threads T1, T2 and T3. T1 is setup to connect to 192.168.1.53 using a proxy user User-001 and T2 is setup to connect to 192.168.1.54 using proxy user User-002 and T3 connects to 192.168.1.55 using proxy user User-003.
    Each thread then loops 5 times to connect to their target servers and disconnect each time. All the debug (System.out) statements indicate that the getPasswordAuthentication is returning the correct credentials for each thread. However, when I look at the logs on the proxy server, the results are different and arbitrary.
    Below is the proxy log:
    [2011-01-24 11:10:11] 192.168.1.240 User-001 SOCKS5 CONNECT 192.168.1.54:21
    [2011-01-24 11:10:11] 192.168.1.240 User-002 SOCKS5 CONNECT 192.168.1.53:21
    [2011-01-24 11:10:11] 192.168.1.240 User-002 SOCKS5 CONNECT 192.168.1.55:21
    [2011-01-24 11:10:11] 192.168.1.240 User-003 SOCKS5 CONNECT 192.168.1.55:21
    [2011-01-24 11:10:11] 192.168.1.240 User-003 SOCKS5 CONNECT 192.168.1.55:21
    [2011-01-24 11:10:11] 192.168.1.240 User-003 SOCKS5 CONNECT 192.168.1.55:21
    [2011-01-24 11:10:11] 192.168.1.240 User-003 SOCKS5 CONNECT 192.168.1.55:21
    [2011-01-24 11:10:11] 192.168.1.240 User-003 SOCKS5 CONNECT 192.168.1.54:21
    [2011-01-24 11:10:11] 192.168.1.240 User-002 SOCKS5 CONNECT 192.168.1.53:21
    [2011-01-24 11:10:12] 192.168.1.240 User-001 SOCKS5 CONNECT 192.168.1.54:21
    [2011-01-24 11:10:12] 192.168.1.240 User-002 SOCKS5 CONNECT 192.168.1.53:21
    [2011-01-24 11:10:12] 192.168.1.240 User-001 SOCKS5 CONNECT 192.168.1.54:21
    [2011-01-24 11:10:12] 192.168.1.240 User-002 SOCKS5 CONNECT 192.168.1.53:21
    [2011-01-24 11:10:12] 192.168.1.240 User-001 SOCKS5 CONNECT 192.168.1.54:21
    [2011-01-24 11:10:13] 192.168.1.240 User-002 SOCKS5 CONNECT 192.168.1.53:21
    As you can see from the first line in the log, the proxy says User-001 connected to 192.168.1.54, but the code should always connect to 192.168.1.53 with user User-001.
    Any idea on what might be going on?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Does iTunes Producer work through a proxy?

    I am trying to get iTunes Producer to work through our corporate proxies. I have opened up TCP 33001 and TCP 44001 like the documentation stated. From the proxy servers I am able to connect to these TCP ports as well as the required UDP ports that are listed in the documentation. However, as soon as I try to upload a book in iTunes Producer, it get an error.
    Does iTunes Producer work in a corporate environment that uses a proxy? Or is it like APNS that will not work through a proxy?

    It seems that your office network is blocking the app. Maybe the old releases used a port not closed by your firewall but in the newer releases it uses another port which it is closed. That maybe explains the reason you cannot connect. You should contact your network administrator.

  • Mail.app in 10.4.7: SOCKS proxy issues again...

    Hi,
    Today I've updated my PowerBook to MacOS X 10.4.7. All the process was fine, but Mail didn't connect to any server. After reading some posts in this forum I've unmarked the SOCKS proxy settings in the Network pref. pane, and I've recovered the 10.4.6 functionallity. So at least I can work.
    When I'm at office, we have an Exchange server with direct access in the network ( is because this that proxy is not needed ). Also a proxy server controls the Internet access.
    What is not working in Mail ( or I don't know how to use it ) now is the following:
    - Local access to Exchange server is only possible using a POP account. An Exchange account doesn't work because is always asking the password.
    - I need to disable the SOCKS proxy to be able to access the local mail server. So the 'Bypass proxy settings' in the Network preference pane seems to not work ( I've tried all kind of syntaxs: *.domain, server.domain, IP address, etc. )
    - With the SOCKS proxy settings active in my corporate network, I cannot access external mail accounts in external servers. I've tried IMAP and POP accounts with the same result: nothing. This is the same issue than in previous version of Mail.app.
    So waiting again for a Mail patch...
    Regards,
    Joan B. Altadill
    PowerBook 17   Mac OS X (10.4.6)   10.4.7 !!!!!
    PowerBook 17   Mac OS X (10.4.6)   10.4.7 !!!!!

    Hi,
    Today I've updated my PowerBook to MacOS X 10.4.7. All the process was fine, but Mail didn't connect to any server. After reading some posts in this forum I've unmarked the SOCKS proxy settings in the Network pref. pane, and I've recovered the 10.4.6 functionallity. So at least I can work.
    When I'm at office, we have an Exchange server with direct access in the network ( is because this that proxy is not needed ). Also a proxy server controls the Internet access.
    What is not working in Mail ( or I don't know how to use it ) now is the following:
    - Local access to Exchange server is only possible using a POP account. An Exchange account doesn't work because is always asking the password.
    - I need to disable the SOCKS proxy to be able to access the local mail server. So the 'Bypass proxy settings' in the Network preference pane seems to not work ( I've tried all kind of syntaxs: *.domain, server.domain, IP address, etc. )
    - With the SOCKS proxy settings active in my corporate network, I cannot access external mail accounts in external servers. I've tried IMAP and POP accounts with the same result: nothing. This is the same issue than in previous version of Mail.app.
    So waiting again for a Mail patch...
    Regards,
    Joan B. Altadill
    PowerBook 17   Mac OS X (10.4.6)   10.4.7 !!!!!
    PowerBook 17   Mac OS X (10.4.6)   10.4.7 !!!!!

  • Sending mail through a proxy client

    I have the following simple code to send mail through a SOCKS proxy client:
    package com.apna.beans;
    import java.util.Properties;
    import javax.mail.*;
    import javax.mail.internet.*;
    import javax.activation.DataSource;
    import javax.activation.FileDataSource;
    import javax.activation.DataHandler ;
    public class SMail{
    public static void main(String[]a){
    System.setProperty("proxySet","true");
    /*System.getProperties().put("http.proxyPort","25");
    System.getProperties().put("http.proxyHost","192.168.0.1");*/
    Properties props = System.getProperties();
    String msg = "";
    // Get system properties
    final String username = "vedijitendra";
    final String password = "sendmail";
    props.put("socksProxyHost", "pc-2");
    props.put("socksProxyPort", "1080");
    props.put("mail.smtp.host", "smtp.gmail.com");
    props.put("mail.smtp.starttls.enable", "true");
    props.put("mail.user", username);
    props.put("mail.smtp.auth","true"); // this is imp for authorisation.
    //props.put("mail.host", "192.168.0.1");
    props.put("mail.debug", "true");
    props.put("mail.store.protocol", "pop3");
    props.put("mail.transport.protocol", "smtp");
    try{
    //here the authorisation takes place using an Anonymous class.
    Session session = Session.getDefaultInstance(props,
    new javax.mail.Authenticator (){
    protected
    javax.mail.PasswordAuthentication
    getPasswordAuthentication() {
    return new
    javax.mail.PasswordAuthentication(username,
    password);
    // Define message
    Message message = new MimeMessage(session);
    message.setFrom(new InternetAddress("[email protected]"));
    message.addRecipient( Message.RecipientType.TO, new
    InternetAddress("[email protected]"));
    message.setSubject("Test");
    message.setContent("text", "text/html");
    // Send the message
    Transport.send(message);
    msg = "The mail has been sent.";
    } catch(Exception e){
    e.printStackTrace();
    msg = "The mail has not been sent.";
    I am able to connect to the GMail's SMTP server.
    However, when the Transport. send method is executed, I get:
    java.lang.NullPointerException
    at com.sun.mail.util.SocketFetcher.startTLS(SocketFetcher.java:242)
    at com.sun.mail.smtp.SMTPTransport.startTLS(SMTPTransport.java:1191)
    at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:348)
    at javax.mail.Service.connect(Service.java:297)
    at javax.mail.Service.connect(Service.java:156)
    at javax.mail.Service.connect(Service.java:105)
    at javax.mail.Transport.send0(Transport.java:168)
    at javax.mail.Transport.send(Transport.java:98)
    Any ideas?

    I have the following simple code to send mail through a SOCKS proxy client:
    package com.apna.beans;
    import java.util.Properties;
    import javax.mail.*;
    import javax.mail.internet.*;
    import javax.activation.DataSource;
    import javax.activation.FileDataSource;
    import javax.activation.DataHandler ;
    public class SMail{
    public static void main(String[]a){
    System.setProperty("proxySet","true");
    /*System.getProperties().put("http.proxyPort","25");
    System.getProperties().put("http.proxyHost","192.168.0.1");*/
    Properties props = System.getProperties();
    String msg = "";
    // Get system properties
    final String username = "vedijitendra";
    final String password = "sendmail";
    props.put("socksProxyHost", "pc-2");
    props.put("socksProxyPort", "1080");
    props.put("mail.smtp.host", "smtp.gmail.com");
    props.put("mail.smtp.starttls.enable", "true");
    props.put("mail.user", username);
    props.put("mail.smtp.auth","true"); // this is imp for authorisation.
    //props.put("mail.host", "192.168.0.1");
    props.put("mail.debug", "true");
    props.put("mail.store.protocol", "pop3");
    props.put("mail.transport.protocol", "smtp");
    try{
    //here the authorisation takes place using an Anonymous class.
    Session session = Session.getDefaultInstance(props,
    new javax.mail.Authenticator (){
    protected
    javax.mail.PasswordAuthentication
    getPasswordAuthentication() {
    return new
    javax.mail.PasswordAuthentication(username,
    password);
    // Define message
    Message message = new MimeMessage(session);
    message.setFrom(new InternetAddress("[email protected]"));
    message.addRecipient( Message.RecipientType.TO, new
    InternetAddress("[email protected]"));
    message.setSubject("Test");
    message.setContent("text", "text/html");
    // Send the message
    Transport.send(message);
    msg = "The mail has been sent.";
    } catch(Exception e){
    e.printStackTrace();
    msg = "The mail has not been sent.";
    I am able to connect to the GMail's SMTP server.
    However, when the Transport. send method is executed, I get:
    java.lang.NullPointerException
    at com.sun.mail.util.SocketFetcher.startTLS(SocketFetcher.java:242)
    at com.sun.mail.smtp.SMTPTransport.startTLS(SMTPTransport.java:1191)
    at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:348)
    at javax.mail.Service.connect(Service.java:297)
    at javax.mail.Service.connect(Service.java:156)
    at javax.mail.Service.connect(Service.java:105)
    at javax.mail.Transport.send0(Transport.java:168)
    at javax.mail.Transport.send(Transport.java:98)
    Any ideas?

  • Socks proxy call  from a weblogic server across the firewall to an external program

    Hi,
    From our weblogic server, we are trying to connect to an external
    program outside our firewall through SSL. The SSL connection is being
    tunneled through a socks proxy in the DMZ. (We have not yet made it
    work so far. Currently, we are trying to make it work)
    From the weblogic bean, we are doing the following
    System.setProperty("socksProxySet", "true");
    System.setProperty("socksProxyHost", "w.x.y.z");
    System.setProperty("socksProxyPort", "1080");
    Not that weblogic bean is the initiator of the connection and it talks
    to a program outside our firewall.
    My question is, will this kind of system level setting in the weblogic
    server have any negative impact? This is because, RMI is over sockets
    and weblogic might be talking to its internal components through
    sockets.
    Is it advisable to have such socks related setting the weblogic bean
    level?
    thanks,
    jas.

    Hi,
    From our weblogic server, we are trying to connect to an external
    program outside our firewall through SSL. The SSL connection is being
    tunneled through a socks proxy in the DMZ. (We have not yet made it
    work so far. Currently, we are trying to make it work)
    From the weblogic bean, we are doing the following
    System.setProperty("socksProxySet", "true");
    System.setProperty("socksProxyHost", "w.x.y.z");
    System.setProperty("socksProxyPort", "1080");
    Not that weblogic bean is the initiator of the connection and it talks
    to a program outside our firewall.
    My question is, will this kind of system level setting in the weblogic
    server have any negative impact? This is because, RMI is over sockets
    and weblogic might be talking to its internal components through
    sockets.
    Is it advisable to have such socks related setting the weblogic bean
    level?
    thanks,
    jas.

  • Cannot access itunes radio through autoconfig proxy

    I've moved to a new office, and the new office uses autoconfig proxy. The autoconfig proxy needs authentication. Since moving to this new office, I cannot access the itunes radio. I've tried going to one of the radio website radioio and tried listening directly from there. But also no success. I clicked on the links on the website and windows media player popped up, but it seems that it also cannot get through the proxy. In addition to proxy, it seems there is also a filter installed at the new office.
    Anyone knows how I can listen to the itunes radio again at this new office?

    You'll have to talk with the IT people and see if they have blocked the ports.

  • Using a socks proxy

    Hi all,
    I have a socks proxy setup and have had no issues with any apps using it. I am on my own local network so the proxy does not have a username, its mostly just for testing. Well i tried to use the socks proxy from java command line for my app setting the proxyhost and all that. I can see in the socks daemon logs that for some reason java is trying to send a username even though i am not specifying one.
    I looked through some java documentation and it seems that java will always try and send a username. Is this true? Can I turn it off somehow?
    Thanks!

    Hey There,
    Thanks for the swift reply. I tried your suggestion and disabled the fraudulent website check, exited safari, and restarted (with the SOCKS5 proxy still enabled) and Safari still crashes at the same point on the same pages. I've also tried removing Safari (using App Zapper) and reinstalling, and also using Pacifist to extract just the Safari.app from the installer package to overwrite the files in the folder (without altering other system files). None of these seemed to do the trick either. I have this bad feeling like something from the previously installed Unsanity.ape is lurking in the corners of the computer, but the crash dump doesn't seem to support that notion. Any other ideas? I'm up for anything. Rings of salt around the computer (or is it over the shoulder?) - thanks for the help.
    -Shawn

Maybe you are looking for