🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: How to make a Application connect to mi Socket!!!

#3499
From: Hans Galema
Date: Wed, 07 Sep 2005 11:59
29 lines
2049 bytes
Byanex wrote:

> ... i have an application that will 
> try to conect to 200.214.25.125 at port 5454, questios is how 
> to force this socket to conect to mine in local machine 
> listener socket at 127.0.0.1 port 5454, them on another side my 
> another socker will connect to real 200.214.25.125 at port 5454.
> 
> I another words, i need to do a proxi for only one 
> application !!!

You do not need a proxy. Is the 127.0.0.1 machine behind a router ?
And the router connected to the internet? Then find out
the internetIP of the router. You can find out that with
a browser on the 127.0.0.1 machine by clicking one of these links:
http://whatismyip.com
http://checkip.dyndns.org
http://www.betteripaddress.com.

You should also find out the -dynamic- IP that the router gave to
the 127.0.0.1 machine. For instance: 192.168.2.3

Then your router has to be configured in such a way that incoming
requests for port 5454 are forwarded to 192.168.2.3 port 5454.

The client on 200.214.25.125 shall connect with the internet IP
of the router and port 5454.

Hans.
Technical Details
Message-ID: <431ed60e$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!newshub.sdsu.edu!peer01.west.cox.net!cox.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <431df261$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,70c3218b3e8baed1
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Wed, 07 Sep 2005 13:59:54 +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: How to make a Application connect to mi Socket!!!
References: <431df261$1@newsgroups.borland.com>
In-Reply-To: <431df261$1@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 145.98.201.248
Message-ID: <431ed60e$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1126094350 145.98.201.248 (7 Sep 2005 04:59:10 -0700)
Lines: 29
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!newshub.sdsu.edu!peer01.west.cox.net!cox.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail