Results 1 to 1 of 1
  1.    #1  
    FYI: You can change the IP address and range that Bluetooth connects with on NAP.

    By default, 10.1.1.11 is hardcoded into WebOS 1.3.5+ (Including 1.3.5.1)

    Previously this was 10.1.1.10

    Unfortunately there is no way to simply edit a config file, or make a patch. This requires you to hex edit a binary. Not for the faint of heart.

    The responsible binary for this address is
    /usr/bin/mobilehotspotd

    At address 0000a4e0 you'll find the following code...

    Code:
    70 61 6c 6d 2e 62 72 69 64 67 65 00 31 30 2e 31 2e 31 2e 31 31 00 00 00 64 68 63 70 4f 62 6a 2d 3e 69 70 76 34 41 64 64 72 65 73 73 00 00 00 00 32 35 35 2e 32 35 35 2e 32 35 35 2e 30 00 00 00 64 68 63 70 4f 62 6a 2d 3e 69 70 76 34 53 75 62 6e 65 74 00 31 30 2e 31 2e 31 2e 32 30 30 00 00 64 68 63 70 4f 62 6a 2d 3e 69 70 76 34 50 6f 6f 6c 53 74 61 72 74

    The code marked in red is the HEX value for 1, which is the 3rd octet of the 10.1.1.X address.

    If you change this to 39 for example, at both points highlighted, you'll end up with a result of 10.1.9.11 which assigns IPs within that subnet.

    Results from Pre
    Code:
    bridge0   Link encap:Ethernet  HWaddr Removed-MAC-Address
              inet addr:10.1.9.11  Bcast:10.1.9.255  Mask:255.255.255.0
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:207 errors:0 dropped:0 overruns:0 frame:0
              TX packets:121 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:0
              RX bytes:21014 (20.5 KiB)  TX bytes:18854 (18.4 KiB)
    Results from Windows connected to pre via Bluetooth

    Code:
    Ethernet adapter Bluetooth Network:
    
            Connection-specific DNS Suffix  . :
            IP Address. . . . . . . . . . . . : 10.1.9.200
            Subnet Mask . . . . . . . . . . . : 255.255.255.0
            Default Gateway . . . . . . . . . : 10.1.9.11
    I wouldn't recommend changing to anything more then a single digit address, the results of changing the binary values more then the 1 digit are rather unpredictable.

    I've ran my Pre like this for two weeks now without any ill results, so it appears to be stable, but I cannot assure that long term. In addition there may be issues if a patch comes down the road, so make sure you backup the original binary somewhere safe for replacement once a patch comes out. We know for a fact that MD5 checksums are done against the bins, so this might bite you later as well.

    As for me, my work network is 10.1.1.x, so I cannot link the Pre to my laptop, and this is the only work-around I've been able to find.

    Hope this helps someone, and try not to break anything.


    Tools used:
    Notepad++
    Hex Editor Plugin

    mv mobilehotspotd mobilehotspotd.old
    sftp new bin into place
    chmod 755 the new binary

    If you need to know more then this, I wouldn't recommend doing it.
    Last edited by aramova; 01/15/2010 at 06:13 PM. Reason: Removed MAC address, whoops!

Posting Permissions