How to get application url in vaadin

Hello,

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
vaadinServlet.getCurrent()

            .getServletContext().getContextPath() + VaadinServletService 

            .getCurrentServletRequest().getRequestURI();

Hi,

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.