class ServerConfig implements ApplicationListener<WebServerInitializedEvent> {
	
	private String applicationHost = null;
	
	@Override
	public void onApplicationEvent(final WebServerInitializedEvent event) {
	    int port = event.getWebServer().getPort();
	    final String host = getHost();
	    setApplicationHost(String.join(":", host, String.valueOf(port)));

	}
	
    private String getHost() {<FILL_FUNCTION_BODY>}

	public String getApplicationHost() {
		return applicationHost;
	}

	public void setApplicationHost(String applicationHost) {
		this.applicationHost = applicationHost;
	}

}

        try {
            return InetAddress.getLocalHost().getHostAddress();
        } catch (UnknownHostException e) {
            e.printStackTrace();
            return "127.0.0.1";
        }
    
<no_super_class>