|
From: folb <bot...@gm...> - 2008-10-27 08:44:49
|
Thanks for your answers... It seems that I've had problems with the ports...some of them were closed. Now I don't get that message anymore but after I send the Logon Message I've got : Oct 27, 2008 10:38:47 AM quickfix.mina.AbstractIoHandler exceptionCaught SEVERE: socket exception (demo-api.dukascopy.com/194.8.15.140:9443): An existing connection was forcibly closed by the remote host I hope I will handle this by myself:) Jay Walters wrote: > > QuickFIX/J Documentation: http://www.quickfixj.org/documentation/ > QuickFIX/J Support: http://www.quickfixj.org/support/ > > > I don't know stunnel, or dukascopy. I am not sure why they care what > outbound port you are on, usually it is just IP address they care about. > If your IP starts with 192. are you NAT'ed behind a firewall? If so, your > IP will be something else to Dukascopy. You need to talk with your admin > and find out what IP dukascopy will see. > > stunnel is going to serve like a proxy, listening on one port on (assuming > you run it on your desktop) localhost and routing all traffic sent through > that pipe to the designated host:port in the stunnel config file. > > So your ultimate destination is dukascopy:9443, the only place this goes > is in the stunnel config. You will start stunnel with some listening port. > Your Quickfix/J config will aim at localhost:<stunnel listening port>. > > To test the tunnel, you would telnet to localhost <stunnel listening > port>. You should then be talking to the dukascopy software if the SSL > tunnel is working. > > Jay > > ---- Original message ---- >>Date: Fri, 24 Oct 2008 09:03:56 -0700 (PDT) >>From: folb <bot...@gm...> >>Subject: Re: [Quickfixj-users] Connection problem, Please help me... >>To: qui...@li... >> >>QuickFIX/J Documentation: http://www.quickfixj.org/documentation/ >>QuickFIX/J Support: http://www.quickfixj.org/support/ >> >> >> >>Thanks all for your quick answers. Let me be more specific >>This is the data that I've sent to dukascopy >> >>myip: 192.... >>port: 5017 >> >> >> >>This is the data which I received from dukascopy: >> >>URL(SSL): demo-api.dukascopy.com >>Feed port:9443 >>Trade port: 10443 >>SenderCompID(TRADE):TIGROLEV_DEMOFIX >>SenderCompID(FEED):FEED_TIGROLEV_DEMOFIX >>TargetCompID(both): DUKASCOPYFIX >>Login: tigrolev >>Password: 19mio >> >> >>The sstunnel cfg looks like this: >>; stunnel.conf >>client = yes >>; was stunnel.pem >> >> >>[executor] >>accept = 9443 >>connect =demo-api.dukascopy.com:5017 >> >> >>When I'm trying telnet : >> >>telnet demo-api.dukascopy.com 9443 >> >> >>Could not open connection to the host, on >> port 9443: Connect failed >> >> >>What could be wrong? >> >> >> >> >> >> >> >> >>Jay Walters wrote: >>> >>> QuickFIX/J Documentation: http://www.quickfixj.org/documentation/ >>> QuickFIX/J Support: http://www.quickfixj.org/support/ >>> >>> >>> If the admin did their work right, you should be all set on the local >>> port. They should set you up to allow an outbound connection to >>> dukascopy >>> and once the socket is opened from you to them traffic will flow >>> bidirectionally. The firewall shouldn't care about the originating port >>> on your side. >>> >>> ---- Original message ---- >>>>Date: Fri, 24 Oct 2008 08:44:02 -0700 >>>>From: "Toli Kuznets" <to...@ma...> >>>>Subject: Re: [Quickfixj-users] Connection problem, Please help me... >>>>To: qui...@li... >>>> >>>>QuickFIX/J Documentation: http://www.quickfixj.org/documentation/ >>>>QuickFIX/J Support: http://www.quickfixj.org/support/ >>>> >>>> >>>>Steve, >>>> >>>>Correct me if I'm wrong, but the QFJ engine listens on some "random" >>>>port when it establishes a connection. >>>> >>>>Botis, when I use the QFJ engine to connect to the Marketcetera >>>>Exchange simulator which runs on port 7001, if you do "netstat -an" on >>>>your machine afterwards you can see that the outgoing port is 7001, >>>>but the local connection port is something else: 56187 >>>>$ netstat -an|grep 7001 >>>>tcp4 0 0 99.204.247.131.56187 75.101.144.181.7001 >>ESTABLISHED >>>> >>>>So you probably need to ask your network admin to have a rule that >>>>lets all the traffic coming from a connection going to a Dukascopy >>>>port back in. >>>> >>>>And Jay is write: just do "telnet <dukascopy_address> >>>><dukascopy_port> and see if you get something useful back where you >>>>can type, or if the connection is immediately terminated. >>>> >>>>On Fri, Oct 24, 2008 at 8:30 AM, folb <bot...@gm...> wrote: >>>>> QuickFIX/J Documentation: http://www.quickfixj.org/documentation/ >>>>> QuickFIX/J Support: http://www.quickfixj.org/support/ >>>>> >>>>> >>>>> >>>>> The url is: demo-api.dukascopy.com >>>>> >>>>> and this is the output when I'm trying to connect >>>>> >>>>> <20081024-15:23:04, FIX.4.4:FEED_TIGROLEV_DEMOFIX->DUKASCOPYFIX, >>>>> event> >>>>> (Session FIX.4.4:FEED_TIGROLEV_DEMOFIX->DUKASCOPYFIX schedule is >>>>> daily, >>>>> 00:00:00 UTC - 23:30:00 UTC (daily, 00:00:00 UTC - 23:30:00 UTC)) >>>>> <20081024-15:23:04, FIX.4.4:FEED_TIGROLEV_DEMOFIX->DUKASCOPYFIX, >>>>> event> >>>>> (Created session: FIX.4.4:FEED_TIGROLEV_DEMOFIX->DUKASCOPYFIX) >>>>> onCreate FIX.4.4:FEED_TIGROLEV_DEMOFIX->DUKASCOPYFIX >>>>> Oct 24, 2008 6:23:04 PM quickfix.mina.NetworkingOptions logOption >>>>> INFO: Socket option: SocketTcpNoDelay=true >>>>> Oct 24, 2008 6:23:04 PM quickfix.mina.NetworkingOptions logOption >>>>> INFO: Socket option: SocketSynchronousWrites=false >>>>> Oct 24, 2008 6:23:04 PM quickfix.mina.NetworkingOptions logOption >>>>> INFO: Socket option: SocketSynchronousWriteTimeout=30000 >>>>> toAdmin >>>>> 8=FIX.4.4 9=117 35=A 34=16 49=FEED_TIGROLEV_DEMOFIX >>>>> 52=20081024-15:23:04.890 56=DUKASCOPYFIX 553=tigrolev 554=19mio >>>>> 923=userId 924=1 10=089 >>>>> <20081024-15:23:04, FIX.4.4:FEED_TIGROLEV_DEMOFIX->DUKASCOPYFIX, >>>>> outgoing> >>>>> (8=FIX.4.4 9=117 35=A 34=16 49=FEED_TIGROLEV_DEMOFIX >>>>> 52=20081024-15:23:04.890 56=DUKASCOPYFIX 553=tigrolev 554=19mio >>>>> 923=userId 924=1 10=089 ) >>>>> <20081024-15:23:04, FIX.4.4:FEED_TIGROLEV_DEMOFIX->DUKASCOPYFIX, >>>>> event> >>>>> (Attempt to send while not connected (message stored until >>>>> connected).) >>>>> <20081024-15:23:06, FIX.4.4:FEED_TIGROLEV_DEMOFIX->DUKASCOPYFIX, >>>>> event> >>>>> (Pending connection not established after 2078 ms.) >>>>> <20081024-15:23:09, FIX.4.4:FEED_TIGROLEV_DEMOFIX->DUKASCOPYFIX, >>>>> event> >>>>> (Pending connection not established after 5078 ms.) >>>>> >>>>> >>>>> >>>>> I'm afraid that the admin didn't make his job and let some ports >>>>> closed...or >>>>> something... >>>>> >>>>> >>>>> >>>>> >>>>> Steve Bate wrote: >>>>>> >>>>>> QuickFIX/J Documentation: http://www.quickfixj.org/documentation/ >>>>>> QuickFIX/J Support: http://www.quickfixj.org/support/ >>>>>> >>>>>> >>>>>> I don't know if 'urlofthehost' is literally a URL, but it should just >>>>>> be >>>>>> the host name. Are you sure you aren't seeing any other error >>>>>> messages >>>>>> in the log output? >>>>>> >>>>>>> Hello, >>>>>>> >>>>>>> I'm using quickfixj to connect to dukascopy server. QuickFix is a >>>>>>> new >>>>>>> tool for me. The steps which I took by now are: >>>>>>> 1. >>>>>>> I sent my IP and a PORT (5017) to dukascopy to activate them. >>>>>>> I've received from them this infos: >>>>>>> URL(SSL): urlofthehost >>>>>>> Feed port:feedPortNumber >>>>>>> Trade port: tradePortNumber >>>>>>> SenderCompID(TRADE):senderCompIdTrade >>>>>>> SenderCompID(FEED):senderCompIdFeed >>>>>>> TargetCompID(both): targetCompId >>>>>>> Login: myLogin >>>>>>> Password: myPassword >>>>>>> >>>>>>> >>>>>>> (My LAN is restricted so I've talked with the admin to configure the >>>>>>> main >>>>>>> router to route the trafic from router port 5017 to my computer's >>>>>>> port >>>>>>> 5017) >>>>>>> >>>>>>> First question is: I have to open feedPortNumber and tradePortNumber >>>>>>> too? >>>>>>> >>>>>>> 2. I wrote the cfg file for SessionSettings: >>>>>>> >>>>>>> # default settings for sessions >>>>>>> [DEFAULT] >>>>>>> FileStorePath=C:/temp/ >>>>>>> ConnectionType=initiator >>>>>>> ReconnectInterval=60 >>>>>>> SenderCompID=senderCompIdFeed >>>>>>> TargetCompID=targetCompId >>>>>>> >>>>>>> >>>>>>> >>>>>>> # session definition >>>>>>> [SESSION] >>>>>>> >>>>>>> >>>>>>> BeginString=FIX.4.4 >>>>>>> StartTime=00:00:00 >>>>>>> EndTime=23:30:00 >>>>>>> HeartBtInt=20 >>>>>>> SocketConnectPort=feedPortNumber >>>>>>> SocketConnectHost=urlofthehost >>>>>>> >>>>>>> >>>>>>> 3. In dukasCopy doc appear this: >>>>>>> >>>>>>> "Both clients? and Dukascopy FIX engines communicate using >>>>>>> SSL-encrypted >>>>>>> TCP sockets. No special SSL certificates needed for now. Client can >>>>>>> use >>>>>>> either resource provided by FIX engine or using SSL tunneling." >>>>>>> >>>>>>> So , I've downloaded stunnel and wrote the cfg file : >>>>>>> >>>>>>> ; stunnel.conf >>>>>>> client = yes >>>>>>> >>>>>>> >>>>>>> >>>>>>> [executor] >>>>>>> accept = feedPortNumber >>>>>>> connect =urlofthehost >>>>>>> >>>>>>> 4. I start stunnel and run my application >>>>>>> >>>>>>> >>>>>>> At this point I got these kind of messages: >>>>>>> >>>>>>> <20081024-11:36:24, FIX.4.4:FEED_TIGROLEV_DEMOFIX->DUKASCOPYFIX, >>>>>>> event> >>>>>>> (Pending connection not established after 2078 ms.) >>>>>>> ..... >>>>>>> ..... >>>>>>> >>>>>>> #######################THE JAVA CODE############################# >>>>>>> >>>>>>> SessionSettings settings = null; >>>>>>> try { >>>>>>> settings = new >>>>>>> SessionSettings("C:\\temp\\dukascopy.cfg"); >>>>>>> } catch (ConfigError e1) { >>>>>>> // TODO Auto-generated catch block >>>>>>> e1.printStackTrace(); >>>>>>> } >>>>>>> >>>>>>> boolean logHeartbeats = Boolean.valueOf( >>>>>>> System.getProperty("logHeartbeats", >>>>>>> "true")).booleanValue(); >>>>>>> >>>>>>> MessageStoreFactory messageStoreFactory = new >>>>>>> FileStoreFactory(settings); >>>>>>> >>>>>>> LogFactory logFactory = new ScreenLogFactory(true, >>>>>>> true, >>>>>>> true, >>>>>>> logHeartbeats); >>>>>>> >>>>>>> MessageFactory messageFactory = new >>>>>>> DefaultMessageFactory(); >>>>>>> >>>>>>> try { >>>>>>> initiator = new SocketInitiator(this, >>>>>>> messageStoreFactory, >>>>>>> settings, logFactory, >>>>>>> messageFactory); >>>>>>> } catch (ConfigError e) { >>>>>>> // TODO Auto-generated catch block >>>>>>> e.printStackTrace(); >>>>>>> } >>>>>>> initiator.start(); >>>>>>> >>>>>>> ########################################################### >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> Please tell me what could be the problem? (the router configuration >>>>>>> is >>>>>>> not >>>>>>> ok? some ports are closed? some config files are not ok? the code is >>>>>>> not >>>>>>> correct?). I really need help because I'm trying to connect to them >>>>>>> for >>>>>>> like a week and I'm not succeeding. >>>>>>> >>>>>>> >>>>>>> If you have some experience with quickfix please help me...because >>>>>>> I'm >>>>>>> stucked ... >>>>>>> >>>>>>> >>>>>>> Thanks in advance, >>>>>>> Florin Botis >>>>>>> >>>>>>> ------------------------------------------------------------------------- >>>>>>> This SF.Net email is sponsored by the Moblin Your Move Developer's >>>>>>> challenge >>>>>>> Build the coolest Linux based applications with Moblin SDK & win >>>>>>> great >>>>>>> prizes >>>>>>> Grand prize is a trip for two to an Open Source event anywhere in >>>>>>> the >>>>>>> world >>>>>>> http://moblin-contest.org/redirect.php?banner_id=100&url=/_______________________________________________ >>>>>>> Quickfixj-users mailing list >>>>>>> Qui...@li... >>>>>>> https://lists.sourceforge.net/lists/listinfo/quickfixj-users >>>>>>> >>>>>> >>>>>> >>>>>> >>>>>> ------------------------------------------------------------------------- >>>>>> This SF.Net email is sponsored by the Moblin Your Move Developer's >>>>>> challenge >>>>>> Build the coolest Linux based applications with Moblin SDK & win >>>>>> great >>>>>> prizes >>>>>> Grand prize is a trip for two to an Open Source event anywhere in the >>>>>> world >>>>>> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >>>>>> _______________________________________________ >>>>>> Quickfixj-users mailing list >>>>>> Qui...@li... >>>>>> https://lists.sourceforge.net/lists/listinfo/quickfixj-users >>>>>> >>>>>> >>>>> >>>>> -- >>>>> View this message in context: >>>>> http://n2.nabble.com/Connection-problem%2C-Please-help-me...-tp1372056p1372459.html >>>>> Sent from the QuickFIX/J mailing list archive at Nabble.com. >>>>> >>>>> >>>>> ------------------------------------------------------------------------- >>>>> This SF.Net email is sponsored by the Moblin Your Move Developer's >>>>> challenge >>>>> Build the coolest Linux based applications with Moblin SDK & win great >>>>> prizes >>>>> Grand prize is a trip for two to an Open Source event anywhere in the >>>>> world >>>>> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >>>>> _______________________________________________ >>>>> Quickfixj-users mailing list >>>>> Qui...@li... >>>>> https://lists.sourceforge.net/lists/listinfo/quickfixj-users >>>>> >>>> >>>> >>>> >>>>-- >>>>Toli Kuznets >>>>http://www.marketcetera.com: Open-Source Trading Platform >>>>download.run.trade. >>>> >>>>------------------------------------------------------------------------- >>>>This SF.Net email is sponsored by the Moblin Your Move Developer's >>challenge >>>>Build the coolest Linux based applications with Moblin SDK & win great >>prizes >>>>Grand prize is a trip for two to an Open Source event anywhere in the >>world >>>>http://moblin-contest.org/redirect.php?banner_id=100&url=/ >>>>_______________________________________________ >>>>Quickfixj-users mailing list >>>>Qui...@li... >>>>https://lists.sourceforge.net/lists/listinfo/quickfixj-users >>> >>> ------------------------------------------------------------------------- >>> This SF.Net email is sponsored by the Moblin Your Move Developer's >>> challenge >>> Build the coolest Linux based applications with Moblin SDK & win great >>> prizes >>> Grand prize is a trip for two to an Open Source event anywhere in the >>> world >>> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >>> _______________________________________________ >>> Quickfixj-users mailing list >>> Qui...@li... >>> https://lists.sourceforge.net/lists/listinfo/quickfixj-users >>> >>> >> >>-- >>View this message in context: http://n2.nabble.com/Connection-problem%2C-Please-help-me...-tp1372056p1372588.html >>Sent from the QuickFIX/J mailing list archive at Nabble.com. >> >> >>------------------------------------------------------------------------- >>This SF.Net email is sponsored by the Moblin Your Move Developer's challenge >>Build the coolest Linux based applications with Moblin SDK & win great prizes >>Grand prize is a trip for two to an Open Source event anywhere in the world >>http://moblin-contest.org/redirect.php?banner_id=100&url=/ >>_______________________________________________ >>Quickfixj-users mailing list >>Qui...@li... >>https://lists.sourceforge.net/lists/listinfo/quickfixj-users > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the > world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Quickfixj-users mailing list > Qui...@li... > https://lists.sourceforge.net/lists/listinfo/quickfixj-users > > -- View this message in context: http://n2.nabble.com/Connection-problem%2C-Please-help-me...-tp1372056p1381508.html Sent from the QuickFIX/J mailing list archive at Nabble.com. |