Switch to full style
Use this forum to post questions relating to WinGate, feature requests, technical or configuration problems
Post a reply

Winsock redirection in wingate

Sep 02 04 3:02 am

Hello all
i'm developping an applet that uses corba/diiop features in a domino web server, this applet tries to get session from the server using
this.openSession()
where this represents the applet.
i'm using a wingate proxy server;
when the client is connected directly to the internet (not through proxy), the applet works and i can open the session; however, when the browser is configured to use proxy(the wingate server), the session fails.
if i install on the client computer the "wingate internet proxy client" and use it with the wingate server , and in the browser i choose direct connection(not proxy), the applet works and i can open the session, knowing that in this case i'm using the winsock redirection feature of the proxy server.

Since not all our client-companies use wingate and not all proxies have the winsock redirection feature, can anyone help me setting up some kind of winsock redirection into my applet code
thanks

Sep 02 04 10:46 am

The WRP service works as a LSP. Anything that translates into standard WinSock calls will work with that. The easiest alternative would probably be to exclude it from the list of applications that the WinGate Internet Client will intercept.

Sep 02 04 7:00 pm

thanks for your reply,

but it seems that i did not explain well:

in my applet, i need to open a session through java to my web server; the instruction used is: this.openSession();
this command uses corba classes as an interface between java and lotus domino.
if the browser is configured to connect directly to the internet, the command works fine.
if the browser is configured to go through proxy, the command do not work. After doing several inspections, it seems that the command tries to connect to the web server directly and does not go through proxy despite of the fact that the browser is configured to use proxy, all my applets works fine, only this command does not work: this command is the entry of my communication with the web server (in fact i will be communicationg with the diiop service on port 63148 on my web server);
as a work around, i've installed the client proxy which uses the Winsock redirection feature, thus as i noticed, all my browser requests go through that client including the above openSession command, and the client proxy forward it to the required service, thus my command goes now through proxy and works.
What i need is this:Not all users use Wingate as proxy, and not all proxies has Winsock redirection features. I want to know if there is a way to use Winsock redirection in my applet directly without using the proxy client, as to redirect my command through proxy directly from my applet.
Thanks and Regards

Sep 02 04 7:35 pm

Hi

if instead you configure the browser to use SOCKS (under the proxy configuration), then I think the java subsystem will then use this. There are many SOCKS servers out there, so it is more likely your clients will be able to use SOCKS.

The WRP protocol is a proprietary Qbik protocol, we could give you the spec, but that would then only allow you to talk to the WinGate server anyway, unless you were to write a WRP server yourself as well?

Actually you know your best option could be to use the HTTP CONNECT method. This works with most HTTP proxies, and is the same method your browser uses when using the proxy for https.

basically you connect to the web proxy on port 80, and send

CONNECT server:port HTTP/1.0\r\n\r\n

THe proxy then connects to server:port, and when it completes it sends an HTTP response e.g.

HTTP/1.0 200 OK connection succeeded\r\n
Server: whatever\r\n
some other tags etc\r\n
\r\n

When you have received this, you know you have a connection to the server:port you specified.

This is a whole heap easier than the WRP protocol, and will work with proxies other than WinGate.

Adrien

Sep 02 04 7:36 pm

Wingate Internet client uses exactly this approach (as Pascal mentioned in his post) - if you install it on your client machine, it will connect to Wingate server and redirect all your client's requests through Wingate (including prxoy redirection).

Sep 02 04 9:43 pm

Thanks all,
could you please provde me with some links on the web for documentation on Winsock and Winsock redirection

Sep 02 04 10:59 pm

Hi,
Are you interested in principles or implementation?

Sep 02 04 11:20 pm

Hi,
i need to go deeper into principles, but my aim is to try to implement it in my application
Thanks

Sep 02 04 11:35 pm

Well, ideally your application should not worry about LSPs. The idea is that in Windows socket support calls go through layers of various providers and you can register your own provider effectively intercepting all calls to socket functions.

Sep 03 04 1:10 am

could you recommend me sites for documentation
thanks

Sep 03 04 11:49 am

you have to look it up on msdn.microsoft.com - I do not have the link handy.
Post a reply