title: Using external server restlet framework
body: <p>I am using the Restlet Framework, but now I want to change to a proper server instead of using localhost.
  I have already added my php files (they access the java files using the rest_server URL) to the server's folder and my java files as well, but I am not sure how to change the code so it identifies where the new location of the files is.</p>
  
  <p>Here is the code from IdentiscopeServer (constructor empty):</p>
  
  <pre><code>public static void main(String[] args) throws Exception {
  
      //setsup our security manager
      if (System.getSecurityManager() == null){
          System.setSecurityManager(new SecurityManager());
      }
  
      identiscopeServerApp = new IdentiscopeServerApplication();
  
      IdentiscopeServer server = new IdentiscopeServer();
      server.getServers().add(Protocol.HTTP,8888);
      server.getDefaultHost().attach("", identiscopeServerApp);
      server.start();
  
  }
  </code></pre>
  
  <p>I guess that the correct line to change is the one with "Protocol.HTTP, 8888". If the address of my new server is <a href="http://devweb2013.co.uk/research/Identiscope" rel="nofollow">http://devweb2013.co.uk/research/Identiscope</a>, how exactly do I set this up? Is there anything else necessary for it to work apart from just moving the files to a folder in the server?</p>
  
  <p>The IdensticopeServerApplication is the following:</p>
  
  <pre><code>public class IdentiscopeServerApplication extends Application {
  
  public IdentiscopeServerApplication() {
  }
  
  public Restlet createInboundRoot() {
      Router router = new Router(getContext());
  
      //attaches the /tweet path to the TweetRest class
      router.attach("/collectionPublic", CollectionPublicREST.class);
      router.attach("/collectionPrivate", CollectionPrivateREST.class);
      router.attach("/analysis", AnalysisREST.class);
      return router;
  }
  }
  </code></pre>
  
  <p>Thank you in advance, it is my first time using this Framework.</p>