Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] How to Jetty server listen on multiple IP addresses


The default config files using those properties only install a single connector using the configuration XML. These XML files use the mentioned "" properties as dynamic settings to setup the IP address of a single connector. To listen on multiple IP addresses, the Jetty server must install multiple connectors (one for each IP address). This can only be done by using your own XML configuration file just editing the properties files is not posisble for those complex setups. Search for "" in all XML files and start from there (duplicating connectors and so on).


Am 11.05.2023 um 12:19 schrieb ihonda--- via jetty-users:


This is about Jetty's SSL server bind port. 

By default, SSL server listen at all ip address on the host.


Our host have multiple network devices, each device has different ip address.

Security team want we do not want jetty to listen on unnecessary network device(ip address).

Here is ssl.ini file. If I set hostname or ip address, Jetty listen on 

that specific address.


# ---------------------------------------

# Module: ssl

# Enables a TLS(SSL) Connector on the server.

# This may be used for HTTPS and/or HTTP2 by enabling

# the associated support modules.

# ---------------------------------------


### TLS(SSL) Connector Configuration

## Connector host/address to bind to`hostname`

Requirement is we want this configuration flexible. For example, we want to

listen on multiple addresses on the interface.

This kind of setting is not valid."host_a,host_b,localhost"

How can I enable listen(bind) on multiple host address ? 


 Specify multiple network device to listen on

 Specify range of ip address to listen on

 Specify hostname+localhost to listen on


Iori Honda

jetty-users mailing list
To unsubscribe from this list, visit
Uwe Schindler
ASF Member, Member of PMC and Committer of Apache Lucene and Apache Solr
Bremen, Germany

Back to the top