In my JSP file i am trying to use getRemoteHost() method to retrieve the computer name. It works in all the systems. but in one machine instead of displaying that computer name it is displaying the IP address of that computer. I dont know why it is displaying like that. do i need to change any settings in that particular machine ?

Scott McCrory

Nope, it's because that PC doesn't have a reverse lookup record in DNS to match the IP address with it's owning name. Nothing more you do here mate except to register that PC with DNS and make sure the hostmaster adds an "in.arpa.addr" entry for it as well. Note that if this is a Windows box on a local network, then you'll also want to confirm that your WINS resolution (and that PC's registration) is taking place properly.

0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact