Legacy Communication Made Easy
[ start | index | login ]
start > mrelayd


Created by leo. Last edited by leo, 9 years and 201 days ago. Viewed 6,075 times. #1
[edit] [rdf]
relayd/mrelaydBoth relay demons impose a security risk. Always clear their use with your administrator.

All Java Applets have several security restrictions that prevent a random applet from doing damage on your computer or on the network. Due to this reason it is not possible to open a telnet/ssh connection to any other machine then the one the applet was downloaded from (the webserver).

Sometimes your application is not running on the webserver, in these cases you need some kind of forwarder. Any program, tool or firewall configuration that forwards connections going to a specified port on the webserver to your real targethost and port will do.

We have supplied to simple tools that establish that portforwarding. They run on the webserver (you will need permission from its system administrator).

Single Relay Demon

The first one is the single relaydemon. It can have just one targethost and -port (but it can be used by multiple users at the same time).

It is started on the webserver host by running:

./relayd <localport> <targethost> <targetport>

In the applet you only set the parameter Socket.port to <localport>. <targethost> and <targetport> are the host where the application is. <localport> can be choosen freely and should be above 1024.

Multiple Relay Demon

This one allows multiple users going to multiple targets (only needed if you have more than one access point). If you have just one targethost and targetport, the single relay demon above works as well!

It is started on the webserver host by running:


It listens on port 31415 by default.

In the applet.conf you have to change the parameters:

Socket.host  to the target host you want to connect to.
Socket.port   to the target port you want to connect to.
Socket.relay  to the webserver address.
Socket.relayPort to 31415.
no comments | post comment
legacy communication tools for JAVA(tm)

javassh.org | Copyright 1996-2009 Matthias L. Jugel and Marcus Meißner

JAVA is a trademark or registered trademark of Sun Microsystems, Inc. in the United States and other countries.
The JTA - Telnet/SSH Authors (Matthias L. Jugel and Marcus Meißner) are independent of Sun Microsystems, Inc.