title: Spring boot - how to get running port and ip address
body: <p>I am passing the port via shell script while starting the spring boot application. Would like to know how to get the running port and system ip address in the application to print in log file.</p>
  
  <p>script:
  -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=9890 </p>