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