Ignore:
Timestamp:
02/08/14 20:32:50 (10 years ago)
Author:
jts21
Message:

Tidy up scripts and add UDPTunnel jar, so tunnelling frameserver shouldn't require any more setup than modifying the config file (see the readme)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dev/bin/script/Frameshare-SSH-Tunnel-Server.sh

    r867 r868  
    11#!/bin/bash
    22
    3 # You should change the port to the port of your server (leave it at 3000 if not sure)
    4 port=3000
    5 
    6 # ---------------------------------------------------
    7 # NOTHING BELOW THIS POINT SHOULD NEED TO BE MODIFIED
    8 # ---------------------------------------------------
    9 
    10 # get the offseted port values
    11 frameserverPort=$port
    12 framesaverPort=$((port+1))
    13 messagePort=$((port+2))
    14 infserverPort=$((port+3))
    15 infupdatePort=$((port+4))
    16 imageserverPort=$((port+5))
    17 imagesaverPort=$((port+6))
     3# load config
     4. $(dirname $0)/Frameshare-SSH-Tunnel-CONFIG.sh
    185
    196# tunnel udp connections through their equivalent tcp ports
    20 java UDPTunnel server $frameserverPort $framesaverPort $messagePort $infserverPort $infupdatePort
     7java -jar $jarFile server $frameserverPort $framesaverPort $messagePort $infserverPort $infupdatePort
Note: See TracChangeset for help on using the changeset viewer.