🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: detect router

#4199
From: Remy Lebeau (TeamB)
Date: Fri, 18 Mar 2005 17:56
30 lines
2591 bytes
"roger" <rogersmail@ntlworld.com> wrote in message
news:423b0576$1@newsgroups.borland.com...

> So what your saying then is when i tell the server to open on
> port say 10245 i dont have to specify ie: My Internet IP, or
> 0.0.0.0 or my Router assigned IP, as long as his remote client
> makes a call to http://myinternetIP:MyPort then the server will
> detect it..even if i am not using a router...and even if my internet
> ip is say 62.63.64.65 and the server opens on 0.0.0.0..

The remote client can only connect to the public IP address, whether that be
a router or the listening server directly.  It has no concept of routers,
nor does it need to.

The listening server can only listen on its local machine, regardless of
whether a router is being used.  It has no concept of routers, nor does it
need to.

If you do have a router involved, then you need to configure it properly.
There is no getting around that.  As long as the router is configured
properly, then all incoming data from the remote client will be directed to
the listening server, and the listening server will think that the remote
client is connecting to it directly.  You do not need to add extra code to
handle that.  Everything you do with direct client->server connections still
applies even when a router is involved.  A router is just a piece of
hardware that is completely transparent to software.


Gambit
Technical Details
Message-ID: <423b163d$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.nuthinbutnews.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> <423b0576$1@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> <423b0576$1@newsgroups.borland.com>
Subject: Re: detect router
Date: Fri, 18 Mar 2005 09:56:59 -0800
Lines: 32
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: <423b163d$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1111168573 68.69.17.41 (18 Mar 2005 09:56:13 -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.nuthinbutnews.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail