title: Create bluetooth NAP and PANU in PAN for Android and communicate with each other on basis of IP
body: <p>I am new to Android and Bluetooth. I am trying to set up a PAN network with PANU and NAP(GN) in the same using BNEP protocol of Bluetooth. My main intention is to make the a device make a NAP so that it can connect to TCP-IP and the other PANUs in piconet
  will interact with the device in the NAP. I can use the Java reflection to support this. I am using android.bluetooth.BluetoothPan class for the connection as PAN. 
  So I followed the steps in following sequence for set up:
  a) I called the constructor for BluetoothPan and created the instance. [Object creation happens successfully with onServiceConnected() handler receiving profile value of 5]
  b) I set the setBluetoothTethering() to true [After setting I check the status using isTetheringOn() function and the state is true]</p>
  
  <p>So I think now this app will make the device work like a PANU ? Am I correct ? If no, what else I need to do ?
  Now my question is how to make this application support NAP ? 
  As Bluetooth Tethering is on, so is it already in NAP ?
  If so, can I see the IP or port number for communication allocated to device when it is made to NAP. I cannot find a way for this.</p>
  
  <p>My main intention is make a server device act like a NAP with some IP. and make some client devices with PANU, Now based on IP of NAP, I can run service discover in PANU side based on IP and interact.</p>
  
  <p>Before, I had already set up communication between service and client using listenUsingRfcommWithServiceRecord() [Server] and listenUsingRfcommToServiceRecord() [Client] and many references in developer.android for setting up communication using this methods. That is very easy way to set up client-server communication and uses SDP. I am not using that here.</p>
  
  <p>I want to do it through BNEP only</p>
  
  <p>Note: After checking through ADB debugging I found that when it is connected to bluetooth tethering, the IP allocated can be seen by "adb shell ip route" and you can see the allocated IP for NAP in BT tethering. Now how to get this IP is my question or next task </p>