How to check connectivity from specific source server to destination server using telnetlib

I have understood that we can use telnetlib to check connectivity to a remote server from our local machine but how to do this when we are given a specific source.