🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #4202

Re: detect router

#4202
From: Remy Lebeau (TeamB)
Date: Fri, 18 Mar 2005 18:25
25 lines
2211 bytes
"roger" <rogersmail@ntlworld.com> wrote in message
news:423b0983@newsgroups.borland.com...

> Why do i need my Internet IP so importantly...

You don't.  You are making the situation more complicated for yourself then
it needs to be.

> because when i remote client contacts me after there search of
> my website my pc app returns a generated html document with
> links back to me, so Mr routers assigned IP (192.168.x.x) or my
> servers auto assigned address 0.0.0.0 wouldn't be much use to a
> hyperlink pointing say http://0.0.0.0:10245/cmd?action=&talk.

If your server is running a webserver, and the remote client connects to a
URL associated with that webserver, than all of your links should be
formatted as relative links, not absolute links.  That way, the links
themselves don't need to include the address at all.  It is the remote
client's responsibility to keep track of which URL it requested, which will
be the address connected to the router's public IP, and then all links you
generate will be relative to that URL.


Gambit
Technical Details
Message-ID: <423b1ceb$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newsprint.newsread.com!newsread.com!news-xfer.newsread.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <423a7852$1@newsgroups.borland.com> <423a95b5$1@newsgroups.borland.com> <423aa0ca$1@newsgroups.borland.com> <423ab09b@newsgroups.borland.com> <423ac0ff@newsgroups.borland.com> <423ada46$1@newsgroups.borland.com> <423b0983@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,a79eaa4c33b47254
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <423a7852$1@newsgroups.borland.com> <423a95b5$1@newsgroups.borland.com> <423aa0ca$1@newsgroups.borland.com> <423ab09b@newsgroups.borland.com> <423ac0ff@newsgroups.borland.com> <423ada46$1@newsgroups.borland.com> <423b0983@newsgroups.borland.com>
Subject: Re: detect router
Date: Fri, 18 Mar 2005 10:25:31 -0800
Lines: 27
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: <423b1ceb$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1111170283 68.69.17.41 (18 Mar 2005 10:24:43 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newsprint.newsread.com!newsread.com!news-xfer.newsread.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail