Can anyone help me sort this thing out:
I have a url say
Case1:
http://wickedlysmart.com/servlets/serv.do
and another thing that request is coming from say 3303 port number and say the wickedlysmart IP address is: 192.1.2.3,
and in
Servlet spec we have these methods:
getRemoteAddr()
getRemoteHost()
getRemotePort()
getServerName()
getLocalPort()
getLocalAddr()
now, from the above said url what these methods will return?
Case2:
I dont have the site name but i am having an IP address say
http://192.1.2.4/servlets/serv.do
with request coming from port no. say 3306
and what will the port 8080 will signify here?
i Have requested for serv.do now what will they return?
I have gone through the spec and tried working with my localhost stuff but Iam still not clear about this thing.
Please help me in this regard.