Is there any possible way to connect to any open port without calling any external command to do it ( for example nc or telnet) in a shell script .