I dont think theres a simple way, youd need to get the whole URL, look
between the second / and the 3rd /, then split the string around the
" : "

IP = UrlString.split(":")[0];
Port = UrlString.split(":")[1];


On Sep 8, 11:55 am, Vikas <vikas.m.ya...@gmail.com> wrote:
> For RPC communication, I need server IP address and port which is
> specified in URL.
> e.g. In 'http://10.4.6.131:8181/webClient.html'url 10.4.6.131 IP
> address and 8181 port.
>
> How to get this IP and port in GWT?
>
> Thanks in advance,
> Vikas
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to