How to get application url in vaadin


I am hosting my site at http://localhost:8080/ct

I am not able to get the complete url . I tried using combinations of the below without success. Please help

            .getServletContext().getContextPath() + VaadinServletService 



one way to get it is to call Page.getCurrent().getLocation(), although it may not be correct if you have any proxies or load balancing etc. on top of your application server.