🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: A TCP Server listening to a "real world" address

#1435
From: Remy Lebeau (TeamB)
Date: Tue, 16 Jan 2007 18:05
32 lines
2162 bytes
"Ron Sawyer" <XXXRSAWYER8128XQQXX@aol.com> wrote in message
news:45acd81e$1@newsgroups.borland.com...

> The server works fine if the client is on the same network.  But if
I
> try to go over the internet the server and the client do not
connect.

Then the client is likely trying to connect to the server using the
wrong IP/Port.  Is the server running on the machine that is
physically connected to the Internet modem?  Or is the server running
on a machine that is getting its Internet connection through a
router/proxy?  What does your TIdTCPServer setup look like?  How are
you configuring its Bindings collection exactly?

> The address I use is obtained via the ipconfig command.

Indy has its own global GStack.LocalAddresses list that contains the
available IP adresses of the machine.  If the server machine is
physicaly connected to the modem, then are you specifying the modem's
public IP as the listening IP on the server?

> However, the client cannot contact the server from that same
machine.

Yes, it can.  Especially if it is on the same machine.  If it is not
connecting, then either the server is not actually listening in the
first place, or the client is connecting to the wrong IP/Port.


Gambit
Technical Details
Message-ID: <45ad13c8$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.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: <45acd81e$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,243788a951e89736
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: <45acd81e$1@newsgroups.borland.com>
Subject: Re: A TCP Server listening to a "real world" address
Date: Tue, 16 Jan 2007 10:05:21 -0800
Lines: 34
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: 75.83.34.171
Message-ID: <45ad13c8$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1168970696 75.83.34.171 (16 Jan 2007 10:04:56 -0800)
Path: arc1-ca.pugleaf.net!g2news2.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