🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.web
Article #968

Re: Messenger Application

#968
From: Remy Lebeau (TeamB)
Date: Thu, 02 Mar 2006 18:02
24 lines
1897 bytes
"Hamid" <hrz_mir@Yahoo.com> wrote in message
news:44073079$1@newsgroups.borland.com...

> How can I retrieve the complete IP of a client (the valid
> IP and what that is behind a proxy server).

There is no way to automatically determine the IP that is behind the proxy.
The client will have to send it manually in a data packet after it connects.
You can then compare it to the IP that the socket reports.  If they match,
then no proxy is being used.

> I would like to know how I can develop a client/server application
> like messengers. It requires that the server have the complete address
> of its client in order to send its messages to the server which is to be
> listening in the client side.

The socket will report the public IP that it sees itself attached to.  That
is the IP that you always send data to.  The IP behind the proxy is not
directly accessible, nor should you be trying to send data to it directly
anyway when a proxy is present.  Always send to the proxy's IP.


Gambit
Technical Details
Message-ID: <440732dc$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <44073079$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: feeec,85a0193ddf7aaaf0
X-Google-Attributes: gidfeeec,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.internet.web
References: <44073079$1@newsgroups.borland.com>
Subject: Re: Messenger Application
Date: Thu, 2 Mar 2006 10:02:01 -0800
Lines: 26
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 68.69.17.41
Message-ID: <440732dc$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1141322460 68.69.17.41 (2 Mar 2006 10:01:00 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail