I’d like to take the stock SD image install for Piaware and do the following… but am not clear on how best to do this…
Fork 1090 data to port xxx0 on remote VRS server
Fork MLAT data to port xxx1 on remote VRS server
Fork 978 data to port xxx2 on remote VRS server
Everything appears to be running great locally… I just need to break it out and send it to a waiting VRS server that is already listening on those specific ports for this data.
It can be easier to do connections from the receiver outbound towards a VRS server located elsewhere if the receiver is behind NAT or a firewall or has an unpredictable address, but the VRS server isn’t so restricted.
Oh! I am sorry. I misunderstood that both the Pi and VRS Server are on the same LAN.
Your approach should work provided
(1) The remote sever running VRS is configured to accept external connection at port xxxxx
(2) The remote sever running VRS does not require authentication/login by incoming connection.
If your remote server requires authentication/login, you can do this by curl
To do this:
Create a new file
sudo nano connect.sh
Now copy-paste following code in this file, and save this file
#! /bin/sh
while true
do
sleep 30
curl --user USERNAME:PASSWORD http://www.myvrs.com:xxxxx -v
/bin/nc 127.0.0.1 30005 | /bin/nc myvrs.com xxxxx
done
Now make this file executable
sudo chmod +x connect.sh
Run this file
sudo ./connect.sh &
Since I have placed argument -v at the end of curl command, you will get an output. It will be something like this
[1] 10831
* Rebuilt URL to: http://www.myvrs.com:xxxxx/
* Hostname was NOT found in DNS cache
* Trying zzz.zzz.zzz.zzz...
* Connected to www.myvrs.com (zzz.zzz.zzz.zzz) port xxxxx (#0)
* Server auth using Basic with user 'USERNAME'
> GET / HTTP/1.1
> Authorization: Basic YWJjZDU2N0Bob3RtYWlsbC5jb206YTFiMmMz
> User-Agent: curl/7.38.0
> Host: www.myvrs.com:xxxxx
> Accept: */*
>