Results 1 to 3 of 3

Thread: How to get client's ip address when I use Glacier?

  1. #1
    ewiniar is offline Registered User
    Name: ewiniar
    Organization: soho
    Project: ssl vpn
    Join Date
    Jan 2006
    Posts
    30

    How to get client's ip address when I use Glacier?

    Hi,
    Could u show me how to get client's ip address when I use Glacier,I used Ice::Current to get the connection's peer address info,like this
    c.con->toString();
    c is a Current&,but it show
    local address = 127.0.0.1:2384
    remote address = 127.0.0.1:3161
    I know it's right,because I use Glacier,but I want to get real client's ip address,how to get it?
    Thanks!

    Regards
    ------------------


    ewiniar Lee
    Software Engineer
    Company:THP Ltd.Co
    Project:Communication lib project

  2. #2
    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,

    Where do you want to get this address? It's not possible to access the information of the connection between Glacier2 and the client from a backend server (such as the permission verifier or session manager for example).

    With Ice 3.1, the Ice context used by the client to create the session (with Router::createSession) will be passed to the permission verifier and the session manager create method so you'll be able to set the IP address for example in a context in the client and access it from the implementation of the permission verifier or session manager create method. See also the discussion here.

    Cheers,
    Benoit.

  3. #3
    ewiniar is offline Registered User
    Name: ewiniar
    Organization: soho
    Project: ssl vpn
    Join Date
    Jan 2006
    Posts
    30

    Thanks

    Thanks benoit,I want to get real client's ip address from all backend icebox server ,as u said,there will be a solution on this issue,it's great!

    Thanks again!


    Regards
    ------------------


    ewiniar Lee
    Software Engineer
    Company:THP Ltd.Co
    Project:Communication lib project

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. Multi IP address slow client connections.
    By Ian James in forum Help Center
    Replies: 1
    Last Post: 11-21-2007, 08:24 AM
  3. Change IP address during runtime
    By wgwolf in forum Help Center
    Replies: 1
    Last Post: 05-31-2006, 04:35 AM
  4. How to get client's IP address
    By zephyr007 in forum Help Center
    Replies: 4
    Last Post: 12-28-2004, 09:58 AM
  5. Client local ip address bind
    By mario in forum Help Center
    Replies: 6
    Last Post: 12-14-2004, 10:48 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
  •