2

If I try to resolve a website's IP with a url that includes http:// (at the beginning of the url) or / (at the end of the url), it won't work. How can I parse any url given by the user to a url that works with Dns.GetHostEntry method?

H H
  • 263,252
  • 30
  • 330
  • 514
Omer Aviv
  • 286
  • 3
  • 20
  • Since `GetHostEntry` requires host, this search https://www.bing.com/search?q=c%23+get+host+out+of+url could help you find more answers if duplicate I pick is not enough. If you feel that duplicate does not cover whole problem - make sure to update question with such information so it can be re-opened. – Alexei Levenkov May 04 '15 at 20:03

0 Answers0