🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.internet.socket
3 messages
3 total messages Started by Kay Wed, 14 Jul 2004 16:00
Accessing a TServerSocket based server application behind a router...
#5577
Author: Kay
Date: Wed, 14 Jul 2004 16:00
6 lines
1168 bytes
I use TClientSocket and TServerSocket components on my BCB applications to
build a simple client/server systems.
It works fine and Client and server talks to each other on my small LAN
behind my router. Computers attached to the router has 192.168.2.* adr. My
router is attached to a cable modem. How can I access my server application
from internet ?
Re: Accessing a TServerSocket based server application behind a router...
#5578
Author: Hans Galema
Date: Wed, 14 Jul 2004 16:32
15 lines
1762 bytes
Kay wrote:
> I use TClientSocket and TServerSocket components on my BCB applications to
> build a simple client/server systems.
> It works fine and Client and server talks to each other on my small LAN
> behind my router. Computers attached to the router has 192.168.2.* adr. My
> router is attached to a cable modem. How can I access my server application
> from internet ?

Your router has an internet ipaddress. The client on the internet should use
the internet ipaddress of the router and the port your server is listening
on. Then you should configure your router in such a way that it forwards that 
specific port. It should translate/forward messages for internetip:port
to localip:port. This is also called NAT Netword Address Transslation.

Hans.
Re: Accessing a TServerSocket based server application behind a router...
#5579
Author: Remy Lebeau (TeamB)
Date: Wed, 14 Jul 2004 16:59
12 lines
1400 bytes
<Kay> wrote in message news:40f558a5$1@newsgroups.borland.com...

> How can I access my server application from internet ?

A client needs to connect to the router's public IP address (the IP used by
the cable modem), and then the router has to be configured to perform port
forwarding so that all traffic arriving on a given port(s) on the router are
forwarded to the appropriate machine on the LAN.


Gambit
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads