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

Similar Messages

  • Running Toolkit - Cannot connect socket to port

    Hi,
    Can anybody help me to try and execute any program with the J2ME Toolkit. After loading the jad file from the samples I get the following error. This happens irrespective of the application I try and the applications do run on the Nokia toolkit I have installed. The error is as follows:
    Running with storage root DefaultColorPhone
    Cannot connect socket to port 3279
    Windows error code 10061
    Cannot open socket for LIME events on port 3279
    I am running Windows XP Pro, JSDK1.4.2.
    Thanks for your help.
    Sean Mac

    when i run the j2me toolkit 21 get the following message and the device disapears after a second...
    cannot connect socket to port 1047
    Windows error code 10061
    cannot open socket for LIME events on port 1047
    plzzz reply

  • Cannot connect socket to port

    ok here is deal.
    the WTK was working fine for the existing demos.
    then i tried to write code of my own, since the code couldnt compile (javax.microediton.* wasnt found) i overwrite the existing installation with a new, and the compile was fine......
    But now i cant "Run" any project/class i get this ERROR msg:
    Project "Games" loaded
    Project settings saved
    Building "Games"
    Build complete
    ------>
    Running with storage root DefaultColorPhone
    Cannot connect socket to port 1179
    Windows error code 10050
    Cannot open socket for LIME events on port 1179
    what have i donw wrong, how can i fix this? Already tried to re-install but nothing .
    Ty for any help.

    ok in the J2ME WTK 2.2 Beta 2 i get the problem i mention before ,error while running,(BUILD IS FINE) but now on any port and i mean ANY
    in the J2ME WTK 2.1_02 version,on the other hand, I Cannot Build (even the presaved sun classes) but i can RUN......
    should i build in the 2.2 and then copy/paste the class files in the 2.1 directory and run from there? i imagine that could be a solution but not an error solving one.
    This is WEIRD???????? :confused:
    Can some one give me a FULL istraction what to do?
    I am using the 1.5 SDK (java 5.0) but this should be irrelevant since both the runing and the building are "partially" done..... im not joking i cant image what is wrong........ btw did i mention that my computer has its own will?

  • 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

  • Creative Cloud cannot connect from behind a proxy.

    One of the most stupid things that Adobe has done is this stupid Creative Cloud solution. We have multiple users who are unable to access the Creative Cloud because the "brains" (and I use that term loosely) at Adobe decided to change their application without any warning.
    When using the Adobe Application Manager, the software would not connect to the Adobe servers when using a proxy, but that was fine because at least authentication was working. Now even that is failing since the update from Adobe Application Manager to Creative Cloud Desktop App. After much testing, and countless trials in trying to find a full application which does need to be constantly updated everytime it does connect to the internet, I was able to work out that if a proxy pac file is being used, then the application does not connect and fails because it cannot find the internet. When a proxy server and port is used, then it connects, but this is not a suitable solution.
    Is there anyone who has been able to use the software with proxy pac files enabled?
    Btw, here are some interesting reponses from the Adobe tech support who was neither supporting nor tech savvy:
    "Do you have a connection to the internet?" - After remoting on to my machine ...FROM THE INTERNET
    "You need to start the machine in safe mode." ME:"Why?" Support: "Because this free up resources, for the application to run"
    "It looks like the Internet connection is not working" - After repeatedly clicking Retry
    "I'll contact the 2nd tier support and we will be able to help you, because our main concern is that you can get a connection" Me:"How long will that take?" Support: "A couple of hrs" - 4 hrs later and still no word from tech support and I have already worked out the issue.
    So for any Adobe people, who actually want to help, I'm still waiting on my callback.
    All others, let me know if anyone has been able to get this working with proxy pac files.

    For any one trying to get this stupid thing working, I was able to find a solution for our environment.
    Namely adding both a proxy pac file for the users and then enabling the Proxy server settings for the application. This allowed the Adobe Creative Cloud application to connect to the internet and update. This also meant that we didn't need to add the sites into our filter list as they were already enabled for the users.
    Hope this helps others trying to get this working

  • IOS 6 update - cannot connect to wifi with proxy

    We have 300 IPad 2's to configure and they cant connect to our wifi.  Since the upgrade we can no longer connect our proxy network as we did before.  We use an explicit proxy where we manually enter the proxy address.  WPA2 Security.  We contacted Apple support and after an hour they said they didn’t know how to resolve the issue and needed to research.  This was 5 days ago so im reaching out to the Apple community.  We contacted our proxy support BlueCoat and they have escalated the issue to their top level support.  After the iOS 6 update we are basically dead in the water.  
    We select DHCP under our network settings and select Manual under the http Proxy settings.  After filling in the Server, port, authentication info and try to connect, it immediately brings up a safari page that states "Error Opening Page - Hotspot login cannot open the page because it could not connect to the server".
    The other issue we have even with iOS 5 is we could not connect to https sites.

    Our school is having a similar problem with the iPads that were updated to iOS6. We don't use a proxy but we have a Sonicwall and the user has to login to the Sonicwall before the device can have Internet access.
    Here is what I have found and maybe it will help you. The problem (for us) is that immediately after the iPad is connected to our Wifi it tries to contact the Apple servers in California. This connection is blocked by the firewall because the user has not had the opportunity to login to the firewall. The iPad opens a screen that is not part of Safari to allow the user to log into the firewall but they can't because a pop-up window is needed and this application has no settings to allow pop-ups. Under normal circumstances the user would open Safari and login but if we try to switch to Safari it cancels the connection attempt and disconnects from the Wifi. Obviously, this means we no longer have a connection to our Sonicwall. 
    The trick I am using to make it work is this. (Keep in mind, we don't normally use proxy settings). I set the http proxy setting for the particular network to AUTO. This causes enough confusion in the iPad that, if I am quick enough, I can open Safari and log into the firewall real quick. Once that is done it will work fine....until the user goes to a different access point.

  • Cannot use skype through tmg proxy

    Dear Sir
    I have a problem configuring my TMG 2010 proxy allowing skype to go through while HTTPS inspection is on.
    I execlude *.skype.com, *.skype.net from the inspection process, but still i couldn't connect, morover when I disable HTTPS inspection feature it's work just fine.
    regards, 

    guys any one have the same problem!?

  • Cannot connect iiop through Firewall(NAT enabled).

    I am using following products.
    - iPlanet Web Server 5.0 [in DMZ]
    - SunONE Application Server 7.0 [in Trust]
    - Firewall(NetScreen)
    =========
    I deploy EJB application to app server and web server.
    But, it don't run collectry. IIOP connection from
    web server to app server is dropped by FW.
    Because web server's web-app try to connect app server
    by using local address(not NATted address).
    Web-app's setting is NATted address.
    Does anyone know answer?

    I uninstalled the
    http://support.microsoft.com/kb/2574819
    and it resumed working for me as well as I had exactly the same issue here.
    there is a point though: removing this KB removes the UDP connection capability of RDP 8.0; arguably the most significant breakthrough the RDP 8 has to offer. shouldn't it be addresses and the problem handled in a better way?
    if RDS Team claim that they've brought all the "adaptive network", "adaptive graphics" , "WAN enhancement" and etc to Windows 7 with the RDP 8 update(see links below), then shouldn't it be as available and as glitch-free as
    it is with a windows 8 VM?
    basically it is unacceptable to force the client to turn off the "automatic determine" feature ; either manually or through the RD-ConnectionBroker tweak of the following link (Jeroen Link):
    http://support.microsoft.com/kb/2863663
    because if it is a supported feature, it has to be supported without IFs and BUTs. this is definitely a bug that needs to be addresses.
    RDP 8 for windows 7 links:
    http://support.microsoft.com/kb/2592687
    http://blogs.msdn.com/b/rds/archive/2012/10/09/remote-desktop-protocol-8-0-update-for-windows-7-sp1-enabling-a-great-wan-user-experience-for-windows-7-sp1-virtual-desktops.aspx
    another thing I noticed : with RDP 8 features enabled, you don't get the event ID 2 as this link suggests anymore:
    http://technet.microsoft.com/en-us/library/ff817587
    maybe you'll get event 34 as this one says. but I am not quite sure:
    http://social.technet.microsoft.com/wiki/contents/articles/16652.remotefx-vgpu-setup-and-configuration-guide-for-windows-server-2012.aspx
    P.S. I am using 2012R2 Hyper-V and it does have this problem as well, so I don't think that compatibility roll up update will help.

  • I want to use Messages on my computer with my phone number, however my phone is broken and I cannot connect it through there, is there another way to do it?

    I am missing a lot of iMessages from people and it is very frustrating. The only reason I would use Messages on my computer is when my phone is broken... Shouldn't there be another way to link my phone number?

    If your phone is registered with iMessage you should be able to open the Messages app on your Mac, go to Messages>Preferences>Accounts, select your iMessage account, then sign in with the same ID you were using for iMessage on your phone and your phone number will appear as an option to receive iMessages from.  If you phone isn't already registered with iMessage your phone number won't be an option until it is.

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

  • IChat Socks Proxy?

    I'm having problems connecting to a Socks proxy using iChat. I know the socks proxy does work (I'm using it now) I know it does connect to AIM since It works fine using AdiumX.
    Here are my settings:
    (Checked) Connect using proxy
    (Unchcecked) User System Preferences
    Server: 127.0.0.1
    Port: 1080 Protocol: Socks 5
    Username: (blank)
    Password: (blank)
    It works fine on Safari, AdiumX, & X-Chat Aqua... Just not iChat
    When I connect i get this:
    Could not connect to AIM
    The AIM proxy refused the connection. Check the proxy information in the Accounts section of iChat preferences.

    I am having this very same problem; similar environment. I have a SOCKS4 proxy that I know works with other connections, including a "generic" AIM account. Anybody have any ideas?

  • Database error #2002 can not connect local mysql server to socket through '/var/run/mysqld/mysqld.sock'(2) on mac os x 10.9.2

    Dear Fellas:
    I received "database error #2002 can not connect local mysql server to socket through '/var/run/mysqld/mysqld.sock'(2)" on mac os x 10.9.2.
    mysql info:
    ps -ef | grep mysql
        0    66     1   0 11:06AM ??         0:00.04 /bin/sh /usr/local/mysql/bin/mysqld_safe --user=mysql
       74   225    66   0 11:06AM ??         0:02.50 /usr/local/mysql/bin/mysqld --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data --plugin-dir=/usr/local/mysql/lib/plugin --user=mysql --log-error=/usr/local/mysql/data/Chuans-MacBook-Pro-2.local.err --pid-file=/usr/local/mysql/data/Chuans-MacBook-Pro-2.local.pid --socket=/var/run/mysqld/mysqld.sock
      501   952   947   0  3:52PM ttys000    0:00.00 grep mysql
    Please help!!

    Fascinated and guessing:
    Something related to sock(2) because that's not part of your copied info. I'm thinking you've doubled up on sockets and the second socket doesn't exist, meaning you should be connecting to the first socket "mysqld.sock" whether automatic or not.
    I've only used GUI tools on purpose, so does this mean you've already got MySQL running and you tried to launch it again manually? Perhaps you already have one instance of a db and you're trying to launch a second instance, and the two can't coexist with a single user local db?
    Assuming this is all local, I'd shut down the db service and restart it, out of hand. I've seen similar messages when I set the db to start up on boot, and it didn't finish shutting down when I tried to restart it manually. Usually the GUI won't let me turn it on because it reports it's already running, but in that case it hadn't finished performing what the GUI was reporting.
    Just speculating.

  • IPhone 4 cannot connect to computer but will charge through wall socket. Does anybody know how to fix it?

    iPhone 4 cannot connect to computer but will charge through wall socket. Does anybody know how to fix it? Can you please reply fast as i need to use my iPhone soon.

    See either http://support.apple.com/kb/TS1538 (windows) or http://support.apple.com/kb/TS1591 (mac).

  • Post Moved Cannot-connect-through-anonymous-prox...

    Post moved to Other BB Queries  http://community.bt.com/t5/Other-BB-Queries/Cannot-connect-through-anonymous-proxy/td-p/650446
    If you want to say thanks for a helpful answer,please click on the Ratings star on the left-hand side If the reply answers your question then please mark as ’Mark as Accepted Solution’

    You could try reading about wingates, socks and proxies (oh before i forget, turn off java, javascript, cookies, what's related, and smart update ... if you are using IE you're not very smart). Also try installing a firewall, or DHCP or you can learn from me!Here is the info of best 10 proxy software, from which you may try: http://www.techyv.com/article/top-10-free-proxy-software

  • Cannot connect to SGD server via proxy

    Hello
    We have a recently installed SGD server running.
    Some clients have been setup today with accounts to access it but none of them can get on at the moment. The error message presented is as follows:
    Cannot connect to the server sgd.ourdomain.co.uk:443
    The HTTP proxy "NTLM" at devicename:8080 failed to connect to the server sgd.ourdomain.co.uk:443
    The following response was returned:
    HTTP/1.1 403 Forbidden
    Clearly there's a proxy/firewall getting in the way.
    Client has tried to connect from a network that is behind a different firewall and has been sucessful.
    I'm hoping to get further details on the proxy/firewall setup but this could take a while.
    Has anyone encountered this previously and if so, can any solutions be suggested.
    Thanks,
    Rob

    Hi Team,
    I am facing the same issue and I am using Oracle system user credentials to connect Oracle server and I have also installed extension pack for the SQL Server instance which i am using for migration. Still I am getting the following error in last step (Migrate
    data).
    Cannot connect to Oracle server via SQL Server tester extensions.
    Oracle
    10.2.0.4 verion
    SQL Server 2012 SP1
    SSMA 6.0
    Please help me if you have gone through the same problem.
    Thanks,
    Vijaysqldb

Maybe you are looking for

  • Error while creating billing request thr tcode DP91

    hi, while creating a billing request through dp91 we are getting an error mesage : "Error during material determination for sales document item 40000067/000020". i have checked the material determination for the material, but there is no material det

  • Burning photos in iphoto as a folder storage.

    I'm using the very latest version of IMac. Computer is new as of April this year. I love taking pictures & at present have them stored in my iphoto library. This is different from what I'm used to as I had an old PC & everything was in folders. They

  • Having trouble downloading a song?  Keeps saying download failed.

    Having trouble downloading a song that's already been bought? Keeps saying downlaod failed.

  • Managment Point Error 5400

    We installed a Primary Site (PS1) and installed a the roles "Distribution Point" and an additional "Management Point" on a another Server (SiteSystem1). Now we receive a Component Error (SMS_MP_FILE_DISPATCH_MANAGER, Error 5400): MP File Dispatch Man

  • Contact Creation Using Function module

    Hello Expert, I want to create  contact as a remote enabled function module for gateway services which function module I have to use for creation on contact?? Moderated: Please use the search before posting. Message was edited by: Andrei Vishnevsky