BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

TIdTcpClient Host

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Winsock
View previous topic :: View next topic  
Author Message
Krzysztof Kozłowski
Guest





PostPosted: Fri Aug 18, 2006 8:11 am    Post subject: TIdTcpClient Host Reply with quote



Hi all,

I would like to use TIdTcpClient to establish a connection to a server,
which is in the local Windows network. I tried to set the
TIdTcpClient.Host to '//DESKTOP' (the name of the server computer in the
Windows network), but it seems it does not work (TIdTcpServer.Host is
also set to '//DESKTOP'). With the IP given instead of network name
everything works well. Still, I'd prefer using the network names instead
of IPs. Is there any way to enable TIdTcpClient to work with those?

Regards,

Krzysztof Kozlowski
Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Fri Aug 18, 2006 8:11 am    Post subject: Re: TIdTcpClient Host Reply with quote



"Krzysztof Kozłowski" <kozlorf (AT) poczta (DOT) onet.pl> wrote in message
news:44e54ccc (AT) newsgroups (DOT) borland.com...

Quote:
I tried to set the TIdTcpClient.Host to '//DESKTOP'

You cannot do that. The Host must be a DNS name, not a UNC name. If the
machine name is 'Desktop', and if you can ping 'Desktop' on the command
line, then just remove the slashes. Othersise, you have to specify the
actual DNS name that the machine is know as by TCP.


Gambit
Back to top
Jamie Dale
Guest





PostPosted: Mon Aug 21, 2006 2:30 am    Post subject: Re: TIdTcpClient Host Reply with quote



Quote:
I tried to set the TIdTcpClient.Host to '//DESKTOP'

You should use \\ instead.
Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Mon Aug 21, 2006 7:11 am    Post subject: Re: TIdTcpClient Host Reply with quote

"Jamie Dale" <j.dale (AT) turboz (DOT) net> wrote in message
news:44e8d45e (AT) newsgroups (DOT) borland.com...

Quote:
You should use \\ instead.

That is not valid for TCP, either. That is a UNC convention. UNCs do not
apply to TCP. Do not use slashes at all when working with TCP.


Gambit
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Winsock All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.