BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Establish connection with a subnetwork computer/server

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Internet Socket)
View previous topic :: View next topic  
Author Message
qyte
Guest





PostPosted: Fri Apr 14, 2006 10:03 am    Post subject: Establish connection with a subnetwork computer/server Reply with quote



How can i find out out the exact IP address of my subnetwok computer?
The only IP which i can see is of the server computer. The problem i
have is that i cannot run an application on my subnetwork computer as a
server because i don't know its IP address.
Back to top
Hans Galema
Guest





PostPosted: Fri Apr 14, 2006 11:03 am    Post subject: Re: Establish connection with a subnetwork computer/server Reply with quote



qyte wrote:
Quote:
How can i find out out the exact IP address of my subnetwok computer?

Use ipconfig in a console window.

Quote:
The only IP which i can see is of the server computer.

From where do you see that ? Where is the servercomputer ? On the internet ?

Quote:
The problem i
have is that i cannot run an application on my subnetwork computer as a
server because i don't know its IP address.

This is all very unclear for me. You can let a serverapplication run on
any computer. The question then of course is if that servercomputer is
reachable for clientapplications on other computers.

Please tell more exact how your configuration is. Is your serverapplication
on a LAN computer and will clientapplications on the internet contact through
the IP of a router ?

Hans.
Back to top
qyte
Guest





PostPosted: Fri Apr 14, 2006 12:03 pm    Post subject: Re: Establish connection with a subnetwork computer/server Reply with quote



Hans Galema wrote:
Quote:
qyte wrote:
How can i find out out the exact IP address of my subnetwok computer?

Use ipconfig in a console window.

The only IP which i can see is of the server computer.

From where do you see that ? Where is the servercomputer ? On the
internet ?

The problem i have is that i cannot run an application on my
subnetwork computer as a server because i don't know its IP address.

This is all very unclear for me. You can let a serverapplication run on
any computer. The question then of course is if that servercomputer is
reachable for clientapplications on other computers.

Please tell more exact how your configuration is. Is your serverapplication
on a LAN computer and will clientapplications on the internet contact
through
the IP of a router ?


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 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. 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 seems that all
computers on the network have the same IP. How can i determine the ip
from within my server app given the fact that i know ONLY what the
network's IP is?
Back to top
Hans Galema
Guest





PostPosted: Fri Apr 14, 2006 12:03 pm    Post subject: Re: Establish connection with a subnetwork computer/server Reply with quote

qyte wrote:

Quote:
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 ?

Quote:
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.

Quote:
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.

Quote:
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.

Quote:
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.
Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Fri Apr 14, 2006 7:03 pm    Post subject: Re: Establish connection with a subnetwork computer/server Reply with quote

"qyte" <gyte (AT) vivodinet (DOT) gr> wrote in message
news:443f7e47$1 (AT) newsgroups (DOT) borland.com...

Quote:
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.

Quote:
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?

Quote:
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
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Internet Socket) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.