Tutorial [HOW-TO] Have a homemade Streetpass Relay

What method you are using?

  • Linux

    Votes: 93 7.9%
  • Android

    Votes: 133 11.4%
  • Router

    Votes: 226 19.3%
  • Windows

    Votes: 426 36.4%
  • A pony with a wifi antenna O.o?

    Votes: 292 25.0%

  • Total voters
    1,170
Status
Not open for further replies.

DanteMx

Member
Newcomer
Joined
Jan 23, 2009
Messages
17
Trophies
0
XP
181
Country
United States
Ok, but how does it work? If it just does ifconfig wlan0 down/ifconfig wlan0 hw ether xxxxxxxxxxxx/ifconfig wlan0 up it won't succeed on some devices.
If it just edits a file that has the MAC in it, apparently different versions of android go about storing the MAC differently.
If you're building it on a gingerbread device it's probably editing that nvram file, so it wouldn't work on ICS/JB

I'm editing a file, specifically /data/etc/wlan_macaddr0 , I'm doing it on JB 4.2.2 but it should work in ics and gb as far as i know, any way if it doesn't that's why I'm uploading it to temp first so i could see other ways to implement it so any one can easily do it in his phone.
 
  • Like
Reactions: Sunderlol11100

BerserkLeon

Not-so-new member
Member
Joined
Mar 22, 2010
Messages
460
Trophies
1
Age
34
Location
Pennsylvania
XP
538
Country
United States
I'm editing a file, specifically /data/etc/wlan_macaddr0 , I'm doing it on JB 4.2.2 but it should work in ics and gb as far as i know, any way if it doesn't that's why I'm uploading it to temp first so i could see other ways to implement it so any one can easily do it in his phone.

Alright, well I can tell you on my Galaxy Nexus (Toro) on JB 4.3 it doesn't have such a file. It doesn't have that folder, actually. I've got a /data/misc/wifi but I don't think the MAC's there.
 

DanteMx

Member
Newcomer
Joined
Jan 23, 2009
Messages
17
Trophies
0
XP
181
Country
United States
Alright, well I can tell you on my Galaxy Nexus (Toro) on JB 4.3 it doesn't have such a file. It doesn't have that folder, actually. I've got a /data/misc/wifi but I don't think the MAC's there.
Well I haven't tried anything in 4.3 but if you found a way i can easily update the method i'm using.
my plan is to use different methods so the compatibility would be wider.
 

BerserkLeon

Not-so-new member
Member
Joined
Mar 22, 2010
Messages
460
Trophies
1
Age
34
Location
Pennsylvania
XP
538
Country
United States
Well I haven't tried anything in 4.3 but if you found a way i can easily update the method i'm using.
my plan is to use different methods so the compatibility would be wider.

Well If I knew I'd have written a guide already. :)
I'm asking around on RootzWiki to try to find someone who knows how. I've tried a number of things through adb's shell to get it to work and I just can't... so that's why I was excited to hear if your app would work.
I'll let you know if I find anything out.
 

Duo8

Well-Known Member
Member
Joined
Jul 16, 2013
Messages
3,613
Trophies
2
XP
3,030
Country
Vietnam
I'm editing a file, specifically /data/etc/wlan_macaddr0 , I'm doing it on JB 4.2.2 but it should work in ics and gb as far as i know, any way if it doesn't that's why I'm uploading it to temp first so i could see other ways to implement it so any one can easily do it in his phone.
Appearently the file location differs from kernel to kernel.
 

DarkWork0

Well-Known Member
Member
Joined
Dec 28, 2011
Messages
184
Trophies
1
XP
633
Country
United States
I was using Windows 7 Ultimate x64 with on board wifi and a virtual wifi hotspot with VRM so I can surf the net and do this without messing with my router. Unfortunately this stopped working for me yesterday as I was getting an error from VRM saying I can't change the settings, still trying to workout what went wrong and will update on my progress in case anyone else has the same problem.
 

Brodius

Well-Known Member
Newcomer
Joined
Aug 13, 2013
Messages
83
Trophies
0
XP
115
Country
United States

