Sunday, October 11, 2015

BlueDUN & BlueVPN - What do you need to connect?

BlueDUN+ / BlueDUN emulate the hardware modem on your Android phone. They allow your phone to share wifi or mobile connection over the bluetooth channel with other devices like PCs,tablets or navigation systems.  The bluetooth DUN (dial-up network) service is turned on, in order to enable the external device to access the Internet.
Android 2.3.* / 3.* :
Android >= 4.*  :

BlueVPN+ / BlueVPN  open a VPN connection through the bluetooth or USB channel and allow to navigate the internet without a WiFi or a built-in 3G module.
They requires one of:
 - Android smartphone/tablet with BlueDUN installed and running
 - GPRS phone with Dial-Up Networking (DUN) support
 - USB Stick with 3G or PSTN Modem [BlueVPN+]
Android 2.3.* / 3.* :
                            Android >= 4.*  :

1. TABLET (USB host port) & 3G STICK or PSTN (Line) Modem






BlueDUN(+): Connect Windows 10 PCs to internet via bluetooth through Android phones

This post shows how to install and configure Bluetooth and pair your computer with an Android mobile phone to enable the internet connection.

Prerequisites are that you have already installed the bluetooth adapter on your windows 10 computer and turned on the bluetooth interface.

The pairing process can be started both from computer and phone. If you choose to start from phone you need also to enable in the Bluetooth Settings  the option: "Allow Bluetooth devices to find this computer".
In this example, I will choose to start the pairing from the computer.

In Windows search bar type "devices" and select "Device and Printers - Control Panel"

Now you can see the list of the previously paired devices, but, before clicking "Add a device" to create a new pairing with your phone it is necessary to turn on the BlueDUN+ service on phone.

Open the BlueDUN+ app and enable the "Discoverable" option on preference panel (click the menu button to access to the preferences); now when you start the service you should get the message "Bluetooth permission request" asking you to enable the bluetooth visibility status for a limited time. 

If the BlueDUN+ service is running on the phone, you can click the "Add a device" button on PC; this starts the "Add a Device" wizard, which automatically scans for new devices, including Bluetooth ones.
After a few seconds, your phone should show up in the list of available devices. If it doesn’t, then you need to make sure Bluetooth is enabled on the phone and the phone is set as discoverable.

Select your phone and click Next.

The wizard displays a code that you need to type on your mobile phone, so that the pairing is completed.

On your mobile phone, you are notified that your computer wants to connect via Bluetooth. Press OK to confirm the passcode.

After the confirmation, the pairing will be created and Windows automatically searches for drivers for all Bluetooth profiles available on your mobile phone, then installs them.

To check the discovered and installed BT profiles, you can right-click the phone you’ve just added and choose Properties:

Note:  the "Dial Up Network (
DUN)" profile will be available on phone only when the BlueDUN+ service is running; if you pair the devices in a different condition, you will not be able the create a new internet connection on PC.   In this case, remove the old pairing and create a new one following the above steps.

Make sure the DUN profile is also selected and click OK to confirm.
Now it is the time to create a new internet connection to access the internet through the  bluetooth phone tethering:  right-click again your phone and then choose "Dial-Up Networking" > "Create a dial-up connection…"

after clicking that, it will ask for what Modem device to use in your dial-up choose the last one, if it doesn’t work, try the others...

now enter the mandatory dial-up number ( for example  *99***1#  is the mostly used ), and enter a name for your dial-up connection… no need for username and password with the BlueDUN+ app …

after entering the details, click Connect, it will try to dial the number in your phone and registering your connection to networks server, and after that it will test your connection…

On the BlueDUN+ app you should see the "Modem negotiating.." message and soon after the panel with connection statistics indicating the connection was established with success.

Now your done! Click close button to close the window, and Open your browser to start surfing the web, Enjoy!

If you need to use the dial-up connection in the future, you have just to click the "Network settings" icon on notification area:

select the connection with proper name

click the "Connect" button and finally click the "Dial" button:

Saturday, October 10, 2015

BlueDUN+: Connect custom application to external device with TCP/IP over bluetooth

External app running a TCP server

The external application runs a TCP server on a specified port and acts as normal application server:   when the bluetooth client requests a connection with a special IP, the BlueDUN service redirects the data packets to the local port on localhost (    

Application settings -  “Extensions” category:
Client application = unchecked
Redirect IP = the special IP associated to the external application [ default: ]
Local port = the port number on localhost related to the TCP server running inside the external app [ default: 8001 ]

Actions to be performed in the external application:

1. Start the BlueDUN service [if not automatically started on device boot]:

   Intent intent = new Intent();
   intent.setComponent(new ComponentName("com.bluedunx","com.bluedunx.BlueDUNService"));

2. Start up the TCP server for a given local port number

External app connecting as a TCP client

The external application connects to a TCP server running inside BlueDUN;  the BlueDUN module redirects the data packets to the TCP socket created with the external device over the bluetooth channel, matching the port numbers.
The TCP server starts as soon as you start up the BlueDUN service on localhost ( and opens the specified port.  

Application settings -  “Extensions” category:
Client application = checked
Redirect IP = the special IP associated to the external application [ default: ]
Local port = the port number on localhost related to the TCP server running inside BlueDUN [default: 8001] and equivalent to the port number on the external device

Actions to be performed in the external application:

1. Start the BlueDUN service  [if not automatically started on device boot]:

   Intent intent = new Intent();
   intent.setComponent(new ComponentName("com.bluedunx","com.bluedunx.BlueDUNService"));

2. Connect to the TCP server for the given port number

Note:  this configuration needs the external app to be reconnected if the external device closes a connection created before.