Answer the question
In order to leave comments, you need to log in
How to point a domain to a local server?
Good.
I have a server on my laptop , it is available
at
: (open server
)
109.106.138.19
Answer the question
In order to leave comments, you need to log in
1 . Open ports 80 and 443 on your windows Check it easily from another computer using IP, if the site is working, then this part is done.
2 . As I understand it, you have a router that distributes the Internet via NAT, that is, your external IP is now occupied by a router, in fact, like ports 80 and 443, respectively.
so you need to do port forwarding.
THAT is, go to the router and configure the following rules in it to
open TCP ports 80 and 443 and redirect them to your internal ip of the computer on which the open server is installed. For example, it should be like this
80 -> 80 -> 192.168.1.4 TCP
, that is, open external 80 forward 80 for this car. here depending on your router,but outwardly it should be something like this.
3. You need to find out what IP you have now, do
not forget that most likely it is dynamic and it will change when you reconnect to the Internet.
But go to it from a browser on your phone, if everything is ok, then your site should be there.
4. We buy an IP, it's about 100 rubles, depending on the provider, order this service from him.
5. Where you bought a domain, there should be a DNS zone editor in which you can add and subtract fields.
Option 1 you only have NS servers there, of course, you need the domain itself, I would say in more detail.
Most registrars have their own DNS server where you can refer to these NS servers and there is a full-fledged DNS zone editor. (there are free ones, the registrars themselves also have free ones, but there may be paid ones, for example, nickname ru)
Accordingly, you delegate the domain to this DNS server where there is a corresponding DNS record for your domain
This DNS record intrigues you A record there against the name of your domain (or @) instead of it, your external ip should be.
This is how you match your domain name with your IP.
A number of conditions must be taken into account. It makes no sense to write and expand the answer unambiguously. Everything is already written. You just need to read the documentation a little .
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question