i'm writing an application socket-based, i need to set some preferences ( local/remote, url of server and other). Somebody can help.