title: How to get the Vaadin 7 application server IP and port?
body: <p>How can I get the protocol, IP and port of the app server running my Vaadin webapp? I'm using Vaadin 7.</p>
  
  <p>In vaadin 6 I doing in this way, but not work in vaadin 7:</p>
  
  <pre><code>String server = ((WebApplicationContext) this.getContext()).getHttpSession().getServletContext().getServerInfo();
  
  java.net.URL url = this.getURL();
  String s = url.getHost()+":"+url.getPort()+url.getPath();
  </code></pre>