BerserkLeon

Not-so-new member
Member
Joined
Mar 22, 2010
Messages
460
Trophies
1
Age
34
Location
Pennsylvania
XP
538
Country
United States
No one knows the answer to this?

From what I understand your 3DS has to be able to connect to it. So either turn off security or make sure it's set up in your connection settings.
Aside from that, just wait. A number of people don't go to the personal MACs. I'll visit it tomorrow since I can't do it right now...
Also going to test my new wireless cards tomorrow on my RasPi.
 

Lyomak

Well-Known Member
Member
Joined
Jun 24, 2009
Messages
436
Trophies
1
Age
39
Location
Bogotá
Website
twitch.tv
XP
389
Country
Colombia
I'm editing a file, specifically /data/etc/wlan_macaddr0 , I'm doing it on JB 4.2.2 but it should work in ics and gb as far as i know, any way if it doesn't that's why I'm uploading it to temp first so i could see other ways to implement it so any one can easily do it in his phone.


I have CM 10.1 (JB 4.2.2) and I don't have the etc folder in /data.
 

Brodius

Well-Known Member
Newcomer
Joined
Aug 13, 2013
Messages
83
Trophies
0
XP
115
Country
United States
From what I understand your 3DS has to be able to connect to it. So either turn off security or make sure it's set up in your connection settings.
Aside from that, just wait. A number of people don't go to the personal MACs. I'll visit it tomorrow since I can't do it right now...
Also going to test my new wireless cards tomorrow on my RasPi.


Well my 3DS access' the internet wireless through it, with security on. I wasn't sure if the security would stop others from accessing it though.
 

Lyomak

Well-Known Member
Member
Joined
Jun 24, 2009
Messages
436
Trophies
1
Age
39
Location
Bogotá
Website
twitch.tv
XP
389
Country
Colombia
Use Root Explorer and search "mac", "wlan", etc.


I already did that and I couldn't find any file with a mac address on it. I don't know how is that stored in CM 10 then. Has anyone tried with a non AOSP rom? I'm tired of flashing my phone the entire day with no good results. :(
 

Sunderlol11100

Member
Newcomer
Joined
Aug 14, 2013
Messages
12
Trophies
0
Age
30
Location
Trelew
XP
52
Country
Argentina
I already did that and I couldn't find any file with a mac address on it. I don't know how is that stored in CM 10 then. Has anyone tried with a non AOSP rom? I'm tired of flashing my phone the entire day with no good results. :(
Some friends tried to search that file but they couldn't find it either :(
 

Voliver

New Member
Newbie
Joined
Aug 15, 2013
Messages
3
Trophies
0
Age
29
XP
43
Country
Brazil
Hi there!

Since there there is still no tutorial for setting up the Street Pass Relay on Windows 7, and i just recently managed to do it (with a lot of help from the info already posted on the thread), here is a quick explanation. I already sent this to the OP so he can put it on the first posts and complete the [HOW TO]. Feel free to delete this post when you do it, for clearness sake.



Street Pass Relay on Windows 7:

Requirements:
A wired connection
A Wifi card (i tested this on an old 1390 WLAN card, so i guess most should work).
Mac Shift
Virtual Router Manager
Connect your computer through your wired connection and disconnect from any wireless one.

The Setup:

Just install Virtual Router, unzip Mac Shift on an accesible folder (or just the root of your C: drive) and run the following from a command line with administrator privileges (Type "cmd" without quotes on the search box of your start menu, when the "cmd.exe" file appears, just shift-click it and select "Run as Administrator"):

Code:
netsh wlan set hostednetwork mode=allow
This will set up a Virtual Wifi Miniport on your network connections.

