Client accessing from Desktop application like windows forms behind firewall/proxy server

62 views
Skip to first unread message

george.n...@hotmail.com

unread,
Mar 22, 2013, 9:59:20 AM3/22/13
to web...@googlegroups.com
Hi, 

I have successfully implemented a client connection from within a windows desktop application in windows forms environment. The windows forms application is able to connect to the server and post and receive messages.

I have also successfully implemented the silverlight example as in a previous post of mine.

I am puzzled though what would happen in both of these example implementations if the client is sitting behind a firewall/proxy server. In your documentation you mention that if the clients is embedded in the web browser there is no need to do any other configuration as it will automatically be configured with the appropriate settings to bypass any existing firewall/proxies.

Is the behavior any different if the client is originating from silverlight or a windows forms desktop application? If so, what sort of settings should be effected for the client to be able to communicate succesfully?

Regards,

George

Jerod Venema

unread,
Mar 22, 2013, 10:12:20 AM3/22/13
to web...@googlegroups.com
Hey George!

You'll be fine on firewalls, provided they allow HTTP/HTTPS traffic at all. If so, you're good there.

With respect to proxies, *generally* you don't have to do anything. WebSync uses standard .NET HTTP requests, which take advantage of whatever proxy settings are set in Windows (well, IE, since that's how Windows works) if they're available.

If you *don't* want to use a proxy, or you want to force your own proxy, that's a different story. In that case, you have to hook into the "OnRequestCreated" event in the WebSync client and modify the proxy there.

Here's more info on proxies, and how you can set them in your application if you desire:

Best,


--
You received this message because you are subscribed to the Google Groups "WebSync" group.
To unsubscribe from this group and stop receiving emails from it, send an email to websync+u...@googlegroups.com.
To post to this group, send email to web...@googlegroups.com.
Visit this group at http://groups.google.com/group/websync?hl=en.
To view this discussion on the web visit https://groups.google.com/d/msg/websync/-/4Tzyl_kKftcJ.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Jerod Venema
Frozen Mountain Software
919-300-5141 (United States)
604-227-2453 (Canada)
888-379-6686 (Extension 101)

george.n...@hotmail.com

unread,
Mar 22, 2013, 11:22:46 AM3/22/13
to web...@googlegroups.com
Hi again,

Just tried to test the desktop client with Fiddler, with option requiring proxy authentication set to on. THe client in this case is unable to connect to the server. So the question is, if a customer in a corporate environment is sitting behind a proxy socks4/5 that requires authentication what would happen?

Regards,

George

Jerod Venema

unread,
Mar 22, 2013, 11:36:30 AM3/22/13
to web...@googlegroups.com
Hey George,

We just use standard .NET HttpRequest objects, as mentioned. From the MSDN docs:

The local computer or application config file may specify that a default proxy be used. If the Proxy property is specified, then the proxy settings from the Proxy property override the local computer or application config file and the HttpWebRequest instance will use the proxy settings specified. If no proxy is specified in a config file and theProxy property is unspecified, the HttpWebRequest class uses the proxy settings inherited from Internet Explorer on the local computer. If there are no proxy settings in Internet Explorer, the request is sent directly to the server.

Your particular configuration (using Fiddler) is a whole different story, since it doesn't work the same way as a "normal" proxy server, in that it runs on your local machine. As such, you have to make sure it's running before you start the WebSync client, have to make sure it's set up in WinINET settings, etc. There's a whole page on it in Fiddler's docs here:


But note that this has nothing to do with WebSync - it's just regular .NET stuff.

Best,

--
You received this message because you are subscribed to the Google Groups "WebSync" group.
To unsubscribe from this group and stop receiving emails from it, send an email to websync+u...@googlegroups.com.
To post to this group, send email to web...@googlegroups.com.
Visit this group at http://groups.google.com/group/websync?hl=en.
To view this discussion on the web visit https://groups.google.com/d/msg/websync/-/EE3zGRZ-uZMJ.

For more options, visit https://groups.google.com/groups/opt_out.
 
 
Reply all
Reply to author
Forward
0 new messages