2016-04-30 04:39:32 +00:00
2016-04-28 22:25:54 +00:00
[[_ports]]
2021-11-10 11:39:43 +00:00
=== Socket port bindings
2016-04-28 20:34:44 +00:00
2018-02-21 09:05:21 +00:00
The ports opened for each socket have a pre-defined default that can be overridden at the command line or within configuration.
2017-08-28 12:50:14 +00:00
To illustrate this configuration, let's pretend you are running in <<_standalone-mode,standalone mode>> and
2016-04-29 20:12:12 +00:00
open up the _.../standalone/configuration/standalone.xml_. Search for `socket-binding-group`.
2016-04-28 20:34:44 +00:00
[source,xml]
----
<socket-binding-group name="standard-sockets" default-interface="public" port-offset="${jboss.socket.binding.port-offset:0}">
<socket-binding name="management-http" interface="management" port="${jboss.management.http.port:9990}"/>
<socket-binding name="management-https" interface="management" port="${jboss.management.https.port:9993}"/>
<socket-binding name="ajp" port="${jboss.ajp.port:8009}"/>
<socket-binding name="http" port="${jboss.http.port:8080}"/>
<socket-binding name="https" port="${jboss.https.port:8443}"/>
<socket-binding name="txn-recovery-environment" port="4712"/>
<socket-binding name="txn-status-manager" port="4713"/>
<outbound-socket-binding name="mail-smtp">
<remote-destination host="localhost" port="25"/>
</outbound-socket-binding>
</socket-binding-group>
----
2016-04-29 20:12:12 +00:00
`socket-bindings` define socket connections that will be opened by the server. These bindings specify the
`interface` (bind address) they use as well as what port number they will open. The ones you will be most interested in are:
2016-04-28 20:34:44 +00:00
http::
2017-08-28 12:50:14 +00:00
Defines the port used for {project_name} HTTP connections
2016-04-28 20:34:44 +00:00
https::
2017-08-28 12:50:14 +00:00
Defines the port used for {project_name} HTTPS connections
2016-04-28 20:34:44 +00:00
ajp::
2016-04-29 20:12:12 +00:00
This socket binding defines the port used for the AJP protocol. This protocol is used by Apache HTTPD server
in conjunction `mod-cluster` when you are using Apache HTTPD as a load balancer.
2016-04-28 20:34:44 +00:00
management-http::
2017-08-28 12:50:14 +00:00
Defines the HTTP connection used by {appserver_name} CLI and web console.
2016-04-28 20:34:44 +00:00
2017-08-28 12:50:14 +00:00
When running in <<_domain-mode,domain mode>> setting the socket configurations
2016-04-29 20:12:12 +00:00
is a bit trickier as the example _domain.xml_ file has multiple `socket-binding-groups` defined. If you scroll down
to the `server-group` definitions you can see what `socket-binding-group` is used for each `server-group`.
2016-04-28 20:34:44 +00:00
.domain socket bindings
[source,xml]
----
<server-groups>
<server-group name="load-balancer-group" profile="load-balancer">
...
<socket-binding-group ref="load-balancer-sockets"/>
</server-group>
<server-group name="auth-server-group" profile="auth-server-clustered">
...
<socket-binding-group ref="ha-sockets"/>
</server-group>
</server-groups>
----
2017-08-28 12:50:14 +00:00
NOTE: There are many more options available when setting up `socket-binding-group` definitions. For more information, see link:{appserver_socket_link}[the socket binding group] in the _{appserver_socket_name}_.