tag:blogger.com,1999:blog-87926254414007961.post8621686422892700253..comments2023-06-04T14:14:20.296+03:00Comments on Coder Eye: Get real IP from request in JavaGuy Bashanhttp://www.blogger.com/profile/13987595961461293379noreply@blogger.comBlogger11125tag:blogger.com,1999:blog-87926254414007961.post-9174410306809242342013-10-28T17:57:22.336+02:002013-10-28T17:57:22.336+02:00Nice article!
Here are the headers that apache us...Nice article!<br /><br />Here are the headers that apache uses http://httpd.apache.org/docs/current/mod/mod_proxy.html#x-headersAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-87926254414007961.post-67151826344143356152013-08-16T17:25:27.777+03:002013-08-16T17:25:27.777+03:00Good Article, Thanks JosephGood Article, Thanks JosephAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-87926254414007961.post-87345486687041093002013-07-01T10:09:28.751+03:002013-07-01T10:09:28.751+03:00Great and articulate article.Great and articulate article.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-87926254414007961.post-70136341282482948922013-04-17T13:31:08.756+03:002013-04-17T13:31:08.756+03:00thanks a lot! just what i was looking forthanks a lot! just what i was looking forAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-87926254414007961.post-52386704806401740652013-03-28T11:19:54.176+02:002013-03-28T11:19:54.176+02:00Oops... pls ignore last comment, code is just fine...Oops... pls ignore last comment, code is just fineAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-87926254414007961.post-62143855151936276252013-03-27T15:25:21.811+02:002013-03-27T15:25:21.811+02:00actually the code will get infinte recursion of th...actually the code will get infinte recursion of the header (x-forwarded-for ) does not existAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-87926254414007961.post-8124782477368560262013-03-27T15:11:14.433+02:002013-03-27T15:11:14.433+02:00Thanks for the useful code. Exactly what I was aft...Thanks for the useful code. Exactly what I was after!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-87926254414007961.post-88315606938423600362012-11-08T12:47:07.741+02:002012-11-08T12:47:07.741+02:00Good article!!!Good article!!!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-87926254414007961.post-46869606535701949702011-03-11T14:47:28.983+02:002011-03-11T14:47:28.983+02:00"JavaProgrammer" I think you got a littl..."JavaProgrammer" I think you got a little bit confused. This method if for server side. When you are on the server side you get the HttpServletRequest from the server. "MessageBox.show" seems like a client side method (Swing maybe?). On the client side you have to get the ip of the machine using the InetAddress class.Guy Bashanhttps://www.blogger.com/profile/13987595961461293379noreply@blogger.comtag:blogger.com,1999:blog-87926254414007961.post-59505868707071820842011-03-11T04:39:09.642+02:002011-03-11T04:39:09.642+02:00How i call public static String getIpFromRequest(H...How i call public static String getIpFromRequest(HttpServletRequest request) ??<br /><br />example i want to show the ip to:<br />MessageBox.show("Ip address: "+getIpFromRequest(?));Java programmernoreply@blogger.comtag:blogger.com,1999:blog-87926254414007961.post-50771687787131286292011-02-17T12:19:44.483+02:002011-02-17T12:19:44.483+02:00Very good and helpful article!!!Very good and helpful article!!!Moriturhttps://www.blogger.com/profile/00016838885371095442noreply@blogger.com