Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

The current domain name's resolved IP does not match the public IP used of the server #62

Closed
4 tasks done
Stevemoretz opened this issue Dec 14, 2022 · 6 comments
Closed
4 tasks done
Assignees
Labels
bug Something isn't working

Comments

@Stevemoretz
Copy link

Stevemoretz commented Dec 14, 2022

Welcome

  • Yes, I'm using the latest major release. Only such installations are supported.
  • Yes, I'm using the supported system. Only such systems are supported.
  • Yes, I've searched similar issues on GitHub and didn't find any.
  • Yes, I've included all information below (version, config, log, etc).

Description of the problem,screencshot would be good

When I try:

x-ui
16 -> for acme
1 -> to install acme

x-ui
16 -> for acme
3 -> Certificate issuing via DNS API - Recommended (Port 80 should be open)

And I enter my domain I get :

Checking if the port 80 is in use...
Good! Port 80 is not in use

When using port 80 application mode, first point your domain name to your server's public IP address. Otherwise the certificate application will be failed!


Please enter the pointed domain / sub-domain name: berbidbit.tk
The given domain name:berbidbit.tk
Domain name berbidbit.tk Currently pointed IP: (23.75.191.205)
The current domain name's resolved IP does not match the public IP used of the server
Suggestions:
1. Please check whether domain is correctly pointed to the server's current pub;ic IP
2. Please make sure that Cloudflare Proxy is closed (only DNS)
3. The script could be outdated. Please open up a issue in Github at https://github.com/NidukaAkalanka/x-ui-english/issues

Well that is my public IP :

curl ident.me
23.75.191.205

And same as my domain:

ping berbidbitch.tk 
PING berbidbitch.tk (23.75.191.205) 56(84) bytes of data.

And same as the error I get:

Domain name berbidbitch.tk Currently pointed IP: (23.75.191.205)
The current domain name's resolved IP does not match the public IP used of the server

Version of x-ui

$ x-ui version
x-ui version
X-UI English v Installation is Completed, The Panel has been Started

 --------------------------------------------------------------------- 
   __   __           _    _ _____    ______             _ _     _      
   \ \ / /          | |  | |_   _|  |  ____|           | (_)   | |     
    \ V /   ______  | |  | | | |    | |__   _ __   __ _| |_ ___| |__   
     > <   |______| | |  | | | |    |  __| |  _ \ / _  | | / __|  _ \  
    / . \           | |__| |_| |_   | |____| | | | (_| | | \__ \ | | | 
   /_/ \_\           \____/|_____|  |______|_| |_|\__, |_|_|___/_| |_| 
                                                  __/ |                
                                                 |___/                 
 --------------------------------------------------------------------- 

------------------------------------------------------------------------------
X-UI MANAGEMENT SCRIPT USAGE: 
------------------------------------------------------------------------------
x-ui              - Show the management menu
x-ui start        - Start X-UI panel
x-ui stop         - Stop X-UI panel
x-ui restart      - Restart X-UI panel
x-ui status       - View X-UI status
x-ui enable       - Set X-UI boot self-starting
x-ui disable      - Cancel X-UI boot self-starting
x-ui log          - View x-ui log
x-ui v2-ui        - Migrate V2-UI to X-UI
x-ui update       - Update X-UI panel
x-ui install      - Install X-UI panel
x-ui uninstall    - Uninstall X-UI panel
------------------------------------------------------------------------------```

</details>

I don't think that's right you need to update your issue template, that doesn't show the version. in the web panel I get:

XRAY Status: running 1.6.4

### x-ui log or xray log

<details>

```console
Please enter the pointed domain / sub-domain name: berbidbitch.tk
The given domain name:berbidbitch.tk
Domain name berbidbitch.tk Currently pointed IP: (23.75.191.205)
The current domain name's resolved IP does not match the public IP used of the server
Suggestions:
1. Please check whether domain is correctly pointed to the server's current pub;ic IP
2. Please make sure that Cloudflare Proxy is closed (only DNS)
3. The script could be outdated. Please open up a issue in Github at https://github.com/NidukaAkalanka/x-ui-english/issues
@Stevemoretz
Copy link
Author

In your acme.sh you have a line for:

curl -s4m8 ip.gs

That doesn't work, you can use :

curl ident.me

That solved it for ipv4 but for ipv6 I don't know any alternatives.

@NidukaAkalanka NidukaAkalanka self-assigned this Dec 15, 2022
@NidukaAkalanka
Copy link
Owner

Hi there @Stevemoretz !

Seems like you are having some trouble issuing an SSL cert for your web root; which is just berbidbitch.tk.
Please try issuing an SSL after pointing your server to a sub domain of your domain name. Like v2ray.berbidbitch.tk

@NidukaAkalanka NidukaAkalanka added the good first issue Good for newcomers label Dec 17, 2022
@Stevemoretz
Copy link
Author

Hi there @Stevemoretz !

Seems like you are having some trouble issuing an SSL cert for your web root; which is just berbidbitch.tk. Please try issuing an SSL after pointing your server to a sub domain of your domain name. Like v2ray.berbidbitch.tk

Hi thanks for responding but as I mentioned that wasn't the issue, there is a bug in the source code right now.

Please check out : #62 (comment)
That bug seems to have been added to the main script too lately.

@Stevemoretz
Copy link
Author

Right now on the latest version if you run

x-ui

You'll get :

Panel state: Running
Whether to start at your own boot: Yes
XRay status: Running

Panel IPv4 login address is: http://<html>
<head><title>403 Forbidden</title></head>
<body>
<center><h1>403 Forbidden</h1></center>
<hr><center>nginx</center>
</body>
:6969 >

checking out the script myself I found that this happens because of a line trying to get ipv4.

curl -s4m8 https://ip.gs -k

when you run this you'll get:

<html>
<head><title>403 Forbidden</title></head>
<body>
<center><h1>403 Forbidden</h1></center>
<hr><center>nginx</center>
</body>
</html>

@Stevemoretz
Copy link
Author

right now:

curl -s4m8 https://ip.gs -k
<html>
<head><title>403 Forbidden</title></head>
<body>
<center><h1>403 Forbidden</h1></center>
<hr><center>nginx</center>
</body>
</html>

but this works:

curl -s4m8 ip.gs -k
23.25.26.25

@NidukaAkalanka NidukaAkalanka added bug Something isn't working and removed good first issue Good for newcomers labels Dec 19, 2022
NidukaAkalanka added a commit that referenced this issue Dec 21, 2022
NidukaAkalanka added a commit that referenced this issue Dec 21, 2022
@NidukaAkalanka
Copy link
Owner

Thanks a lot for informing about this bug. It was due to an issue at https://ip.gs/ website.

It has now been successfully resolved. Just upgrade your installation using the single command upgrade.

Keep opening up issues if you face any other problems with this. It really helps me to find out those bugs and resolve them as soon as possible

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants