Jump to content
View in the app

A better way to browse. Learn more.

Universal Devices Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Nodelink 0.9.12 and mono

Featured Replies

  • Author

@kzboray,

Something weird started happening with Host Headers for NodeLink http requests. If you give NodeLink dedicated IP and access it by IP - it works fine.

Any request sent to DNS name fails with 400 error as though HostHeader is missing. Does not matter what NodeLink runs on (I tried docker, Pi and regular VM). 

@io_guy ,

I was able to run NodeLink in windows server container, but it only works on my PC. As I learned, docker on linux starts a VM in order to start windows server containers. My hardware does not support nested VMs so I cannot run docker containers with windows :-( 

My networking environment relies on layer 7 routing so I have to use hostnames to access web services. The only workaround short of rebuilding all of routing is to disable NodeLink updates and stay on 0.9.11

On 4/1/2018 at 6:13 PM, io_guy said:

Seems to be a mono issue.  I don't have a solution besides using the IP.

That doesn't make sense. OSI layer 3 is always available.  Just because you're playing on 7, it funnels down.  

If it doesn't, fix your network.  

  • Author

@io_guy

7 hours ago, io_guy said:

That doesn't make sense. OSI layer 3 is always available.  Just because you're playing on 7, it funnels down.  

If it doesn't, fix your network.  

If OSI3 level was sufficient - we would not need proxies. 

Proxies! Great idea!!! That's exactly what I need to solve the problem.

Add nginx to forwards all traffic sent to Nodelink by URL to Nodelink IP/Port.  Default nginx config passes host header. All you have to do is comment out that line:

server {
        listen 8090;
        listen 8090;
        server_name nodelink.[my domain];

location / {
        proxy_pass                              http://[Nodelink-IP]:$server_port/;
#        proxy_set_header Host                   $http_host;
        proxy_set_header X-Real-IP              $remote_addr;
        proxy_set_header X-Forwarded-For        $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto      $scheme;
    }
}

 

  • Author

@io_guy

Not sure how many people are affected by the IP vs. DNS problem. If its just me - I have my workaround. 

If more people have the same issue - I would be happy to write up better instructions on how to setup nginx or create a docker image with nginx built-in.

There instructions will vary quite a lot based on the environment. Pi/Debian are straightforward, not so with docker version of Nodelink on a NAS. I am only familiar with Synology which has its own nginx. Configuring it requires root+SSH and beginner can easily mess up the system by mistake.

No need, I have it resolved in the next release.

Mono sees OS X and Linux as the same OS and I had to put code in to fix an issue where OS X would not allow a wildcard interface registration for the http server (Linux and Windows will).  So I added some additional non-mono code to split Linux from OS X.

I have been trying to access NodeLink remotely using a Dynamic DNS (No-IP) without success! I am getting the error "Bad Request (Invalid Host)"... is this the same issue being discussed here, which will be fixed in the next release?

I have a port forwarded to 8090 with BOTH (UDP and TCP) protocols chosen on my router.  The port forwarding works for my other access points (PolyGlot,; SSH to Raspberry pi and iMac; and an IP Cam.

If it isn't the same issue are there any thoughts on what is going wrong?

Should be the same issue


Ok thanks for the reply. I’ll wait for the next release.


Sent from my iPhone using Tapatalk
  • 1 month later...
  • Author

@io_guy

Just wanted to let you know that 0.9.13 resolved my issues with host headers. Moved back from Debian to dockered NodeLink.

Thank you for your help and for building such a great product!

Archived

This topic is now archived and is closed to further replies.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.