Internet sharing methods for GnuBox

Introduction

This page details the available methods for sharing your computers internet connection to the incoming connection client, which is intended to be your phone. You might be directed here by a tutorial to decide which method to use, or by the troubleshooting walkthrough when it has identified that you cannot use bluetooth internet because the internet sharing is not properly configured on your computer. This page currently details only windows methods. That is not because I like that so much, but because on Linux this problem can be straightforwardly solved and the tutorials perfeclty detail on how.

Version & Credits

This is version 1.01, written by -xan-, released at jan 22nd, 2006. The inital release was finished on 2005-11-01.

Note

If you find the information contained here useful or helpful, and you believe it was worth the time needed to create this page, you can express this by donating a few dollars (or euros) for me (and further development of gnubox and such documentation pages). Read more on why&how.

Update

Firewall and internet security softwares (like ZoneAlarm, Kerio Personal Firewall, Symantec Internet Security, etc.) usually prevent the phone from accessing the internet via the computer. You need to setup these to allow internet connection sharing, or the method you chose. This affects Methods 1, 2 and 3 below.

Overview of the methods

The following methods will be considered here:

How to choose the method to use

Read the General and Restrictions entries for all the methods. Choose the one for which your configuration fits in the restrictions and you like best. If you are impatient, take this order:
For SonyEricsson, Motorola phones, Nokia phones prior (but not including) the 6600 and N70 or later, use method 4. For other Nokia phones, look in the order 2135 (or 1235).
If everything fails, method 5 always works for web browsing.

Method 1: Windows ICS (Internet Connection Sharing)

General

Windows has a fairly convenient method to share internet connections to other computers. This can usually be used for the purposes of GnuBox.

Restrictions

Advantages

Setup instructions

  1. If you do not have ICS enabled yet:
    1. Go to the Network Connections and enable the unused network connection you will use as fake private network for ICS. Good candidates are:
    2. Go to the properties of your outside internet connection, special tab. Check "Allow other users of  network to use this computer's internet connection".
    3. In the Choose Private Network drop-down, select the adapter you chose in point 1.1
    4. Click OK. You DO NOT need to enable anything in the Settings..., not even HTTP, DNS, e-mail or anything. Those Settings are for the reverse direction that you need: from outside to inside. You want to go from inside to outside.
  2. Go to the incoming connection properties, Network tab, select TCP/IP and click properties.
  3. Set the radio box to given ip. Set
  4. Click OK.
  5. Though unlikely, it might be necessary to set the DNS addresses manually in the phone. If the connection does not work and you get 'Error No DNS server specified' in NetFront, 'no gateway reply!' in the internal Web app, or 'Could not locate remote server' error in Opera, the troubleshooting guide will lead you to Node 15 and then Node 16. Follow the instructions given there.

Method 2: Enabling IP forwarding and using an external router

General

If you already have a device doing internet sharing in your network, and you happen to be behind it, then it can be easily configured to do the hard thing for the phone, too. Then windows can go on with the easy part only.

Restrictions

Advantages

Setup instructions

  1. Open registry editor (on the computer, Start|Run..., type regedit and click OK)
  2. Navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters in the tree.
  3. Look for IPEnableRouter on the right
      1. select Edit|New|Doubleword value (or DWORD value).
      2. Enter the name IPEnableRouter (take care for capital letters)
      3. and a single 1 in the value field.
  4. Close registry editor
  5. Reboot your computer to apply the changes. DO NOT FORGET THIS. It won't work without rebooting.
  6. Double-click the icon of your primary internet connection in the taskbar (or in Network Connections)
  7. Go to the second page (Support)
  8. Note the IP address and the Default gateway. These should be the same except the last number. Make up a third IP address in the same range comfortably away from all other used ip addresses. The last number can be increased up to 253. Change only the last number.
  9. Go to the incoming connection properties, Network tab, select TCP/IP and click properties.
  10. Set the radio box to given ip. Set the starting addresses to the address you made up. Set the ending address to the next address (i.e. the last number increased by 1.)
  11. Click OK.
  12. It might be necessary to set the DNS addresses manually in the phone. If the connection does not work and you get 'Error No DNS server specified' in NetFront, 'no gateway reply!' in the internal Web app, or 'Could not locate remote server' error in Opera, the troubleshooting guide will lead you to Node 15 and then Node 16. Follow the instructions given there.

