title: Get Sub Domain Name from an url
body: <p>i want to read Url from web Browser (Vaadin 7)
  my Server support sub domain , Url format : subdomain.applicationName.com
  example : private.myapp.com  , public.myapp.com </p>
  
  <p>i use the method  Page.getCurrent().getLocation() to read Url from Web browser but the returned value is</p>
  
  <p><a href="http://32.186.55.179/myapp" rel="nofollow">http://32.186.55.179/myapp</a>  ==> i dont know why server return Ip adreess instead the domain Name</p>
  
  <p>i want a way to read the value of sub domain entered in the Url </p>
  
  <p>example : Url browser <a href="http://private.myapp.com" rel="nofollow">http://private.myapp.com</a>  => result =private.myapp</p>