Listen to a port

I have a service that runs on a specific port. I am wanting to monitor that port.
I know I can use telnet to establish a connection if it exists but I don’t know how to close the connection, or display an error if one occurs.
Any idea on how I can do this?

I do not have to use telnet. I would prefer not to use third party.