Applied listen function to server instance.