Article View: borland.public.cppbuilder.internet.socket
Article #4250Re: Bindings
From: Bob Gonder
Date: Wed, 09 Mar 2005 15:28
Date: Wed, 09 Mar 2005 15:28
17 lines
1631 bytes
1631 bytes
Tumurbaatar S. wrote: >But if I replace "127.0.0.1" with an actual ip (of my adapter) then >it works again. > >This is normal? Yes. Check the returned error code. It should tell you that you are trying to bind to a non-existant IP. bind() tells Sockets which IPAddress you want to talk to. If you bind to INADDR_ANY, then anybody on your network can send to your socket. OTOH, if you bind to your IP, then only programs on your machine can send to your socket. IOW, you can only talk to the person you are bound to.
Technical Details
Message-ID:
<k05u215r6u5qkh8r8qrqd49hqqi389eeqe@4ax.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!feeder2.on.meganewsservers.com!meganewsservers.com!textfeed1.on.meganewsservers.com!38.119.100.83.MISMATCH!news-out.nntp.be!propagator2-sterling.newsfeeds.com!news-in.nuthinbutnews.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<422efeba@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,ca6ae8bde15c8ce6 X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit From: Bob Gonder <notbg@notmindspring.invalid> Newsgroups: borland.public.cppbuilder.internet.socket Subject: Re: Bindings Date: Wed, 09 Mar 2005 07:28:48 -0800 Organization: MindSpring Enterprises, Inc. Reply-To: notbg@notmindspring.invalid Message-ID: <k05u215r6u5qkh8r8qrqd49hqqi389eeqe@4ax.com> References: <422efeba@newsgroups.borland.com> X-Newsreader: Forte Agent 1.93/32.576 English (American) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 67.77.144.63 X-Trace: newsgroups.borland.com 1110382126 67.77.144.63 (9 Mar 2005 07:28:46 -0800) Lines: 19 Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!feeder2.on.meganewsservers.com!meganewsservers.com!textfeed1.on.meganewsservers.com!38.119.100.83.MISMATCH!news-out.nntp.be!propagator2-sterling.newsfeeds.com!news-in.nuthinbutnews.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail