package dotsboxes;

import java.net.InetAddress;
import java.net.UnknownHostException;
import java.rmi.AlreadyBoundException;
import java.rmi.NotBoundException;
import java.rmi.RemoteException;

import dotsboxes.players.PlayerDesc;
import dotsboxes.rmi.ConnectionManager;
import dotsboxes.rmi.exceptions.ConnectionAlreadyEstablished;
import dotsboxes.utils.Configuration;
import dotsboxes.utils.Debug;

public class DotsBoxes {

	/**
	 * @param args
	 */
	public static void main(String[] args) 
	{
		try {
			System.out.println("Hello World");
			int port = Integer.parseInt(args[0]);
			Configuration.setPort(port);
			Configuration.setKnownPlayersFilepath( args[1] );
			
			ConnectionManager.Init(port);
			EventManager.Init();
			
			SessionManager smanager = new SessionManager();
			EventManager.ProcessEvents();
		} catch (RemoteException | AlreadyBoundException e) {
			e.printStackTrace();
			System.exit(1);
		}
		
	}

}

@@ -664,16 +664,83 @@
 s%5B1%5D );%0A
+%09%09%09Configuration.setAddress( InetAddress.getByName(%22127.0.0.1%22) );%0A
 %09%09%09%0A%09%09%09C
@@ -979,16 +979,115 @@
 xit(1);%0A
+%09%09%7D catch (UnknownHostException e) %7B%0A%09%09%09// TODO Auto-generated catch block%0A%09%09%09e.printStackTrace();%0A
 %09%09%7D%0A%09%09%0A%09

add setting Configuration address property