How to make a program to listen on a Particular port
I have writen a script .I wanted it to listen on a particular port in my machine.How to do that?.
For eaxmple Every one tried to connect to that port should be welcomed with a message,
echo "welcome to my port"
.How to do that?