Answer the question
In order to leave comments, you need to log in
Is it possible to make a request to the site by ip through C#?
Hello everyone!
Tell me who knows if it is possible to make a request to the site not by domain, but by ip?
Answer the question
In order to leave comments, you need to log in
Yes, you can. Almost everywhere where you can write a domain name - you can write ip.
But there are nuances
1. In the comments you write that you are trying to send a request to the ip where the requested resource was located 4 years ago - most likely it is no longer there.
2. HTTP has a Host header and the server can simply discard those requests that refer to ip instead of the domain (this is necessary for cases when there are several sites on the same ip)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question