Login  
Search All Forums
Dart Home | PowerTCP Sockets for .NET | Custom Development Reply | PowerTCP Sockets for .NET (Secure and Standard) Topics | Forums   
AuthorForum: PowerTCP Sockets for .NET (Secure and Standard)
Topic: Ping component: "Send" method: error passing "hostname" instead of "ip address"
allueraq

From: Barcelona, Spain
Posts: 8
Member Since: 07/10/07
posted March 16, 2010 7:55 AM

Hello,

I have a problem during use "Send" method. I have got an error when I pass the value of "hostname" instead of "ip address" for the parameter "localhost". For example:

oPing.Send("192.168.1.20", 255, 1, "HostName", paquetPing)

This sentence throw an error, but if I pass an ip address instead of "HostName", it works fine.

I hope someone can help me with this.

Regards,

Raquel
Jason Farrar (Admin)

From: Oneida, NY USA
Posts: 223
Member Since: 07/24/07

Extra Support Options
Custom Application Development

posted March 17, 2010 10:11 AM

Hi Raquel,

 Unfortunately the documentation for this overload incorrectly states that the LocalHost parameter can be either a host name or an ip address, however it can only be an IP address. The RemoteHost parameter can be either the host name or IP address.

-Jason
Reply | PowerTCP Sockets for .NET (Secure and Standard) Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX