RPC only from localhost?

17 Oct 2011

Hello,

Is it possible that I only allow rpc commands from localhost or only from one IP Address?

So that I can only set Outputs and read Inputs with a JavaApplet on mbed self?

tia Klaus

18 Oct 2011

Hi,..

You can't stop people talking to RPC with a terminal, but you CAN stop them getting anything back from it. (in effect it just bins their request)

just put a private key into your RPC requests (that only your java applet knows)

SORT OF PSEUDO CODE, BECAUSE I CAN'T REMEMBER SYNTAX OFF THE TOP OF MY HEAD >>

char findValueFromMbedRPCMethod(int whichValue, int key) {

if (key!=123456789) { return " "; }

..do things ..return a real value.

}