🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Internet, sockets, ...

#5064
From: Remy Lebeau (TeamB)
Date: Sat, 30 Oct 2004 17:59
33 lines
2389 bytes
"Vladimir Stefanovic" <spam@not.needed> wrote in message
news:4183b04a@newsgroups.borland.com...

> Can you please explane me (in general) how the router
> (which is the node between LAN & Internet in my case)
> knows which server & port I'm addressing in LAN?

You need to use port forwarding for that.  It is a configuration inside the
router itself.  You tell the router to listen on a specific port.  When a
socket connection is made from the Internet onto that port of the router,
the router then makes a second socket connection to a specific IP address on
the network.  The two connections are then liked together and data
transferred between them.

> I feel that I now have less data specified at my client config
> to accomplish the connection with router and further with
> the service in LAN.

Correct.  You have to configure the router itself to tell it what to do.

> I only have IP & Port which should be entered in config
> to connect to server. I suppose that I must somehow
> supply IP&Port of server, but how can I address the
> router at the first place?

You do not specify the IP/port of the target server on the LAN.  You specify
the IP/port of the router itself.  It has to be publically accessible like
any other server would be.  The router then handles the rest of the
connection internally as needed.


Gambit
Technical Details
Message-ID: <4183d630$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <41813ba0@newsgroups.borland.com> <41814567@newsgroups.borland.com> <41814b95@newsgroups.borland.com> <4181554b$1@newsgroups.borland.com> <4183b04a@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,7239d7f9d7702b7d
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: <41813ba0@newsgroups.borland.com> <41814567@newsgroups.borland.com> <41814b95@newsgroups.borland.com> <4181554b$1@newsgroups.borland.com> <4183b04a@newsgroups.borland.com>
Subject: Re: Internet, sockets, ...
Date: Sat, 30 Oct 2004 10:59:05 -0700
Lines: 35
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: <4183d630$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1099159088 68.69.17.41 (30 Oct 2004 10:58:08 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail