I am currently doing services is java that deploys to different machines, so what I need to to is to get the uri adddress up to the port number in the servlet who called it for example
http://localhost:8080/appname/appaddress
the only thing I need to get is the string from http to 8080 I can do this using javascript or java codes, thanks