# How do you connect to a FIX server via TCP/Winsock?

**URL:** <https://forum.fixtrading.org/t/how-do-you-connect-to-a-fix-server-via-tcp-winsock/12715>\
**Category:** General Q&A\
**Tags:** imported, xid\_3854101, fix-technology\
**Created:** [March 6, 2017, 3:16pm UTC](https://forum.fixtrading.org/t/how-do-you-connect-to-a-fix-server-via-tcp-winsock/12715 "2017-03-06T15:16:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hanno.klein](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.fixtrading.org/hanno.klein/32/38_2.png) [@hanno.klein](https://forum.fixtrading.org/u/hanno.klein)\
**Post date:** [March 6, 2017, 3:16pm UTC](https://forum.fixtrading.org/t/how-do-you-connect-to-a-fix-server-via-tcp-winsock/12715/1 "2017-03-06T15:16:17Z")

</div>

Imported from previous forum

---

<div class="post-metadata">

**Author:** ![hanno.klein](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.fixtrading.org/hanno.klein/32/38_2.png) [@hanno.klein](https://forum.fixtrading.org/u/hanno.klein)\
**Post date:** [March 6, 2017, 3:16pm UTC](https://forum.fixtrading.org/t/how-do-you-connect-to-a-fix-server-via-tcp-winsock/12715/2 "2017-03-06T15:16:18Z")

</div>

Question from r roy on March 2, 2017 (reposted from FIXML forum, [http://www.fixtradingcommunity.org//pg/discussions/topicpost/164944](http://www.fixtradingcommunity.org//pg/discussions/topicpost/164944)):

How to send & receive FIX mesaages via TCP/Winsock?

Is it possible to connect to a FIX server via TCP & send/receive messages? (via send() & recv() functions perhaps?)

About using Quickfix, I haven’t yet completed C# & XML, so I need a fairly simple demonstration via C++. If yes, can you show me an example of how to achieve such?
