Join the 80,000 other DTN customers who enjoy the fastest, most reliable data available. There is no better value than DTN!

(Move your cursor to this area to pause scrolling)




"I will tell others who want to go into trading that DTN ProphetX is an invaluable tool, I don't think anyone can trade without it..." - Comment from Luther
"This is an excellent value, the system is generous (allowing for 500 stocks) and stable (and really is tick-by-tick), and the support is fantastic." - Comment from Shirin via Email
"I'm very glad I switched to IQFeed. It's working perfectly with no lag, even during fast market conditions." - Comment from Andy via Email
"Interactive Brokers tick data was inconsistent, so I have switched to using DTN exclusively. It is great to no longer have to worry about my datafeed all day long." - Comment from Philippe
"Previously I was using *******. IQFeed is WAY more economical, and for my charting needs is just as good, if not better." - Comment from Public Forum Post
"You are much better than lawyers or the phone company because you answer the phone when I call! I just love your customer service." - Comment from Isreal
"I'm satisfied with IQFeed. It's the most reliable and fastest quote feed I have ever used. Although I'm a resident in China, it's still very fast!" - Comment from Xiaofei
"Just a quick one to say I'm very impressed so far :) The documentation for developers is excellent and I've quickly managed to get an app written to do historical downloads. The system is very robust and pretty quick considering the extent of data that's available. The support guys have been very helpful too, in combination with the forums it's been plain sailing so far!" - Comment from Adam
"Boy, probably spent a thousand hours trying to get ******* API to work right. And now two hours to have something running with IQFeed. Hmmm, guess I was pretty stupid to fight rather than switch all this time. And have gotten more customer service from you guys already than total from them… in five years." - Comment from Jim
"I am very pleased with the DTNIQ system for quotes and news." - Comment from Larry
Home  Search  Register  Login  Recent Posts

Information on DTN's Industries:
DTN Oil & Gas | DTN Trading | DTN Agriculture | DTN Weather
Follow DTNMarkets on Twitter
DTN.IQ/IQFeed on Twitter
DTN News and Analysis on Twitter
»Forums Index »Archive (2017 and earlier) »IQFeed Developer Support »Problem+solution connecting to an IQFeed port (already in use)
Author Topic: Problem+solution connecting to an IQFeed port (already in use) (1 messages, Page 1 of 1)

altmany
-Interested User-
Posts: 73
Joined: Jul 30, 2018

IQML - IQFeed-MATLAB connector


Posted: Apr 10, 2019 05:11 PM          Msg. 1 of 1
Today I spent a few frustrating hours trying to debug a problem when connecting to the Lookup port (for historic data) on a specific machine. For the benefit of others who may encounter a similar problem and search this forum, here's a breakdown of the problem, causes, analysis and solution:

TL/DR: When any other application on the computer uses one of IQFeed's ports, it cannot be used in IQFeed. Solution: either remove the other application, or change IQFeed's default port assignment to some unused port.

Symptoms:
  • Historic data failed to download, displaying errors about invalid data arriving on the Lookup port.
  • The IQConnect.txt file did not display any connection message to the Lookup port (only to other ports).
  • The Diagnostic utility was unable to listen to the Lookup port in the <Port Tester> tab, displaying an error message that "The specified address is already in use."


Diagnosis:
Open DOS Command Window (run as administrator) and run the following command:
netstat -abon

This will display all the active ports and the processes that hold them. For example, in my particular case the relevant line was this:
[lghub_agent.exe]
TCP 127.0.0.1:9100 0.0.0.0:0 LISTENING 2312

This tells us that the culprit is the lghub_agent.exe process (part of Logitec's G-Hub application), process ID=2312

Solutions:
  • Uninstall or disable the problematic other application
  • Configure the other application to use a different port (this is often not possible, but sometimes is)
  • Modify IQFeed's default port to use a different port number that is unused. For example, in the case of the Lookup port, the port number is stored in the registry key
    \\HKEY_CURRENT_USER\Software\DTN\IQFeed\Startup\LookupPort
    which you can modify using the Windows builtin regedit utility.


I hope this helps someone...



Yair Altman
IQML - IQFeed-MATLAB connector
https://UndocumentedMatlab.com/IQML

I am not a DTN employee; my post reflects my personal opinion

Edited by altmany on Apr 10, 2019 at 05:12 PM
 

 

Time: Sun May 19, 2024 10:09 AM CFBB v1.2.0 7 ms.
© AderSoftware 2002-2003