如何在GoDaddy域上设置我的网站的IP? [英] How do I set up IP of my website on my GoDaddy Domain?

查看:165
本文介绍了如何在GoDaddy域上设置我的网站的IP?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

美好的一天!



我是网络开发的新手,我在godaddy购买域名并在数字海洋中设置虚拟机作为我的主机... .digital ocean为我提供了一个类似于236.213.74.35:2000的IP地址......当我在浏览器的地址栏输入IP地址时,我的网站出现...



问题是godaddy没有接受带有A(主机)部分端口号的IP地址..我不能将我的域名指向我的IP地址......



我该怎么办?



请帮帮我..



谢谢!

Good day!

Im new in web development, I buy a domain in godaddy and set up a virtual machine in digital ocean as my hosting machine.... digital ocean provides me an IP address something like 236.213.74.35:2000... when I enter the IP address on the address bar of my browser my site appears...

The problem is godaddy didnt accept IP address with port number in A(Host) section.. I cant point my domain to my IP address...

What should I do?

Please help me..

Thank you!

推荐答案

会员9529406413写道:
Member 9529406413 wrote:



236.213.74.35:2000


236.213.74.35:2000



这是一个IPv4地址( 236.213.74.35 )和端口号( 2000 )。



A 记录将名称映射到IPv4地址。它没有没有与端口号有关。



A 记录设置为指向 236.213.74.35 - 只是IP地址,没有端口号。



如果你不能让Digital Ocean将您的站点移动到端口80,然后您的用户在加载站点时需要使用端口号。例如: http://www.yoursite.com:2000/


That's an IPv4 address (236.213.74.35) and port number (2000).

An A record maps a name to an IPv4 address. It has nothing to do with port numbers.

Set your A record to point to 236.213.74.35 - just the IP address, without the port number.

If you can't get Digital Ocean to move your site to port 80, then your users will need to use the port number when loading your site. For example: http://www.yoursite.com:2000/


这篇关于如何在GoDaddy域上设置我的网站的IP?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