Article View: borland.public.cppbuilder.internet.socket
Article #4252Re: Bindings
From: Remy Lebeau (TeamB)
Date: Wed, 09 Mar 2005 17:55
Date: Wed, 09 Mar 2005 17:55
26 lines
1736 bytes
1736 bytes
"Tumurbaatar S." <nospam_tumur@magicnet.mn> wrote in message news:422efeba@newsgroups.borland.com... > But when I specify adapter ip and port in Bindings: > > TIdSocketHandle* socket = UDPServer->Bindings->Add(); > socket->IP = "127.0.0.1"; > socket->Port = xxx; > > then packets are not arrive. Correct, because you told the server to listen on an IP that no other machne can get to. "127.0.0.1" is the local loopback address. Any socket that sends data to that IP will send the data to the same machine that is sending the data. If your clients are not on the same machine as your server, then they cannot use "127.0.0.1" as the target IP to send data to. The data will never reach the server. > But if I replace "127.0.0.1" with an actual ip (of my adapter) > then it works again. Correct, because that IP is reachable from other machines. Gambit
Technical Details
Message-ID:
<422f3a9b$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!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: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.internet.socket References: <422efeba@newsgroups.borland.com> Subject: Re: Bindings Date: Wed, 9 Mar 2005 09:55:05 -0800 Lines: 28 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 68.69.17.41 Message-ID: <422f3a9b$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1110391451 68.69.17.41 (9 Mar 2005 10:04:11 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail