05-28-2014
Yes, it'd need an IP address to talk over an IP network just like your other ethernet devices.
The "port" has more to do with the program you're connecting with. Consider it like a telephone branch office. The IP address is the "building", the port is the "extension number". Opening 1.2.3.4 port 80 would get you its web server, 1.2.3.4 port 21 would get its ssh server, etc.
8 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
We are trying to Establish Network using Linux.Now we are facing the problem in configring Ethernet.In out network we are giving eth0 in server and activating it at the boot time,so it is activating as it is but when we define the Ethernet of node on server and allowing it to activate at boot time... (5 Replies)
Discussion started by: at_renai2001
5 Replies
2. Solaris
I have a Quad Ethernet card in a 220R. 2 ports activated. Each has its own hostname file and both hostnames are in the hosts file. I want both ports to have the same IP address so we can use the 2nd port in case we lose communication on the port. On bootup, the box gives me:
SIOCSLIFFLAGS:... (5 Replies)
Discussion started by: hshapiro
5 Replies
3. AIX
Hello everyone
I have a problem with one server, has Aix 5.3 in the errpt has this message
IDENTIFIER TIMESTAMP T C RESOURCE_NAME DESCRIPTION
F3931284 0105133009 I H ent0 ETHERNET NETWORK RECOVERY MODE
EC0BCCD4 0105133009 T H ent0 ETHERNET DOWN
F3931284 ... (4 Replies)
Discussion started by: lo-lp-kl
4 Replies
4. Solaris
I have a new Sun 440 and I am trying to configure it. Non of the Ethernet ports are enabled; when I issue "ifconfig -a" it returns nothing. Is there a way to know the available port name (e.g. ce, bge, etc.) by running a command or so ? (4 Replies)
Discussion started by: StarSol
4 Replies
5. Solaris
my solris box network is unreachable how to solve this
ipaddress assiagning and entry in vi /etc/host
how to solve network is unreachable (2 Replies)
Discussion started by: tirupathi
2 Replies
6. Solaris
I had installed soalris 10 on my dell vostro 1400.It had installed succefully.
If i type ifconfig -a it is showing only my loop back adpater.
So how to tell me how to mount my usb drive and how to configure
my lan ethernet card,My lan ethernet card is Broadcom.
Tell me step... (1 Reply)
Discussion started by: testerindia25
1 Replies
7. UNIX for Dummies Questions & Answers
Is there an easy way to setup a cross-over cable (USB-USB) between a linux box and a windows PC? My 2 machines are next to each other but I really do not want to keep transfering my files using my USB drive.
Thanks! (4 Replies)
Discussion started by: Xterra
4 Replies
8. AIX
Hi
In the vio server when I do # lsattr -El hdisk*, I get a PVID. The same PVID is also seen when I put the lspv command on the vio client partition. This way Im able to confirm the lun using the PVID.
Similarly how does the vio client partition gets the virtual ethernet scsi client adapter... (1 Reply)
Discussion started by: newtoaixos
1 Replies
LEARN ABOUT ULTRIX
rpc_name_to_sockaddr
rpc_name_to_sockaddr(3ncs) rpc_name_to_sockaddr(3ncs)
Name
rpc_name_to_sockaddr - convert a host name and port number to a socket address (client or server)
Syntax
#include <idl/c/rpc.h>
void rpc_$name_to_sockaddr(name, nlength, port, family, sockaddr, slength, status)
unsigned char name;
unsigned long nlength;
unsigned long port;
unsigned long family;
socket_$addr_t *sockaddr;
unsigned long *slength;
status_$t *status;
Arguments
name A string that contains a host name and, optionally, a port and an address family. The format is family:host[port],
where family: and [port] are optional. If you specify a family as part of the name parameter, you must specify
socket_$unspec in the family parameter. The family part of the name parameter is ip; host is the host name; port is an
integer port number.
nlength The number of characters in name.
port The socket port number. This parameter should have the value rpc_$unbound_port if you are not specifying a well-known
port; in this case, the returned socket address will specify the Local Location Broker (LLB) forwarding port at host.
If you specify the port number in the name parameter, this parameter is ignored.
family The address family to use for the socket address. This value corresponds to the communications protocol used to access
the socket and determines how the sockaddr is expressed. If you specify the address family in the name parameter, this
parameter must have the value socket_$unspec.
sockaddr The socket address corresponding to name, port, and family.
slength The length, in bytes, of sockaddr.
status The completion status. If the completion status returned in is equal to status_$ok , then the routine that supplied it
was successful.
Description
The routine provides the socket address for a socket, given the host name, the port number, and the address family.
You can specify the socket address information either as one text string in the name parameter or by passing each of the three elements as
separate parameters( name, port, and family ); in the latter case, the name parameter should contain only the hostname.
Diagnostics
This section lists status codes for errors returned by this routine in
rpc_$not_in_call An internal error.
rpc_$proto_error An internal protocol error. This routine has been superseded by the routine.
Files
See Also
intro(3ncs), rpc_sockaddr_to_name(3ncs), socket_from_name(3ncs)
rpc_name_to_sockaddr(3ncs)