Defining server ports: Difference between revisions
m (1 revision) |
m (1 revision) |
||
Line 3: | Line 3: | ||
In order for a client application to communicate with a server application, it must have a way to identify the server application on the network. Under the TCP/IP protocols, the identity of a server has two parts. The first part identifies the machine on which the server runs. This part is called the machine's (or host's) IP address. The second part distinguishes the server application from other applications on the host. This part is called the port number. | In order for a client application to communicate with a server application, it must have a way to identify the server application on the network. Under the TCP/IP protocols, the identity of a server has two parts. The first part identifies the machine on which the server runs. This part is called the machine's (or host's) IP address. The second part distinguishes the server application from other applications on the host. This part is called the port number. | ||
A host's IP address is a 32-bit unsigned binary number that is displayed in “dotted” format, for example, 198.242.244.33. To avoid having to refer to these types of addresses, most networks have nameservers or names files that map names to IP addresses. That way, a client application can connect to a host by a name (such as IBM3090) rather than by an address. | A host's IP address is a 32-bit unsigned binary number that is displayed in “dotted” format, for example, 198.242.244.33. To avoid having to refer to these types of addresses, most networks have nameservers or names files that map names to IP addresses. That way, a client application can connect to a host by a name (such as IBM3090) rather than by an address. | ||
A port number is a number from 1 to 65535 that is assigned to every server application that is available on a host. In the case of Janus IFDIAL, the Janus server products (Janus Specialty Data Store, Janus Open Server, and <var class="product>Janus Web Server</var>), and Janus server sockets, this port number is specified by the second parameter on the [[JANUS DEFINE]] command. | A port number is a number from 1 to 65535 that is assigned to every server application that is available on a host. In the case of Janus IFDIAL, the Janus server products (Janus Specialty Data Store, <var class="product>Janus Open Server</var>, and <var class="product>Janus Web Server</var>), and Janus server sockets, this port number is specified by the second parameter on the [[JANUS DEFINE]] command. | ||
Since this port number must be unique for the host, it is impossible to start ([[JANUS START]]) a port with a port number that matches a port number for any other application running on the same host. This includes any Janus port on the same or a different Online that uses the same IP address. This also includes any other non-Janus server application. For example, port number 23 is almost always used by the telnet server. An attempt to start a Janus server for port number 23 will undoubtedly encounter a port in use situation and be unable to start. | Since this port number must be unique for the host, it is impossible to start ([[JANUS START]]) a port with a port number that matches a port number for any other application running on the same host. This includes any Janus port on the same or a different Online that uses the same IP address. This also includes any other non-Janus server application. For example, port number 23 is almost always used by the telnet server. An attempt to start a Janus server for port number 23 will undoubtedly encounter a port in use situation and be unable to start. | ||
Line 13: | Line 13: | ||
The [[BINDADDR]] parameter of the [[JANUS DEFINE]] command also allows you to specify which IP address to use for a Janus server, if your operating system is configured to bind a port to one of multiple IP server addresses. | The [[BINDADDR]] parameter of the [[JANUS DEFINE]] command also allows you to specify which IP address to use for a Janus server, if your operating system is configured to bind a port to one of multiple IP server addresses. | ||
Sybase provides a way of mapping an application name to a host name (or address) and port number. This makes it possible to access a specific application by specifying only a single application name. This mapping is done through a mapping file called the “interfaces file” on Unix workstations, and through entries in WIN.INI or SQL.INI under Microsoft Windows. For more information on this mapping, refer to the Sybase DB/Library manuals. | Sybase provides a way of mapping an application name to a host name (or address) and port number. This makes it possible to access a specific application by specifying only a single application name. This mapping is done through a mapping file called the &#x201C;interfaces file&#x201D; on Unix workstations, and through entries in WIN.INI or SQL.INI under Microsoft Windows. For more information on this mapping, refer to the Sybase DB/Library manuals. | ||
==JANUS DEFINE and JANUS DEFINEREMOTE subcommands== | ==JANUS DEFINE and JANUS DEFINEREMOTE subcommands== | ||
Line 21: | Line 21: | ||
<ul> | <ul> | ||
<li>Assign a port number for Janus IFDIAL processing.</li> | <li>Assign a port number for Janus IFDIAL processing.</li> | ||
<li>Assign a port number to a Janus Open Server application. | <li>Assign a port number to a <var class="product>Janus Open Server</var> application. | ||
<li>Assign a port number to a Janus Specialty Data Store server. | <li>Assign a port number to a Janus Specialty Data Store server. | ||
<li>Assign a port number to a <var class="product>Janus Web Server</var> server. In addition to the second option above, assigning a port number to a Janus Open Server application, a JANUS DEFINE command can also: | <li>Assign a port number to a <var class="product>Janus Web Server</var> server. In addition to the second option above, assigning a port number to a <var class="product>Janus Open Server</var> application, a JANUS DEFINE command can also: | ||
<li>Assign a (MASTER) port number for use by non-Janus Open Server users to access Janus Open Client applications. | <li>Assign a (MASTER) port number for use by non-Janus Open Server users to access Janus Open Client applications. | ||
</ul> | </ul> | ||
Line 32: | Line 32: | ||
<li>Assign a remote host address and port number for Janus Open Client processing, | <li>Assign a remote host address and port number for Janus Open Client processing, | ||
and assign which local port numbers can call the remote host/port (non-INONLY). | and assign which local port numbers can call the remote host/port (non-INONLY). | ||
<li>Specify the address of a remote host and the Janus Open Server applications it may access (non-OUTONLY). | <li>Specify the address of a remote host and the <var class="product>Janus Open Server</var> applications it may access (non-OUTONLY). | ||
</ul> | </ul> | ||
Revision as of 19:55, 28 June 2011
Server Ports
In order for a client application to communicate with a server application, it must have a way to identify the server application on the network. Under the TCP/IP protocols, the identity of a server has two parts. The first part identifies the machine on which the server runs. This part is called the machine's (or host's) IP address. The second part distinguishes the server application from other applications on the host. This part is called the port number.
A host's IP address is a 32-bit unsigned binary number that is displayed in “dotted” format, for example, 198.242.244.33. To avoid having to refer to these types of addresses, most networks have nameservers or names files that map names to IP addresses. That way, a client application can connect to a host by a name (such as IBM3090) rather than by an address.
A port number is a number from 1 to 65535 that is assigned to every server application that is available on a host. In the case of Janus IFDIAL, the Janus server products (Janus Specialty Data Store, Janus Open Server, and Janus Web Server), and Janus server sockets, this port number is specified by the second parameter on the JANUS DEFINE command.
Since this port number must be unique for the host, it is impossible to start (JANUS START) a port with a port number that matches a port number for any other application running on the same host. This includes any Janus port on the same or a different Online that uses the same IP address. This also includes any other non-Janus server application. For example, port number 23 is almost always used by the telnet server. An attempt to start a Janus server for port number 23 will undoubtedly encounter a port in use situation and be unable to start.
On a system with several local server applications, or with more than one Online (maybe test and production) with several Janus ports, a simple strategy to keep port numbers from conflicting is to assign a range of ports to each Online. For example, port numbers 300-399 might be reserved for the test Online, and port numbers 400-499 might be reserved for the production Online.
The BINDADDR parameter of the JANUS DEFINE command also allows you to specify which IP address to use for a Janus server, if your operating system is configured to bind a port to one of multiple IP server addresses.
Sybase provides a way of mapping an application name to a host name (or address) and port number. This makes it possible to access a specific application by specifying only a single application name. This mapping is done through a mapping file called the “interfaces file” on Unix workstations, and through entries in WIN.INI or SQL.INI under Microsoft Windows. For more information on this mapping, refer to the Sybase DB/Library manuals.
JANUS DEFINE and JANUS DEFINEREMOTE subcommands
A JANUS DEFINE command can do any one of the following:
- Assign a port number for Janus IFDIAL processing.
- Assign a port number to a Janus Open Server application.
- Assign a port number to a Janus Specialty Data Store server.
- Assign a port number to a Janus Web Server server. In addition to the second option above, assigning a port number to a Janus Open Server application, a JANUS DEFINE command can also:
- Assign a (MASTER) port number for use by non-Janus Open Server users to access Janus Open Client applications.
A JANUS DEFINEREMOTE command can do any combination of the following:
- Assign a remote host address and port number for Janus Open Client processing, and assign which local port numbers can call the remote host/port (non-INONLY).
- Specify the address of a remote host and the Janus Open Server applications it may access (non-OUTONLY).
References
See: List of Janus commands | Category:Janus Web Server | Janus SOAP