Solved

CSocket and FTP-connect through a proxy

Posted on 2002-06-20
4
354 Views
Last Modified: 2013-11-20
I'm using a CSocket object and call Connect with the Proxy hostname and portnumber as parameters, it works fine, I get the connection to the proxy. The problem is when I want to connect to ftp.sunet.se. How do I after I connect to the proxy, let the socket know that the connection should "point to" to ftp.sunet.se?
0
Comment
Question by:joakimf
  • 2
  • 2
4 Comments
 
LVL 3

Expert Comment

by:daitt
ID: 7098542
it depends on the protocol your proxy is using. It can be socks (4 or 5), ftp proxy or SSL Tunneling.
For example, for ftp proxy which uses USER user@hostname, after connected, you can send a command:
USER remote-user@remote-host.com
There are many types of ftp proxies
0
 
LVL 1

Author Comment

by:joakimf
ID: 7102065
Yes, I'm aware that there are many different proxies, the problem is that when I try to send a command such as USER remote-user@remote-host.com, the response is "unknown command", am I using the command wrong?

/Joakim
0
 
LVL 3

Accepted Solution

by:
daitt earned 200 total points
ID: 7102187
check with the other ftp clients to see which command can be used (you can try windows commander). Sometimes you need to send "SITE", sometimes you send "OPEN" .. depends on the proxy type
What is your proxy server software ?
0
 
LVL 1

Author Comment

by:joakimf
ID: 7102898
Got it to work, my own fault, forgot to check a string I sent to the server, but it works now when I send anonymous@ftp.sunet.se, I can login. Thanks for your help and comments, the points are yours.

/Joakim
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to determine file rename from EventLog ? 2 57
difference between String.subString() and String.subSequence() 6 258
bigDiff challenge 17 133
x-bar in Google Sheets 2 91
Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question