Method 3: Windows XP netsh service nat

General

Windows has a second, pretty much unknown service for performing internet connection sharing. It is activated with cryptic netsh blahblah command from command line.

Restrictions

Advantages

Setup instructions

  1. Disable ICS if you have enabled it for some reasons. You won't be able to enable it until you deactivate this sharing method.
  2. Open a command prompt and issue netsh routing ip nat install If you get an error here, do not proceed until you resolve it.
  3. Issue the following command: netsh routing ip show interface In the result, look for two lines:
    1. Look for the connection which is your connection towards the Internet. Note the exact name. In my case this is "Helyi kapcsolat".
    2. Look for the connection named 'Internal' in the language of your windows. Note the exact name. In my case this is "Bels".
  4. Issue netsh routing ip nat add interface EXTERNAL full Substitute the name you got in point 3.1 instead of EXTERNAL. Add the " if there are spaces. So in my case this will sound: netsh routing ip nat add interface "Helyi kapcsolat" full
  5. Issue netsh routing ip nat add interface INTERNAL private Substitute the name you got in point 3.2 instead of INTERNAL. Add the " if there are spaces. So in my case this will sound: netsh routing ip nat add interface "Bels" private In case of an english windows, this will sound: netsh routing ip nat add interface Internal private
  6. You are probably okay now if the above commands worked without error.
  7. It might be necessary to set the DNS addresses manually in the phone. If the connection does not work and you get 'Error No DNS server specified' in NetFront, 'no gateway reply!' in the internal Web app, or 'Could not locate remote server' error in Opera, the troubleshooting guide will lead you to Node 15 and then Node 16. Follow the instructions given there.

Method 4: using mRouter's internal NAT engine

General

mRouter has automagic connection sharing built in. Easiest is to use that, especially when mRouter is easier to set up than windows XP incoming connections.

Restrictions

Advantages

Setup instructions (updated)

  1. If you have mRouter in the PC suite software, then just use 2box bluetooth->Serial port in GnuBox and enjoy.
  2. Otherwise, install mRouter from developer.intuwave.com.
  3. UNCHECK the bluetooth connection (i.e. widcomm or windows xp bluetooth driver) in its setup. Instead, go to Advanced and add a COM port as the connection. The COM port number should be the same as other tutorials wanted you to install the 'Communication cable between two computers' modem. If you did that, then go to the incoming connection settings and uncheck that modem there.
  4. Click 2box bluetooth->Serial port in GnuBox and enjoy.

Method 5: proxy server

General

This method works by using a software called proxy server that can forward your http requests to the target servers and send back the response to the phone. This server will run on your computer, and the phone has a healthy network connection to your computer. The proxy server method avoids the hassle of the connection sharing by breaking the connection into two parts in the two healthy network connections: from the phone till the computer and from the computer to the internet.

Restrictions

Advantages

Setup instructions

  1. Install AnalogX proxy server from here. Start it.
  2. Find out the IP address your computer gets from the phone point of view.
  3. Go to the phone Settings|Access points|Bt, go to the advanced settings, find the field Proxy server. Enter the IP address you found out in the previous point. Enter 6588 for the port. If you are asked what kind of proxy this is, tell it is an HTTP proxy. If you are using a 6630/80/81 phone, you have to follow these instructions (except that you don't change the DNS settings as told there in point 2, but the proxy settings as told here).
  4. In Opera and/or NetFront settings you might need to manually enter proxy settings. Use the IP address you found out in point 2 and port 6588.
  5. Enjoy. Don't forget to have the AnalogX proxy on auto-start.
  6. If you need e-mail sending/receiving, you can configure that in the AnalogX proxy, too. Follow the instruction in the proxy documentation on how to configure. In the client on the phone, you'll have to set the server IP to the IP you got in point 2 here, and port to whatever the AnalogX documentation/settings tells you to.