Help with Protocol family unavailable exception.

Hello I am a little stuck on this exception that I am getting.

I keep getting this exception on the server side, but not the client side. The client side connects with no problem.
I am trying to solve it for the Server Side for I do not get this exception any more. Any help would be appreciated.


java.net.SocketException: Protocol family unavailable
        at sun.nio.ch.Net.connect(Native Method)
        at sun.nio.ch.DatagramChannelImpl.connect(Unknown Source)
        at game.server.Client.setUDPConnection(Client.java:125)
        at game.server.Client.<init>(Client.java:33)
        at server.ServerClient.<init>(ServerClient.java:24)
        at server.TankClientListener.addClient(TankClientListener.java:31)
        at game.server.ClientListener.checkNewPlayers(ClientListener.java:23)
        at game.server.GameServer.run(GameServer.java:44)

The server is running on the same machine as the client when testing.
This is suppose to be a TCP/UDP server for a game I am working on.

Works on the Client Side when the client connects but not on the Server side when the server side accepts the connection and sets up the UDP channel.

The source code that is used on the Client and Server for making the UDP connection is below.



==========================
Server Side==================
==========================

public boolean setUDPConnection(){
	try{
		mainChannelUDP = DatagramChannel.open();
		mainChannelUDP.connect(new InetSocketAddress(mainChannelTCP.socket().getInetAddress(),2593));
		mainChannelUDP.configureBlocking(false);
	}catch(Exception e){e.printStackTrace();return false;}
	return true;
}//END METHOD

==================================================================
Client Side==========================================================/
==================================================================

public boolean setUDPConnection(){
	try{
		mainChnlUDP = DatagramChannel.open();
		mainChnlUDP.connect(new InetSocketAddress(mainChnlTCP.socket().getInetAddress(),2593) );
		mainChnlUDP.configureBlocking(false);
	}catch(Exception e){e.printStackTrace(); return false;}
	return true;
}//END METHOD




-Java Version-


java version "1.6.0_10"
Java(TM) SE Runtime Environment (build 1.6.0_10-b33)
Java HotSpot(TM) Client VM (build 11.0-b15, mixed mode, sharing)

Thank you very much for the help.