[Q] solution for wifi conflict - HD2 Android Q&A, Help & Troubleshooting and Genera

My brother and I have two HD2 devices
but when we use the wifi in the android at the same time
a kind of conflict occurred and the last one who turn the wifi on can use the internet and the other is disconnected
so, is it kind of ip problem and how to solve it?

just to be sure: I guess when both are in WinMo all is working fine?

yes
yes they work great

kingo08 said:
yes they work great
Click to expand...
Click to collapse
I'm not a dev btw, just curious, sorry about bringing your hopes up
I searched some here as well as elsewhere, because I've read somewhere, a while ago something about changing the designated IP adress of the phone.
It sounds to me your router is try to give the phones the same IP. You could check the router for that. I'd first try and give each MAC adress a designated IP (a different one ofc).
Damn, I'm sure there's a post somewhere here about this, just can't find it...

Just found this:
http://ip208-100-42-21.static.xda-developers.com/showthread.php?p=8360637
In short: it's the MAC adress which is the same on the phones. You could try different build, but start with the mentioned thread first
This must be it:
"The only fix so far is run different kernels. That's what I've been doing."
and
http://forum.xda-developers.com/showpost.php?p=8455440&postcount=7397

Thanksssssssssssssssssssss
I really appreciate your efforts
as long as there is a solution somewhere here i will try to find it

Good!
Always willing to help
I surely hope it'll work!

I'm sure the problem is that you both use the same Mac address. Maybe the new desire hd & z use the original Mac address. So you both use the same android build and also use wifi
Sent from HD2

dusdus said:
Just found this:
http://ip208-100-42-21.static.xda-developers.com/showthread.php?p=8360637
In short: it's the MAC adress which is the same on the phones. You could try different build, but start with the mentioned thread first
This must be it:
"The only fix so far is run different kernels. That's what I've been doing."
and
http://forum.xda-developers.com/showpost.php?p=8455440&postcount=7397
Click to expand...
Click to collapse
hi
are u have that file for fixing mac address?
if u have it upload here .that link have problem

To do this, you need superuser app and terminal. You also need to know your true wireless mac address.
1) open terminal and type su
2) type ifconfig eth0 hw ether [mac address]
This should change your mac address, but you have to do this every time you reboot.
Sent from my Nexus One using XDA App

cma1032 said:
To do this, you need superuser app and terminal. You also need to know your true wireless mac address.
1) open terminal and type su
2) type ifconfig eth0 hw ether [mac address]
This should change your mac address, but you have to do this every time you reboot.
Sent from my Nexus One using XDA App
Click to expand...
Click to collapse
by this way can i change mac address from 00:90:4c:c5:00:34 to 00:11:22:33:44:55 ?
and i do that and any happening?

If you return it back to 00:11:22:33:44:55 will return that mac address. If there's 2 people with hd2 and an android rom will encounter a conflict because both will have 00:11:22:33:44:55.

cma1032 said:
To do this, you need superuser app and terminal. You also need to know your true wireless mac address.
1) open terminal and type su
2) type ifconfig eth0 hw ether [mac address]
This should change your mac address, but you have to do this every time you reboot.
Sent from my Nexus One using XDA App
Click to expand...
Click to collapse
Thanks for that cma. Is it possible to make this into a script which could then perhaps be run at startup?

I don't know how this could be done at startup because you need wifi activated first before running it.
Sent from my Nexus One using XDA App

Can you write how we must put the wifi mac address;
Do we need [ ] and : between the numbers; I am trying with both ways,but nothing changes

Related

[SOLVED] openvpn on DHD? tun.ko?

