?
Solved

connect via proxy with winsock

Posted on 2005-04-18
5
Medium Priority
?
1,875 Views
Last Modified: 2013-11-13
Hello, Is there anyway I can connect to my server application via a proxy server using winsock?

I would like my client application to use a proxy server to connect to the server application.

Client looks like this:

With TCP1
.Close
.RemoteHost = Text1.Text 'IP ADDRESS
.RemotePort = 7343
.Connect
End With
0
Comment
Question by:nffvrxqgrcfqvvc
  • 3
3 Comments
 
LVL 5

Accepted Solution

by:
dr_binks earned 2000 total points
ID: 13809285
Yes there is, I remeber researching how to do this because I wanted to make my own proxy.
what I would do is download: http://www.ethereal.com/distribution/win32/
that application is a 'packet' or 'traffic' analyser that can show you all the traffic going to and from your machine and you can view the data its sending.
when I was using AnalogueX proxy I could see (from ethereal) that the application (say mIRC) was connected to the proxy it would then send the command 'CONNECT <ipaddress>'  e.g. CONNECT irc.dal.net  (I think the is a generic command supported by all proxies.
So what you would do in your app is have:

private sub <somesub>()
With TCP1
.Close
.RemoteHost = Text1.Text 'IP ADDRESS
.RemotePort = 7343
.Connect
End With
end sub

private sub TCP1_connact()
with TCP1
.send "CONNECT " & IPADDRESSDESTINATION
end with
end sub

(where IPADDRESSDESTINATION is a text box or somthing saying the destination IP address.. not the proxy address)

hope this helps

~Binks
0
 
LVL 5

Expert Comment

by:dr_binks
ID: 13809296
correction:

private sub TCP1_connect()
with TCP1
.send "CONNECT " & IPADDRESSDESTINATION & vbcrlf  '<< NOTE that eher I am not sure if its 1 or 2 vbcrlf's
end with
end sub
0
 
LVL 5

Expert Comment

by:dr_binks
ID: 14161519
Thanks :)
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

When we want to run, execute or repeat a statement multiple times, a loop is necessary. This article covers the two types of loops in Python: the while loop and the for loop.
Article by: evilrix
Looking for a way to avoid searching through large data sets for data that doesn't exist? A Bloom Filter might be what you need. This data structure is a probabilistic filter that allows you to avoid unnecessary searches when you know the data defin…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
Suggested Courses

839 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