Hi Mark, that's it. Maybe you have to add a linfeed in this line (rdate.c) for a better output:
printf("Loop %d: time on host %s = %ld == %s \n", i, server, *lres, ctime(lres)); But indeed, that is the error. The output of my test (libtirpc without changes): $ ./client ttil75 Loop 0: time on host ttil75 = 1514880129 == Tue Jan 2 09:02:09 2018 can't establish connection with host ttil75 And the test, if i patch the libtirpc (port = 0 before bind()): $ ./client ttil75 Loop 0: time on host ttil75 = 1514879460 == Tue Jan 2 08:51:00 2018 Loop 1: time on host ttil75 = 1514879461 == Tue Jan 2 08:51:01 2018 Loop 2: time on host ttil75 = 1514879462 == Tue Jan 2 08:51:02 2018 Loop 3: time on host ttil75 = 1514879463 == Tue Jan 2 08:51:03 2018 Loop 4: time on host ttil75 = 1514879464 == Tue Jan 2 08:51:04 2018 Loop 5: time on host ttil75 = 1514879465 == Tue Jan 2 08:51:05 2018 Loop 6: time on host ttil75 = 1514879466 == Tue Jan 2 08:51:06 2018 Loop 7: time on host ttil75 = 1514879467 == Tue Jan 2 08:51:07 2018 Loop 8: time on host ttil75 = 1514879468 == Tue Jan 2 08:51:08 2018 Loop 9: time on host ttil75 = 1514879469 == Tue Jan 2 08:51:09 2018 Loop 10: time on host ttil75 = 1514879470 == Tue Jan 2 08:51:10 2018 Loop 11: time on host ttil75 = 1514879471 == Tue Jan 2 08:51:11 2018 Loop 12: time on host ttil75 = 1514879472 == Tue Jan 2 08:51:12 2018 Loop 13: time on host ttil75 = 1514879473 == Tue Jan 2 08:51:13 2018 .. .. .. Loop 96: time on host ttil75 = 1514879556 == Tue Jan 2 08:52:36 2018 Loop 97: time on host ttil75 = 1514879557 == Tue Jan 2 08:52:37 2018 Loop 98: time on host ttil75 = 1514879558 == Tue Jan 2 08:52:38 2018 Loop 99: time on host ttil75 = 1514879559 == Tue Jan 2 08:52:39 2018 I think, the cause for this error is a failure in the function bind(). But I don't know the sources of bind(). Greetings and a happy new year Raimund -----Ursprüngliche Nachricht----- Von: cygwin-ow...@cygwin.com [mailto:cygwin-ow...@cygwin.com] Im Auftrag von Mark Geisert Gesendet: Sonntag, 31. Dezember 2017 10:50 An: cygwin@cygwin.com Betreff: Re: AW: RPC clnt_create() adress already in use Hi Raimund, I think I've now got a working RPC test-bed on my Cygwin machine. I did have to deal with Windows Firewall but it was easy. I installed rpcbind, started it up, compiled following your recipe and ran './server' and './client localhost' in two separate windows. What I see is this... ./client localhost Loop 0: time on host localhost = 1514712920 == Sun Dec 31 01:35:20 2017 can't establish connection with host localhost Am I correct that what you expect to see is multiple lines each starting with a different "Loop" number? And that if I use a vanilla (non-Cygwin) libtirpc I should see those multiple lines? Thanks, ..mark -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple