Search code examples
proxyquickfixn

Connection over a proxy Quickfix/n


I am trying to establish a connection with quickfix/n but I am behind the company firewall. So I need to connect over a proxy to the acceptor. According to the documentation of quickfix/j it is possible via JAVA, however in the documentation of quickfix/n there is no information about possibility of connecting to the acceptor over a proxy via C#.

Is it possible at all to do that from C# with quickfix/n ? In JAVA this can be done via configuration file, e.g.:

ProxyType=http
ProxyVersion=1.1
ProxyHost=XXX.XXX.XXX.XXX
ProxyPort=YYYY

Solution

  • QuickFix/n v.1.7.0 does not support proxy at all. QuickFix/n v.1.10.0 does support proxy (automatic via. WebRequest.GetSystemWebProxy()), however it does not support bypassing of the proxy details (user name and password).

    I have created my own fork from v1.7.0 that supports user defined proxy (not WebRequest.GetSystemWebProxy) + credentials. This can be found here: https://github.com/mcjacek/quickfixn

    ProxyHost=proxy.intranet.yourproxy.com
    ProxyPort=8080
    ProxyUserName=UserName
    ProxyUserNamePassword=Password
    

    I will soon refactor and create PR to merge it to master.