Yes, there is how to modify through files. Go to the Glassfish folder and go to the following subfolders:
PASTAGLASSFISH/glassfish/domains/domain1/config
Within this config folder there is a file named domain.xml
. Edit the following part in it:
<network-listener protocol="http-listener-1" port="8080" name="http-listener-1" thread-pool="http-thread-pool" transport="tcp"></network-listener>
Put in port="SUAPORTA" the port you want, such as 9999:
<network-listener protocol="http-listener-1" port="9999" name="http-listener-1" thread-pool="http-thread-pool" transport="tcp"></network-listener>
Now just start Glassfish as usual.