Results 1 to 4 of 4
Thread: Client IP Address
- 12-27-2007, 12:09 PM #1
Member
- Join Date
- Nov 2007
- Posts
- 4
- Rep Power
- 0
- 01-12-2008, 08:31 AM #2
Have a look at these tutorials and see if you come up with something. Do post your solution, if get one - or post some almost-solutions if you get stuck.
Vote for the new slogan to our beloved Java Forums! (closes on September 4, 2008)
Want to voice your opinion on your IDE/Editor of choice? Vote now!
Got a little Capt'n in you? (drink responsibly)
- 01-12-2008, 11:08 AM #3
Member
- Join Date
- Nov 2007
- Posts
- 4
- Rep Power
- 0
Thanks! I have by now swiched from Glassfish to Tomcat, because Apache's Axis2 produces a slightly prettier WSDL file. Also, I found a solution for my client IP problem that's Apache-based:
MessageContext messageContext = new MessageContext();
ip = (String)messageContext.getProperty(MessageContext. REMOTE_ADDR);
I haven't really tested it, though - don't know if it works reliably.
For anyone finding this post while researching Axis2: I found it to be a little flaky. I worked with the current release and nightly build, couldn't get objects to be returned, nor arrays beyond a single dimension. So it's useful for simple stuff..
- 09-23-2009, 10:27 AM #4
Member
- Join Date
- Sep 2009
- Posts
- 1
- Rep Power
- 0
Similar Threads
-
How to get IP Address of the client
By Java Tip in forum java.netReplies: 0Last Post: 04-05-2008, 10:14 AM -
JSP – getting IP address
By Java Tip in forum Java TipReplies: 0Last Post: 01-29-2008, 09:05 AM -
Identify Client in Socket Client Server Application
By masadjie in forum NetworkingReplies: 1Last Post: 12-20-2007, 09:18 AM -
Getting host name/address
By Java Tip in forum Java TipReplies: 0Last Post: 11-19-2007, 04:34 PM -
I am not able to print Address
By Albert in forum New To JavaReplies: 1Last Post: 07-13-2007, 03:37 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks