Jump to content

I have a strange networking issue I don't know how to solve right now. Allow me to try to explain.

 

I recently got a new Asus RT-AX86U Pro Router, and a new Netgear Modem. I have some services that a Jetson Nano and a Raspberry Pi run for me.

 

On the Jetson Nano I run a Minecraft server and WireGuard VPN

 

On the Raspberry Pi I run Kuma UpTime which is basically an "downdector" Docker Container that custom checks IP address I go to regulararlly. 

 

Now here is where the issue starts, I'll take this 1 IoT Device at a time. So let's start with the Jetson Nano. WireGuard VPN is port forwarded and works as expected on a remote laptop and Android phone using a custom DDNS address provided by No-IP. I can connect to my VPN easily no issue. However, when I go to use this same address for my Minecraft Server on a different port, I get an error message that reads "Failed to Connect to the server. Connection timed out: getsockopt". However, I am able to get to the server if I use my public IP address and the set port number, my minecraft client can connect to the server.

 

Now for the Raspberry Pi. I have a Kuma UpTime webpage I run and a custom port address for the website. However, when I go to my custom address from No-IP with the Port number, it too says it's unreachable.

 

This is where I am confused. My WireGuard VPN works just fine with the custom address and port number no issue. But for some reason, my No-IP Address doesn't appear to be resolving for the other 2 services I run. The ports are open, and when I do a port check on one of those websites, granted it only sees my real IP, it says the ports a visualable. I even had my custom DDNS No-IP Setup in the Asus Router, but again, I am still not able to connect to the services outside my network. I feel like this has to be some weird DNS resolving issue, but I can't prove it right now, and the DNS Server my router uses is Quad9, although, I did try my ISP DNS servers and it still didn't seem to resolve the connection.

 

What do you suggest I try? What kind of error am I experiencing really here? Please let me to understand so I can get these services back out public facing. And yes, these 3 custom ports are indeed port forwarded to their respected IoT boxes. 

 

 

AMD Ryzen 9 5950x 3.4Ghz | Asus Prime X570-Pro | Corsair Vengeances RGB PRO 64GB 3200Mhz | EVGA Nvidia Geforce 3060 XC | EVGA G3 SuperNova 750 Watt PSU

Link to comment
https://linustechtips.com/topic/1574596-strange-ddns-resolving-issue/
Share on other sites

Link to post
Share on other sites

There is no ports to specify in a hostname record. For example, you will have example.ddns.net
To specify a port in a URL for port 8000 (again, just an example), that would be example.ddns.net:8000. But from the DNS record, it still the same example "'A' record" hosted at ddns.net

 

So if you can specify the port number in the client, all you need is the same host name. I run multiple services from home using just one ddns.net hostname, but obviously hosted on different ports.

Link to post
Share on other sites

4 hours ago, StDragon said:

There is no ports to specify in a hostname record. For example, you will have example.ddns.net
To specify a port in a URL for port 8000 (again, just an example), that would be example.ddns.net:8000. But from the DNS record, it still the same example "'A' record" hosted at ddns.net

 

So if you can specify the port number in the client, all you need is the same host name. I run multiple services from home using just one ddns.net hostname, but obviously hosted on different ports.

That's what I had been doing, was typing the address in the client software, and then adding the port at the end. example.com:<port number> so I am already doing that, but it's connecting regardless of me doing that.

 

Also if what you are saying is true, then explain why I said above my WireGuard works just fine with a custom port and address, but NOT my other services, that's what I don't understand even though I am doing essentially the same process. 

 

AMD Ryzen 9 5950x 3.4Ghz | Asus Prime X570-Pro | Corsair Vengeances RGB PRO 64GB 3200Mhz | EVGA Nvidia Geforce 3060 XC | EVGA G3 SuperNova 750 Watt PSU

Link to post
Share on other sites

My guess is that there is more to your setup than you haven't explained (like a reverse proxy) and the issue is in that config. 

 

DNS (and DDNS) is very dumb. It just replaces your address. If it works when you type the IP and port number but not when you so the DNS-name and port number (make sure the domain name resolves to the correct IP) then it's related to something in the application layer. 

Link to post
Share on other sites

9 hours ago, LAwLz said:

My guess is that there is more to your setup than you haven't explained (like a reverse proxy) and the issue is in that config. 

 

DNS (and DDNS) is very dumb. It just replaces your address. If it works when you type the IP and port number but not when you so the DNS-name and port number (make sure the domain name resolves to the correct IP) then it's related to something in the application layer. 

