Results 1 to 3 of 3

Thread: Obtain IP address of calling entity from Ice::Current

  1. #1
    halfhp is offline Registered User
    Name: Nick Fellows
    Organization: Aoptix
    Project: optical comms appliance
    Join Date
    Oct 2009
    Posts
    31

    Obtain IP address of calling entity from Ice::Current

    Hi there,

    I was wondering if there was a way to obtain the IP Address of a calling entity via the Ice::Current instance.

    I should also mention that I'm using version 3.3.1 so not all of the latest operations are available to me.

    Thanks!

    Nick

  2. #2
    halfhp is offline Registered User
    Name: Nick Fellows
    Organization: Aoptix
    Project: optical comms appliance
    Join Date
    Oct 2009
    Posts
    31
    Hmm...I see where somebody else asked this question and was told that they have to parse the Ip out of current.con.toString(). I also see where the latest FAQ recommends a different approach using methods that don't appear to be available in 3.3.1. I'm assuming for now that this means the string parsing solution is the only one available as of 3.3.1

  3. #3
    benoit's Avatar
    benoit is offline ZeroC Staff
    Name: Benoit Foucher
    Organization: ZeroC, Inc.
    Project: Ice
    Join Date
    Feb 2003
    Location
    Rennes, France
    Posts
    2,196
    Hi,

    Yes, this is correct, you can't directly get the IP address of the client with 3.3.1, you'll need to parse the result of calling toString on the connection.

    Cheers,
    Benoit.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. How to get client's IP address?
    By leojay in forum Help Center
    Replies: 1
    Last Post: 08-27-2009, 08:47 AM
  2. Replies: 1
    Last Post: 04-16-2009, 05:09 AM
  3. Change IP address during runtime
    By wgwolf in forum Help Center
    Replies: 1
    Last Post: 05-31-2006, 04:35 AM
  4. about restrict IP address in Ice
    By richardma in forum Help Center
    Replies: 2
    Last Post: 01-24-2006, 02:25 AM
  5. How to get client's IP address
    By zephyr007 in forum Help Center
    Replies: 4
    Last Post: 12-28-2004, 09:58 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •