It sounds like you want to programatically change the objectServer element inside the app.config. This can be achieved by using the IdeaBladeConfig.Instance. You can look at the API for more info, but here's a small snippet showing how it works.
var ideaBladeConfig = IdeaBladeConfig.Instance;
var objectServer = ideaBladeConfig.ObjectServer;
ideaBladeConfig.ObjectServer.ClientSettings.IsDistributed = true;
if (ideaBladeConfig.ObjectServer.ServerPort != 9009) {
ideaBladeConfig.ObjectServer.ServerPort = 9009;
}
if (ideaBladeConfig.ObjectServer.RemoteBaseUrl != "http://localhost") {
ideaBladeConfig.ObjectServer.RemoteBaseUrl = "http://localhost";
}
if (ideaBladeConfig.ObjectServer.ServiceName != "EntityService.svc") {
ideaBladeConfig.ObjectServer.ServiceName = "EntityService.svc";
}