title: Changing localhost in java
body: <p>I'm writing simple server using netty. By default I work with him using localhost:8080,
  but can I change this to somthingAnother:8080 ? 
  <br>I can use only java and I don't know on which OS my program will work. 
  <p>I can't open hosts.txt file and write new host there by myself.</p>
  
  <p>I tried to use 
       <code>new InetSocketAddres(String hostname, int port) </code></p>