views:

48

answers:

0

Hello there my problem is this,i want to create an obex connection but i already know my server adress.The problem is how to get the connection url without service discovery.I use a normal java project for my server side and a midlet project for my client side.I will post the code maybe it helps. Server connection

    UUID uuid=new UUID("8841",true);
    String      url="btgoep://localhost:"+uuid+";name=FTP;authenticate=false;master=false;encrypt=false";
   SessionNotifier sn=(SessionNotifier)Connector.open(url);
   System.out.println("Now waiting for a client to connect");
   sn.acceptAndOpen(this);
   System.out.println("A client is now connected"); 

When i try to connect with the client it doesn't get to the last line :(....any ideas why?Hope u can help...thanks