answersLogoWhite

0

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).

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

What are the functions of socket?

The socket function causes a socket descriptor and any related resources to be allocated and bound to a specific transport-service provider. Winsock will utilize the first available service provider that supports the requested combination of address family, socket type and protocol parameters.


A socket address comprises the up address of the host and a port number true or false?

It is true that a socket address comprises the IP address of the host and a port number.


What is the difference between port and socket?

A socket is not a port, though there is a close relationship between them. A socket is associated with a port, though this is a many-to-one relationship. Each port can have a single passive socket, awaiting incoming connections, and multiple active sockets, each corresponding to an open connection on the port. Port identifies a service no. e.g.25 port no is for smtp


What three elements make up a socket?

Socket elements: 1. Address family - Identifies the name as belonging to the internet address family 2. Host address - IP address (e.g. 127.0.0.1) 3. Port number - TCP/IP port number


Does the Intel DP67BA motherboard come with a socket?

Yes, all motherboards come with a specific socket.+1Answers.comAnswers.com.


What is source server socket?

The ServerSocket bind to a local address and listens for new connections When a new connection arrives and the socket is managed by an IOManager a new Socket is created from the socket prototype provided on construction. You can also call accept() directly. The socket will then block until a new connection appears.


What term is a synonym for a dynamically assigned port address used to service a temporary TCPIP connection for data exchange?

Socket address


How does a socket distinguish one TCP connection from the other?

A socket is distinguished by a combination of IP address and port number - both for the origin and for the destination. So, two connections will be different connections, if any of these are different.A socket is distinguished by a combination of IP address and port number - both for the origin and for the destination. So, two connections will be different connections, if any of these are different.A socket is distinguished by a combination of IP address and port number - both for the origin and for the destination. So, two connections will be different connections, if any of these are different.A socket is distinguished by a combination of IP address and port number - both for the origin and for the destination. So, two connections will be different connections, if any of these are different.


A process's port number plus its host machine's IP address equals the process's?

socket


If the standard port number for the telnet is 23 a host whose ipv4 address is 10.43.3.87 has a socket address for telnet of?

A socket is the combination of an IP number and a port number. Often this is written as 10.43.3.87:23.A socket is the combination of an IP number and a port number. Often this is written as 10.43.3.87:23.A socket is the combination of an IP number and a port number. Often this is written as 10.43.3.87:23.A socket is the combination of an IP number and a port number. Often this is written as 10.43.3.87:23.


Where can I find online information about socket adapters?

This question seems to be a very specific search, but could easily lead to a wrong search due to the lack of additional information. Is this an electronic socket, a light bulb socket, a wrench socket set? So, I chose this site on electronic socket adapters: http://www.ironwoodelectronics.com/


What are the components of a socket?

The main components of a socket are the IP address and the port number. The IP address helps identify the destination device on a network, while the port number specifies which application or service should receive the incoming data. Together, they form a unique identifier for communication between devices.