 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Krzysztof Kozłowski Guest
|
Posted: Fri Aug 18, 2006 8:11 am Post subject: TIdTcpClient Host |
|
|
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
|
Posted: Fri Aug 18, 2006 8:11 am Post subject: Re: TIdTcpClient Host |
|
|
"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
|
Posted: Mon Aug 21, 2006 2:30 am Post subject: Re: TIdTcpClient Host |
|
|
| Quote: | I tried to set the TIdTcpClient.Host to '//DESKTOP'
|
You should use \\ instead. |
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Mon Aug 21, 2006 7:11 am Post subject: Re: TIdTcpClient Host |
|
|
"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 |
|
 |
|
|
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
|
|