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 was with ******* for 4 years at $230 a month, this is a huge savings for me, GOD BLESS YOU PEOPLE," - Comment from T.S. via Email
"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
"Thanks for the great product and support. During this week of high volume trading, my QuoteTracker + IQ Feed setup never missed a beat. Also, thanks for your swiftness in responding to data issues. I was on ******* for a few years before I made the switch over early this year, and wish I had done it a long time ago." - Comment from Ken
"I had always used ******* but for the past 2 weeks have been trying DTN IQFeed. Customer support has been extraordinary. They call just to make sure your problem hasn't recurred." - Comment from Public Forum
"I am a hedge fund manager here. It’s funny, I have a Bloomberg terminal and a Bridge feed, but I still like having my DTN feed!" - Comment from Feras
"I am enjoying the feed very much - so superior to the broker provided feed I was previously using." - Comment from George
"Everything is working great with the API. I love it." - Comment from Calvin
"DTN has never given me problems. It is incredibly stable. In fact I've occasionally lost the data feed from Interactive Brokers, but still been able to trade because I'm getting good data from DTN." - Comment from Leighton
"Can I get another account from you? I am tired of ******* going down so often" - Comment from George
"I would just like to say that IQFeed version 4 is running very well and I am very happy with its performance. I would also like to extend a big thanks for the fast and efficient help that I always receive. My questions and concerns are always addressed promptly. Way to go!" - Comment from Josh in CO.
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 »Getting a "Connect failed. WSAGetLastError = 10049"
Author Topic: Getting a "Connect failed. WSAGetLastError = 10049" (4 messages, Page 1 of 1)

simon33
-Interested User-
Posts: 28
Joined: Apr 9, 2005


Posted: Sep 9, 2008 11:44 PM          Msg. 1 of 4
I have IQFeed on two machines. One connects and works perfectly. The other throws this error in the logs. "Connect failed. WSAGetLastError = 10049". I have compared the registery and the entries are the same. One thing I did see differently is that when I connect on the good machine, its on port 60020, on the bad machine its port 5002.

Here is more of the log:
FROM CLIENT (ADMIN)=2008-09-09 23:37:09: REGISTER_CLIENT_APP1 IQFEED_DEMO 1.0 0.11111111
TO CLIENT (ADMIN)=2008-09-09 23:37:09: 1
STATUS (LOOKUP)=2008-09-09 23:37:10: SOCKET ACCEPTED
FROM CLIENT (LOOKUP)=2008-09-09 23:37:10: HD,SPX.XO,600
IQConnect (CHistoryLookup::SendDayRequest)=2008-09-09 23:37:10: Connect failed. WSAGetLastError = 10049
TO CLIENT (LOOKUP)=2008-09-09 23:37:10: !ERROR! Could not connect to History socket.

JDonovan
-Interested User-
Posts: 24
Joined: Feb 11, 2007


Posted: Sep 10, 2008 07:58 AM          Msg. 2 of 4
10049 error indicates that either the IP address (an attempt to bind to an address that is not valid for the local machine) or the Port number is bad (port is not valid for a remote machine). Try modifying the IP/Port settings on the bad machine to match those on the good machine.

- Jeff

simon33
-Interested User-
Posts: 28
Joined: Apr 9, 2005


Posted: Sep 10, 2008 09:51 AM          Msg. 3 of 4
I checked the registry and all entries on both machines are the same with one exception: there is a key that exists on the good machine called showIDDMOTD=0 that is not in the other registry. Does this matter? Also, I looked in the event viewer on the machine and didn't see any events for 'applications'

If you didn't mean the registry settings, can you explain more about modifying the IP/Port settings. I'm rather technical (I'm a programmer) so you don't have to be exhaustive.

Thanks in advance.

DTN_Steve_S
-DTN Guru-
Posts: 2093
Joined: Nov 21, 2005


Posted: Sep 10, 2008 10:05 AM          Msg. 4 of 4
Hello simon33, it sounds to me like something is blocking the connection to the server. Are you behind a firewall or router? Do you have firewall software on the machine? If so, try configuring the firewall explicitly allow connections to the following ip addresses on port 5050 and 60050.

66.112.156.210 - 214
66.112.148.210 - 214
 

 

Time: Sat May 18, 2024 3:34 AM CFBB v1.2.0 6 ms.
© AderSoftware 2002-2003