Has anyone managed to get openvpn going? compiling custom tun.ko file for DHD?
It's probably possible, now that we have the source. Don't have a DHD just yet, so can't try
Sent from my HDfied HTC Desire
Thread moved to General.
hello
i'm interesting too for the kernel mod tun.ko for the DHD
any reponse ?
Hello,
i'm very interesting in this file too...
My NAS awaits the phone "call".
Hey everyone. First time poster, so hoping its a happy reply
Has anyone had any luck with this ? i also require the tun.ko file for DHD. been searching the net for hours
looking forward to your replies.
I heard that tun.ko file has to be specifically compiled for each kernel version. Is that right?
Is it also linked to the radio version?
If we could have a link for kernel source, i might be able to follow tutorial and publish it here.
I have 2.6.32.21 -g66cfb7a kernel version and you? (not sure if the second part is part of the kernel version)
Lionel
Attached is tun.ko for the Desire HD (for kernel 2.6.32.21-gf3f553d). Built it today & it seems to insert OK and work fine with VPN Connections.
thedji said:
Attached is tun.ko for the Desire HD (for kernel 2.6.32.21-gf3f553d). Built it today & it seems to insert OK and work fine with VPN Connections.
Click to expand...
Click to collapse
Perfect! Thanks!!
Very thanks for the module.
DHD - tun.ko for 2.6.32.21-g66cfb7a
EFCAugure said:
I heard that tun.ko file has to be specifically compiled for each kernel version. Is that right?
Click to expand...
Click to collapse
Yes. After trying other people's tun.ko modules, it wasn't until I checked the output of dmesg that I learnt this (got my first Android 3 weeks ago - so I'm still a n00b).
EFCAugure said:
If we could have a link for kernel source, i might be able to follow tutorial and publish it here. I have 2.6.32.21 -g66cfb7a kernel version and you? (not sure if the second part is part of the kernel version)
Click to expand...
Click to collapse
Lionel, it would appear that my Desire HD has the same kernel.
2.6.32.21-g66cfb7a
2.6.32 is the base kernel version
I assume 21 is the revision or build number.
The hex string on the end seems to vary by which ROM you have installed. This was what was stopping me from loading these other tun.ko modules - including the one posted by @thedji
I've just compiled the tun.ko module for 2.6.32.21-g66cfb7a (on a headless Pentium 2 400 MHz lol). It loads fine and can be seen in the output of lsmod. I've attached it below.
Edit: I was able to use this module successfully to connect to a Cisco VPN with vpnc.
Mike
@MikeMelbourne
Can you explain to me how and with what Software you connected to a Cisco VPN?
C.K. said:
Can you explain to me how and with what Software you connected to a Cisco VPN?
Click to expand...
Click to collapse
First - applications.
1) You're going to need a terminal/console app. I used one called Terminal Emulator.
2) You're going to want an app called "VPN Connections". I downloaded a patched APK in post #4 here:
hxxp://code.google.com/p/get-a-robot-vpnc/issues/detail?id=122&q=patch
Alternatively, you might get it from here: hxxp://code.google.com/p/get-a-robot-vpnc/downloads/list (although YMMV).
Second - setup.
1) You're phone needs to be rooted.
2) You need to have the appropriate tun.ko module (for your phone's kernel) loaded. Load up the Terminal Emulator then:
a) Type 'su' without quotes and hit enter.
b) Type 'insmod /path/to/tun.ko' without quotes and press enter. If your tun.ko is on your sdcard in the root, the path would be /mnt/sdcard/tun.ko
c) If the step above worked, you should be able to type 'lsmod' and see the tun module loaded.
Note: I didn't have any luck running the "VPN Connections" app directly - the connection kept failing (possible due to the configuration of the VPN I was connecting to). So I start it from the command line. You might want to try using the GUI first as it would make things so much easier if it works.
Third - connecting to the VPN by a command line.
1) The command to enter is quite long (and I got sick of typing it), so I put it into a file called 2.sh in the root of the sdcard.
2) Inside the file /mnt/sdcard/2.sh, I entered the following:
Code:
/data/data/org.codeandroid.vpnc_frontend/files/vpnc --script /data/data/org.codeandroid.vpnc_frontend/files/vpnc-script --no-detach --natt-mode cisco-udp --debug 1 --gateway AAA.BBB.CCC.DDD --id groupid --username mike --enable-1des
Note that the gateway is the IP address of the VPN you are connecting to. The username for me is just my username - it isn't prefixed by my company's active directory domain.
3) Open the Terminal Emulator.
4) Enter 'su' without quotes and press enter.
5) Enter 'sh /mnt/sdcard/2.sh' without quotes and press enter.
6) You will be asked to provide the group password, then the personal password for your username. Then it should attempt to connect.
You can change the debug value to 2 or 99 if you want to get more information (if it doesn't connect successfully).
If you want to know what command line options are available, enter the following at the Terminal Emulator:
Code:
/data/data/org.codeandroid.vpnc_frontend/files/vpnc --script /data/data/org.codeandroid.vpnc_frontend/files/vpnc-script --long-help
I think that's it - I hope this helps. After disconnecting I tend to do a long reboot (takes 1-2 minutes) to get the network back to the way it was; although I'm not sure this is necessary.
Mike
Edit: seems like you need to create a directory and a symbolic link. This is my working script:
Code:
mkdir /dev/net
insmod /mnt/sdcard/download/tun.ko
lsmod
ln -s /dev/tun /dev/net/tun
/data/data/org.codeandroid.vpnc_frontend/files/vpnc --script /data/data/org.codeandroid.vpnc_frontend/files/vpnc-script --no-detach --natt-mode cisco-udp --debug 1 --gateway AAA.BBB.CCC.DDD --id groupid --username mike --enable-1des
Damn I hoped it woulld be easier. As I have never worked with Android that sounds like a challenge to me. So there is no easy switching on and off of the VPN connection? I always have to use the scripts?
C.K. said:
Damn I hoped it woulld be easier. As I have never worked with Android that sounds like a challenge to me. So there is no easy switching on and off of the VPN connection? I always have to use the scripts?
Click to expand...
Click to collapse
Because the "VPN Connections" GUI app didn't connect for me, I had to resort to the script - you may not need to (depending upon the configuration of your Cisco VPN box).
I just need to run the final script (the 5 liner above) to connect to the VPN - good enough for the time being. You just need to modify the path to tun.ko, set your gateway server, groupid & username.
I hadn't worked with Android before the weekend just past - I've just rooted my first Android phone. It's all a learning experience - I guess it depends how badly you want VPN access? Hopefully it will get easier in time as the apps improve.
Good luck!
Mike
You can use something GScript to make it a two-click process (open app, click script). It's just as efficient as using VPN Connections (open app, click connect).
For me personally, I use VPN Connections to connect (successfully) but the traffic is routed down the wrong interface (i.e. not tun0).
After connecting I have to run
Code:
ip ru del table wifi
or
Code:
ip ru del table gprs
to fix the issue.
You should definitely try VPN Connections first. If that doesn't work, try the long method above.
thedji said:
You can use something GScript to make it a two-click process (open app, click script). It's just as efficient as using VPN Connections (open app, click connect).
Click to expand...
Click to collapse
GScript is a great idea - it will save me doing any typing to connect to the VPN.
Once I added these VPNC flags (--natt-mode cisco-udp --enable-1des) to "VPN Connections" I was able to successfully connect after running the script in GScript.
It doesn't say I'm connected, however my IP address has been assigned and I can Remote Desktop to my work PC. My routing already seems to be ok, so I don't to run the 'ip ru del' commands that you do.
I'm pretty satisfied with this now... no typing - just point and press.
-Mike-
What about tap.ko? (needed for OpenVPN bridge mode)
Exposure said:
What about tap.ko? (needed for OpenVPN bridge mode)
Click to expand...
Click to collapse
What kernel version are you running? If you have '2.6.32.21-g66cfb7a' I could compile tap.ko for you?

[Q] How to change NAND android WIFI and BT MAC address?

After flashing NAND Android, I found that the wifi mac address is : 00:11:22:33:44:55, and the BT mac address is :50:C3:00:00:00:00, any one can tell me how to change them ?
thx.
are u having wifi problems? i am.. i wanna change it too..
+1 for wifi
at home its fine, at work its a unusable mac address
believems said:
After flashing NAND Android, I found that the wifi mac address is : 00:11:22:33:44:55, and the BT mac address is :50:C3:00:00:00:00, any one can tell me how to change them ?
thx.
Click to expand...
Click to collapse
Sorry, accidently hit the Thanks button instead of Quote.
First: Wrong thread, this should be in Q&A.
Second: This is not possible yet, as the current version of MAGLDR doesn't have the possibility to pass parameters (other then AD SD DIR) to the kernel.
Hopefully, in a future update, Cotulla will add this to MAGLDR. For now, you can only use the fake MAC-address supllied with the NAND-builb.
MOD: Can you move this thread to the Q&A Section please?
Sincerely,
Mac
Apparently, there is a solution. I found this on one of the NAND build threads:
clio94 said:
guys this is a temporary way to change wifi mac address in 0.2 build
0.2 build is prerooted so we can change system files
install root explorer 2.13
go to /system/etc/ find file calibration and open it as view in text editor
in first line you will see the mac address
put your desired mac address,save and exit
and then make reboot
voila now you have new mac address
thanks to osm http://forum.xda-developers.com/showpost.php?p=9806811&postcount=17 for this trick
Click to expand...
Click to collapse
Sincerely,
Mac
Macelangelo77 said:
Apparently, there is a solution. I found this on one of the NAND build threads:
Sincerely,
Mac
Click to expand...
Click to collapse
but, BT mac address how to change?...
So, just NAND flashed my HD2 over to DFT's .2 release of Android. This gave me the infamous MAC address issue of 00:11:22:33:44:55 but the file given here doesn't exist. The location exists, but there's no file by the name of calibration in that location. I used Root Explorer to search my phone even for calibration and it didn't find a thing. Any ideas what it may actually be called?
I also need to change bluetooth mac...
Is there a chance to change it???
no one a idear?
WiFi MAC Address Workaround:
Must have Android Developer Kit installed
1. adb pull /system/etc/calibartion
2. open calibration file with wordpad. Not notepad.
3. change the line that says macaddr=00:11:22:33:44:55 to either your real mac or just increment the last digit
4. save file and close
5. adb push calibration /system/etc
6. reboot phone
smokey155193 said:
WiFi MAC Address Workaround:
Must have Android Developer Kit installed
1. adb pull /system/etc/calibartion
2. open calibration file with wordpad. Not notepad.
3. change the line that says macaddr=00:11:22:33:44:55 to either your real mac or just increment the last digit
4. save file and close
5. adb push calibration /system/etc
6. reboot phone
Click to expand...
Click to collapse
Not all builds have this file nor read this file.
Sent from my HD2 Droid (HD) using XDA App
and bluetooth mac?!
any one knows how to change BLUETOOTH mac address with NAND?

[Q]Need to change the Mac address for nexus 4

Dear all
i need to change the mac address of my nexus 4 and i want my mac address have to change although i flash new rom ( not temporarly change address)
i know IP can change the mac address although i restore the device and i want is there any way to do something similar to my nexus4
thanks so much
hlpdt10 said:
Dear all
i need to change the mac address of my nexus 4 and i want my mac address have to change although i flash new rom ( not temporarly change address)
i know IP can change the mac address although i restore the device and i want is there any way to do something similar to my nexus4
thanks so much
Click to expand...
Click to collapse
Look here http://android.stackexchange.com/qu...nge-permanent-mac-address-on-my-android-phone, you need to have root. Haven`t done this myself though. Good luck.
Please, tell us if you get WiFi working with a different MAC address.
I tried and I wasn't able to auth.
You can change your nexus 4 MAC address with a rooted device and the app called MAC Spoofer (root) (you can find it at google play)

[Q]Changing MAC address

I don't know if this is the right category,but...I tried to change my MAC address following this tutorial:
"ip link set NAME down
ip link set NAME address ....
ip link set NAME up"
but when I write "ip link set wlan0 down" and press enter my tablet just reboots.
If I try "busybox ifconfig wlan0 hw ether ..." the address doesn't change(checked it).
Is there a WORKING method to change my MAC?
If you are wondering I am running the latest version of CM11
Bad bad bad
aveq8 said:
I don't know if this is the right category,but...I tried to change my MAC address following this tutorial:
"ip link set NAME down
ip link set NAME address ....
ip link set NAME up"
but when I write "ip link set wlan0 down" and press enter my tablet just reboots.
If I try "busybox ifconfig wlan0 hw ether ..." the address doesn't change(checked it).
Is there a WORKING method to change my MAC?
If you are wondering I am running the latest version of CM11
Click to expand...
Click to collapse
The Question is Why do you want to do this. You know the MAC address is like a serial number to your WIFI Device in the Tablet.If you Change this to match a wifi address to Anyone on the same WAN. The two devices will Conflict and Likely Cause the WAN Provider (cable company) to BAN BOTH MAC Addresses. They do this to STOP Theft of Services.
I Seriously ADVISE Leaving it be.
If you have a issue that you think changing the MAC Will help please post that issue and someone may be able to help..

[Q] problem wifi and hotspot cm11. 20140907

Hi Please help help
I'm from asia Iran
I have a problem with wifi and hotspot
Wifi saved bat not connected
I installed cm-11-20140907-UNOFFICIAL-Blefish-u8800 After the android.2.3.5
I used cm11 bat wifi to fail mac adress In settings Phone show 00:00:00:00:00:00
Please help my . Thank you.
Use ideosx5settings app to set WiFi MAC address. Then reboot and it should work . Next time use the q/a thread.
wifi problem cm11
Blefish said:
Use ideosx5settings app to set WiFi MAC address. Then reboot and it should work . Next time use the q/a thread.
Click to expand...
Click to collapse
Use ideosx5settings app bat not connected
my use all rom this web bat Except rom port official in None not connected wifi
Please help Very Important
Blefish said:
Use ideosx5settings app to set WiFi MAC address. Then reboot and it should work . Next time use the q/a thread.
Click to expand...
Click to collapse
Please help Please help
I want to help, but for me it's difficult to understand you
What have you done in IDEOS X5 Settings app? Did you change your WiFi MAC Address? Not all MAC Addresses are correct. Best use some kind of generator, like this for example.
wifi problem cm11
bat how use MAC Address Generator ?
Well, just click "generate Mac address", and you will get something like this: " 7B-31-DC-83-EB-25".
Write this into your device instead of 00-00-00-00-00-00 that you have now. And everything should work.
wifi problem cm11
Teg8 said:
Well, just click "generate Mac address", and you will get something like this: " 7B-31-DC-83-EB-25".
Write this into your device instead of 00-00-00-00-00-00 that you have now. And everything should work.
Click to expand...
Click to collapse
How Write this into your device instead of 00-00-00-00-00-00 that you have now a cm11
wifi problem cm11
Blefish said:
Use ideosx5settings app to set WiFi MAC address. Then reboot and it should work . Next time use the q/a thread.
Click to expand...
Click to collapse
Mr. Blefish
Why do not you help me!
1. Open IDEOS X5 Settings app
2. Enable "Custom HW address" option (third from the bottom)
3. Select "Wi-Fi MAC Address" option and write new MAC address
wifi problem cm11
Teg8 said:
1. Open IDEOS X5 Settings app
2. Enable "Custom HW address" option (third from the bottom)
3. Select "Wi-Fi MAC Address" option and write new MAC address
Click to expand...
Click to collapse
Thank you very much
The problem was solved
Thank you very much
Thank you very much
Thank you very much

Categories

Resources