# how to run tcp/ip sample program

**URL:** <https://forums.digi.com/t/how-to-run-tcp-ip-sample-program/10300>\
**Category:** Rabbit\
**Created:** [May 6, 2009, 9:05am UTC](https://forums.digi.com/t/how-to-run-tcp-ip-sample-program/10300 "2009-05-06T09:05:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![User1159](https://avatars.discourse-cdn.com/v4/letter/u/958977/32.png) [@User1159](https://forums.digi.com/u/User1159)\
**Post date:** [May 6, 2009, 9:05am UTC](https://forums.digi.com/t/how-to-run-tcp-ip-sample-program/10300/1 "2009-05-06T09:05:20Z")

</div>

I am working on RCM4000 and wants to communicate with the kit over ethernet port. I have tried with some samle programs :- active .c and serialexa.c but I am not able to establish the connection with the socket. I am continuously sending data at the ethernet port of RCM4000 using PC.  
The program remains in below loop:-  
while(!sock\_established(&socket) && sock\_bytesready(&socket)==-1) {  
tcp\_tick(NULL);

How can I establish the coonnection with the socket?  
Please help me…
