🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Establish connection with a subnetwork computer/server

#2462
From: Remy Lebeau (TeamB)
Date: Fri, 14 Apr 2006 17:54
33 lines
2505 bytes
"qyte" <gyte@vivodinet.gr> wrote in message
news:443f7e47$1@newsgroups.borland.com...

> Let's say that i built a server app and i run it on a computer that runs
> inside a network but is NOT the server computer. What is the ip i need
> to use in order to run a client app from outside that network so that i
> can connect to that single computer.

The client can only connect to computers that are directly accessible to the
outside world.  It cannot connect to your networked computer directly at all
(for the obvious reason that the computer is simply not reachable from the
outside).  The client needs to know the IP of a computer that is publically
accessible.  The only reliable way to get such an IP is to query an external
source, such as http://checkip.dyndns.org or similar web site, to see what
IP it reports.  You then need some kind of hardware router or software proxy
running at that IP address to forward all relavant inbound data to the
computer that is running your application.

> When i test my ip from inside the network computer it gives me the one
> the server of the network has on the internet

How exactly are you retreiving that IP?

> it seems that all computers on the network have the same IP.

If they all share the same internet connection, then yes, the public IP will
be shared amongst them.  As such, routing of data would have to be
controlled by the port numbers that are involved.  All hardware routers have
Port Forwarding capabilities.


Gambit
Technical Details
Message-ID: <443fe1f2$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: <443f6520$1@newsgroups.borland.com> <443f6e95$1@newsgroups.borland.com> <443f7e47$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,571973ab05567242
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: <443f6520$1@newsgroups.borland.com> <443f6e95$1@newsgroups.borland.com> <443f7e47$1@newsgroups.borland.com>
Subject: Re: Establish connection with a subnetwork computer/server
Date: Fri, 14 Apr 2006 10:54:48 -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: <443fe1f2$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1145037298 68.69.17.41 (14 Apr 2006 10:54:58 -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