yeah I don't understand why WireGuard VPN works for my friends and I, but Minecraft Server and a public facing website that uses the same DDNS and a different port number won't work. I'll try emailing No-IP and see if they can offer a solution. My setup isn't too complicated, I am running the minecraft server off a Docker Container, which had worked just fine with my R6400v2 Router, but the Asus RT-ZX86U Pro is acting a little differently for some reason.

AMD Ryzen 9 5950x 3.4Ghz | Asus Prime X570-Pro | Corsair Vengeances RGB PRO 64GB 3200Mhz | EVGA Nvidia Geforce 3060 XC | EVGA G3 SuperNova 750 Watt PSU

Link to post
Share on other sites

58 minutes ago, _Grid21 said:

yeah I don't understand why WireGuard VPN works for my friends and I, but Minecraft Server and a public facing website that uses the same DDNS and a different port number won't work. I'll try emailing No-IP and see if they can offer a solution. My setup isn't too complicated, I am running the minecraft server off a Docker Container, which had worked just fine with my R6400v2 Router, but the Asus RT-ZX86U Pro is acting a little differently for some reason.

Have you verified that you get the correct IP when doing a dns lookup for the domain? 

If you get the correct IP then there is nothing no-IP can do. Their service works as expected. 

 

Again, I suspect that the issue is related to docker or some load balancer you might have configured.

If it works when you use the IP but not when you use the domain name, and the domain name resolves to the correct IP, then there has to be something like nginx or traefik that relies on the domain name in order to forward traffic. 

Link to post
Share on other sites

  • 2 weeks later...
On 6/28/2024 at 4:15 AM, LAwLz said:

Have you verified that you get the correct IP when doing a dns lookup for the domain? 

If you get the correct IP then there is nothing no-IP can do. Their service works as expected. 

 

Again, I suspect that the issue is related to docker or some load balancer you might have configured.

If it works when you use the IP but not when you use the domain name, and the domain name resolves to the correct IP, then there has to be something like nginx or traefik that relies on the domain name in order to forward traffic. 

Actually recently, one of my friends tested my DDNS with the assigned port and said they were able to get to the address of the Minecraft server and public facing website. So I guess it solved itself some how. 

AMD Ryzen 9 5950x 3.4Ghz | Asus Prime X570-Pro | Corsair Vengeances RGB PRO 64GB 3200Mhz | EVGA Nvidia Geforce 3060 XC | EVGA G3 SuperNova 750 Watt PSU

Link to post
Share on other sites

3 hours ago, _Grid21 said:

Actually recently, one of my friends tested my DDNS with the assigned port and said they were able to get to the address of the Minecraft server and public facing website. So I guess it solved itself some how. 

I wouldn’t have anything exposed to the internet that doesn’t need to be. Uptime kuma shouldn’t be exposed for example… if you need to see status of things, VPN in and check uptime kuma from within the LAN. 

Rig: i7 13700k +Contact Frame - - Asus Z790-P Wifi - - RTX 4080 - - 4x16GB 6000MHz - - Samsung 990 Pro 2TB NVMe Boot + Main Programs - - Crucial P3 2TB NVMe for photo work - - Corsair RM850x - - Sound BlasterX EA-5 - - Corsair XC8 JTC Edition - - Corsair GPU Full Cover GPU Block - - PTM 7950 - - XT45 X-Flow 420 + UT60 280 rads externally mounted - - EK XRES RGB PWM - - Fractal Define S2 - - DellAlienware AW3423DWF 34" -- Logitech Pro X Superlight - - Logitech G710+ - - LTT Northern Lights Deskpad

 

Headphones/amp/dac: Schiit Bifrost Multibit - -  Schiit Lyr 3 - - Fostex TR-X00 - - Sennheiser HD 6xx

 

Homelab/Media Server: Proxmox VE host - - 512 NVMe Samsung 980 RAID Z1 for VM's/Proxmox boot - - Xeon e5 2660 V4- - Supermicro X10SRF-i - - 128 GB ECC 2133 - - 10x8TB WD Red RAID Z2 - - 2x 800 GB SAS SSD’s (1 SLOG, 1 L2Arc) - - 45 HomeLab HL15 15 Drive 4U - - Corsair RM650i - - LSI 9305-16i HBA - - TreuNAS + many other VM’s

 

Unifi UDM Pro in front of full unifi network infrastructure

 

iPhone 17 Pro - - MacBook Air M3

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×