pinging IP Address from a list?

  • Thread starter Thread starter Paul Lemelle
  • Start date Start date
P

Paul Lemelle

Hi,

I am trying to develop a program that reads teh IP Addresses from a
text file then send files to the specific addresses.

I have no problem gettting the IP addresses from the file, but how do
I convert the string into specific IP addresses?

Thanks,
Paul
 
Paul,

Look into the constructor, System.Net.IPAddress(byte[]). You'll need
to split your text by the dots and convert each octet from it's string
equivalent into a byte.

s}
 
If you have the IP like xxx.xxx.xxx.xxx you can use IpAddress.Parse method.

Regards,

Bela Istok
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top