C
C
CityzenUNDEAD2020-10-27 11:32:01
Parsing
CityzenUNDEAD, 2020-10-27 11:32:01

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

2 answer(s)
I
itgood, 2020-10-27
@itgood

Yes, do you know what dns is?
just write ip instead of domain

V
Vasily Bannikov, 2020-10-27
@vabka

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 question

Ask a Question

731 491 924 answers to any question