Article View: borland.public.cppbuilder.internet.socket
Article #2461Re: Establish connection with a subnetwork computer/server
From: Hans Galema
Date: Fri, 14 Apr 2006 11:18
Date: Fri, 14 Apr 2006 11:18
41 lines
2601 bytes
2601 bytes
qyte wrote: > Maybe i was a little bit unclear. 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 do you mean with 'the server computer'? The gateway computer ? The computer that is directly connected to the internet ? How is the connection with the internet done ? > 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. Where is that client to begin with ? On the internet ? Such a client has to use your internet-IP. That can be the internet IP of your router or the internet IP of the computer that is directly connected to the internet. > When i test my ip from inside the network computer it gives me > the one the server of the network has on the internet, It would have helped if you had also told how you tested that. > it seems that all > computers on the network have the same IP. No. They have all the same internet-IP. They all have different LAN-IP's. > How can i determine the ip > from within my server app given the fact that i know ONLY what the > network's IP is? Your serverapp can do nothing else but listen. You have to configure your router (or the computer that is directly configured to the internet) in such a way that it forwards requests on your serverapplication's listening port to the IP of the computer where your serverapplication is running on. That is called: portforwarding of NAT (network address translation). Hans.
Technical Details
Message-ID:
<443f85fd$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news4.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<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 Date: Fri, 14 Apr 2006 13:18:37 +0200 From: Hans Galema <notused@notused.nl> User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.internet.socket Subject: Re: Establish connection with a subnetwork computer/server References: <443f6520$1@newsgroups.borland.com> <443f6e95$1@newsgroups.borland.com> <443f7e47$1@newsgroups.borland.com> In-Reply-To: <443f7e47$1@newsgroups.borland.com> Content-Type: text/plain; charset=ISO-8859-7; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 145.98.201.248 Message-ID: <443f85fd$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1145013757 145.98.201.248 (14 Apr 2006 04:22:37 -0700) Lines: 41 Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news4.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail