🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Restricting Local IP in TServerSocket

#5559
From: Cagatay Undeger
Date: Thu, 05 Aug 2004 20:58
15 lines
1307 bytes
Hello,

I would like to select only one of the local addresses for listening on a
port
when more than one ethernet card and ip exist on a single machine.
Is it possible to do that using TServerSocket?

For example: when there is 2 athernet cards that have 2 IPs: 10.0.0.5 and
10.0.0.6.
if a TServerSocket is activated on a single port, clients can connect from
both 10.0.0.5 and 10.0.0.6,
but I would like to select just one of the IPs.

Thanks in advance,
Cagatay
Technical Details
Message-ID: <41129f35$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,275bb228249b0ef9,start
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Cagatay Undeger" <cagatay@interaktif.gen.tr>
Newsgroups: borland.public.cppbuilder.internet.socket
Subject: Restricting Local IP in TServerSocket
Date: Thu, 5 Aug 2004 23:58:07 +0300
Lines: 17
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
NNTP-Posting-Host: 195.174.150.26
Message-ID: <41129f35$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1091739445 195.174.150.26 (5 Aug 2004 13:57:25 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail