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
curl --user USERNAME:PASSWORD http://www.myvrs.com:xxxxx -v
/bin/nc 127.0.0.1 30005 | /bin/nc myvrs.com xxxxx
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
* 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: */*