pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alexis Paul Bertolini <bertolini@computer.org>
To: pgsql-sql@postgresql.org
Subject: Obtaining client IP address
Date: Sat, 25 Feb 2006 00:16:31 +0100
Message-ID: <43FF93CF.5070808@computer.org> (raw)

Hi,

I need to have a db table containing all connected clients (of a 
distributed application) and among other info, their IP.

If both the client and the server are on the same LAN, no problem, the 
client can supply it's own info. But if they are connected via some sort 
of bridge/router/NAT? For instance, a client on a LAN connects to a 
server over the Internet?

The client has no idea what public IP it has. The server ought to 
know... however I haven't found how I could get this info into my query.

What I need is some sort of procedure whereby the client enrolls onto 
the system and supplies the info...

I hope I made my self clear. If not I can try and be more specific!

Alex.



view thread (3+ messages)  latest in thread

Message-ID: <43FF93CF.5070808@computer.org>
Permalink:  ../43FF93CF.5070808@computer.org/
Also on:    postgresql.org/message-id/43FF93CF.5070808@computer.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: bertolini@computer.org
  Subject: Re: Obtaining client IP address
  In-Reply-To: <43FF93CF.5070808@computer.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox