• Post Reply Bookmark Topic Watch Topic
  • New Topic

Client-Server Communication  RSS feed

 
nikitha kakani
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi ,can any one help me,please I am using MVC1 architecture & my project is in server (tomcat ---webapps) whatever db transaction i give url like http://serverlocalhost:8080/KK/L.jsp and that's 5n but now i need to get client ipaddress & ports opened whoever sends request to http://serverlocalhost:8080/KK/.... is this possible? but when i wrote prog & sent request i am getting server ipaddress... How to solve this problem uisng servlets
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The client IP addres is available through ServletRequest.getRemoteAddr(); the client port is not available (and doesn't matter).
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!