Server program of socket programming not running

I have made a sample c socket program. I pushed client side to one container and server side in another. Client side is working fine in docker but server side is unable to run. When I run the server side in docker, the process hangs. Nothing is printed on screen and neither does the program terminate.
I also checked the logs but they are empty.

Please suggest solution for this.