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)




"IQFeed version 4 is a real screamer compared to anything else I have seen." - Comment from Tom
"I like you guys better than *******...much more stable and a whole lot fewer issues." - Comment from Philip
"I just wanted to let u know that your data feed/service is by far the best!!! Your unfiltered tick data is excellent for reading order flow and none of your competitors delivers this quality of data!" - Comment from Peter via Email
"I started a trial a few weeks back before the market went wild. DTN.IQ didn’t miss anything and beat my other provider. I decided to stay with you because of the great service through all the volatility." - Comment from Mike
"Its working FABULOUSLY for me!! Holy cow...there has been so much I've been missing lately, and with this feed and Linnsoft software...I'm in the game now." - Comment from Chris R.
"Awesome response, as usual. It is a sincere and refreshing pleasure to do business with DTN, compared to your competition." - Comment from Ryan
"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 just wanted to let you know how fast and easy I found it to integrate IQFeed into our existing Java code using your JNI client. In my experience, such things almost never go so smoothly - great job!" - Comment from Nate
"I have been using IQFeed now for a few years in MultiCharts and I have zero complaints. Very, very rare to have any data hiccups or anything at all go wrong." - Comment from Public Forum
"Everything is working amazing now. I'm already impressed with the true-tick feed of IQFeed and it's ability to support my 480 symbol layout." - Comment from Tyler via Email
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 7:50 PM CFBB v1.2.0 6 ms.
© AderSoftware 2002-2003