{error_logger,{{2013,10,14},{12,31,31}},"Protocol: ~p: register/listen error: ~p~n",["inet_tcp",eaddrinuse]}
Can anyone give some advice. Thank you.
Most likely (assuming that the port isn't being used by another program) your application is trying to listen on the same port twice. So the first time it opened the port for listening it would succeed, and the second time it would fail with an error.
I have had this happen to me before, so try logging what your application is doing on both successes and failures to understand the real issue a little better.
Also its a little hard to tell where the error could be coming from because no sample code, or context is provided.