Then, still on command line, go to the folder where you unzipped Mac Shift (If you unzipped it on C:\, you may want to type "Cd \" without quotes) and type:
Code:
macshift -i "YOUR WIFI CONNECTION NAME"* macaddress**
*Your wifi name should be the name of your Wireless Network Adapter typed just as it appears on your "Network Connections" folder, for example, for me it was "Wireless Network Connection". Please take in mind that this should be your Wireless Network adapter name, and NOT the one of your just-created "virtual network", nor the name of your wired adapter.
** Mac Address should be typed without ":", for example, 4E53504F4F46
So, this line should look something like:
Code:
macshift -i "Wireless Network Connection" 4E53504F4F46

Run Virtual Router Manager.
Complete the network name (Should be "attwifi")
Put any password you like (remember to set up your connection on your 3DS later!).
As "shared connection", select your Wired Adapter.
Click on "Start Virtual Router", wait a few seconds, and you should get your street pass!

To cycle between MACs:
Just don't close your command line window!
Press the UP arrow to bring back your last typed command, and change the last numbers of the mac address. This will restart your network connections (I stopped the Virtual Router every time before changing my MAC and restarted ir after doing so, but i don't believe this is necessary).


Remember that, when you stop the Virtual Router, you should stop seeing the "attwifi" network, so no problem from neighbors stealing your internet (which was secured anyway). If you want to remove the Virtual Wifi Miniport, just type the following in an administrator privileged command line:

Code:
netsh wlan set hostednetwork mode=disallow

And, to return your Wifi Adapter to it's original MAC address:

Code:
macshift -i "Wireless Network Connection" -r


Enjoy!

(I hope i didn't miss anything! Please post your feedback!)

Hi there, thank you very much for this tutorial, this method is the only that works here. But I've had a few problems during the tutorial due info's lack. Above all, there's no need an Wired Connection, Wifi Connection is enough (I am using just Wifi Connection with your method, is much more practical). I was trying to sharing connection with Windows 7 Starter, but researching on google, got knowing that version insn't compatible with connection share function. After update my Windows 7 version, I still have experiencing problems to get fully work. I've had to go to Open Network and Sharing Center > Change adapter settings > Properties > Sharing Tab, marked the two box and stated the "Home network connection" with virtual wifi connection, after that, still in this tab, went to Settings and marked the box of: Internet Mail Acess Protocol Version 4 (IMAP4). I've had to do it all to get Connection Sharing and Virtual Router fully functional and get SP tags. If possible, put these infos in your tutorial. Thanks.

EDIT: Best of all, doing through this method, you can maintain the wifi's securitity.
 
  • Like
Reactions: elridge

datsui

Member
Newcomer
Joined
Jul 7, 2012
Messages
22
Trophies
0
XP
47
Country
Senegal
Hi there, thanks for the tutorial, I did it on Ubuntu and it worked perfecly, but now I'm trying to do it on Windows 7 and it doesn't work, I think that the problem is that the Hotspot needs to be without password. How can I create a Hotspot without password from Windows?

PD: With windows I have internet acces from my 3DS but when I try to use Nintendo Zone or to get Streetpass, it get disconnected from the Hotspot.

you will need to add the connection (attwifi and thepassword) into your 3ds connection list in setting
 

duke_srg

Well-Known Member
Member
Joined
Mar 1, 2011
Messages
1,862
Trophies
0
Age
44
Location
Moscow
XP
807
Country
Serbia, Republic of
Do you have suggestions for modifying the code to change the MAC address for virtual wireless (wl0.1)? I'm currently using a 2nd router as a repeater with a virtual wireless broadcasting "attwifi". My main router cannot use dd-wrt so I'm using a spare router to make this work. The 1st script is working since I notice a change in the MAC address with "ifconfig $(nvram get wl0_ifname)" but it only shows eth1 being changed (no information on wl0 or wl0.1). I don't get any streetpasses unless I manually change the mac address.

You can just change the string WLINT=$(nvram get wl0_ifname) to match your wifi interface. I'll probably add the virtual interface detection by "attwifi" name later.
 

duke_srg

Well-Known Member
Member
Joined
Mar 1, 2011
Messages
1,862
Trophies
0
Age
44
Location
Moscow
XP
807
Country
Serbia, Republic of
Updated the main script to v2, pleae use it.
The same option for Linux home_zone script will be added soon
 
Status
Not open for further replies.

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    Xdqwerty @ Xdqwerty: @K3Nv2, 4th what?