In unix Which command do you use to assign a socket to a specific address?
There isn't a generalized way from the command line in Unix to
connect to a socket; there are socket libraries you can utilize
from within the 'C' language to assign, bind, and connect to a
specific socket address. For example:
int connect(int s, const struct sockaddr *name, int
namelen);
In Linux, you can use the 'socket' command to connect to a
specific socket as:
socket ?options? host port
Where the host is the IP address and the port is the port number
(giving you the socket address).