maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N900 (https://talk.maemo.org/forumdisplay.php?f=44)
-   -   [HOWTO] N900 WiFi Hotspot (shell script version) (https://talk.maemo.org/showthread.php?t=73406)

9000 2011-05-24 18:19

[HOWTO] N900 WiFi Hotspot (shell script version)
 
1 Attachment(s)
1 Background

The advantage of using this script to build WiFi Hotspot over the packages mobilehotspot and joikuspot is that it's simple and consume less power. The original script is written by jebba, modified slightly by me for easy customization, DNS and process initialization; therefore credit still goes to him.

The reason I post this script is for those who are having technical problems with mobilehotspot or joikuspot, and for those who'd want to run a WiFi hotspot with minimum power usage.

2 Installation

The script is pretty self explanatory therefore I'll let you explore it yourself.

It can be run as root or triggered by Queen Beecon Widget. Tell me if you need help on this.

The SSID is honeypot and the password is 0000000000000. You can customize them for your own use. Note that the length of the password must be 13.

It needs packages wireless-tools and iptables, and iptables depends on kernel power. Therefore, you must be well-aware of the risk running kernel power so use it at your own risk.

Code:


#!/bin/sh
# Original script by Jebba, modified by 9000 @ talk.maemo.org
# Run this script to share your Internet connection.
# Activate your gprs0 (fone data) connection with the GUI

#run-standalone.sh dbus-send --system --type=method_call --dest=com.nokia.icd_ui /com/nokia/icd_ui com.nokia.icd_ui.show_conn_dlg boolean:false

IP_ADDR="192.168.1.1"
NETMASK="255.255.255.0"
DHCP_RANGE="192.168.1.100,192.168.1.127"
RUNFILE="/var/run/wifi_tethering.pid"
DNSMASQ="/usr/sbin/dnsmasq"
ESSID="honeypot"
PASSWORD="0000000000000"
CHANNEL="10"
HOSTIDEV="gprs0"

set -x

start wlancond

# Load modules
modprobe crc7
modprobe mac80211
modprobe wl12xx
modprobe ipt_MASQUERADE

# flush old rules
iptables -F
iptables -t nat -F

iptables -t nat -A POSTROUTING -o $HOSTIDEV -j MASQUERADE

# forward IPs
echo 1 > /proc/sys/net/ipv4/ip_forward

ifconfig wlan0 down
iwconfig wlan0 mode ad-hoc
ifconfig wlan0 up
iwconfig wlan0 essid $ESSID
iwconfig wlan0 key s:$PASSWORD
iwconfig wlan0 channel $CHANNEL
ifconfig wlan0 $IP_ADDR netmask $NETMASK up

# Setup DNS and DHCP
start-stop-daemon -S -p $RUNFILE -m -b -x $DNSMASQ -- -k -I lo -z -a $IP_ADDR -F $DHCP_RANGE -b

run-standalone.sh dbus-send --type=method_call --dest=org.freedesktop.Notifications /org/freedesktop/Notifications org.freedesktop.Notifications.SystemNoteInfoprint string:'WiFi HotSpot Activated'

3 How to turn it off

You can turn it off by using any WiFi switching applet/widget, or you could use this script (again, run as root):
Code:

#!/bin/sh
# Description: Turn WiFi on/off
# Original script from http://wiki.maemo.org/Desktop_Command_Execution_Widget_scripts
# Modified by 9000 @ talk.maemo.org on 27/6/2010
#
out=`ifconfig wlan0`
if [ $? -eq "0" ] ; then
if [ `echo "$out" | grep -c RUNNING` -gt "0" ] ; then
run-standalone.sh dbus-send --system --dest=com.nokia.icd /com/nokia/icd_ui com.nokia.icd_ui.disconnect boolean:true
fi
ifconfig wlan0 down
rmmod wl12xx
rmmod mac80211
rmmod crc7
stop wlancond
run-standalone.sh dbus-send --type=method_call --dest=org.freedesktop.Notifications /org/freedesktop/Notifications org.freedesktop.Notifications.SystemNoteInfoprint string:'Wi-Fi Disabled'
exit 2
else
modprobe crc7
modprobe mac80211
modprobe wl12xx
wl1251-cal
stop wlancond
start wlancond
iwconfig wlan0 mode managed
ifconfig wlan0 up
run-standalone.sh dbus-send --system --type=method_call --dest=com.nokia.icd_ui /com/nokia/icd_ui com.nokia.icd_ui.show_conn_dlg boolean:false
run-standalone.sh dbus-send --type=method_call --dest=org.freedesktop.Notifications /org/freedesktop/Notifications org.freedesktop.Notifications.SystemNoteInfoprint string:'Wi-Fi Enabled'
exit 0
fi

To further save the power, this script will unload unnecessary modules when WiFi is switched off. Those unloaded modules will be reloaded again when the script is run again (switching on and off).

4. Troubleshooting

4.1 Q: Password rejected.
A: The length of the password must be 13.

4.2 Q:Tell me how to setup Queen Beecon Widget
A:
1) Add new Widget
2) Choose Queen BeeCon Widget
3) Edit the Widget you've created on your desktop
4) Add Cmd
5) Enter Title: WiFi HotSpot
6) Enter Command: echo <path_to_script>/<name of the script> | root
e.g. if the path to the script is /home/user/script/ and the name of the script is open_wifi_hotspot.sh, then the line would be:
echo /home/user/script/open_wifi_hotspot.sh | root
(you need rootsh installed, but I'm sure you do)
7) Save
8) If you don't need to change the outlook of your QBW icon, you can just accept all the default and save.
9) Done

Similarly for wifi.sh:
echo /home/user/script/wifi.sh | root
wifi.sh uses exit code (2 and 0) to tell you the status of the wifi. Therefore, you'd like to config different color for different exit code. I use the following:
0 - Green, WiFi is enabled
2 - Red, WiFi is disabled

Or you could just use the default. The script would give you popup message anyway.

4.3 The module ipt_MASQUERADE isn't loaded after upgrading to kernel-power v47

The module works fine in v46. Downgrade your kernel-power. (at your own risk)

(Please reply here if you've any question. Then I'll update this section.)

EDIT: wireless-tools provides iwconfig. Revised.
EDIT: Report has it that ipt_MASQUERADE isn't loaded in kernel-power v47. Troubleshooting updated.

J4ZZ 2011-05-26 11:19

Re: [HOWTO] N900 WiFi Hotspot (shell script version)
 
I could need some help here. My Laptop is only getting a private IP so DHCP doesn't seem to work properly.
Here's my output.
Code:

IroN900:/usr/bin# wlapon
+ start wlancond
start: Job not changed: wlancond
+ modprobe crc7
+ modprobe mac80211
+ modprobe wl12xx
+ modprobe ipt_MASQUERADE
+ iptables -F
+ iptables -t nat -F
+ iptables -t nat -A POSTROUTING -o gprs0 -j MASQUERADE
+ echo 1
+ ifconfig wlan0 down
+ iwconfig wlan0 mode ad-hoc
+ ifconfig wlan0 up
+ iwconfig wlan0 essid TKX
+ iwconfig wlan0 key s:00000
+ iwconfig wlan0 channel 11
+ ifconfig wlan0 10.161.3.1 netmask 255.255.255.0 up
+ start-stop-daemon -S -p /var/run/wifi_tethering.pid -m -b -x /usr/sbin/dnsmasq -- -k -I lo -z -a 10.161.3.1 -F 10.161.3.2,10.161.3.10 -b
/usr/sbin/dnsmasq already running.
+ run-standalone.sh dbus-send --type=method_call --dest=org.freedesktop.Notifications /org/freedesktop/Notifications org.freedesktop.Notifications.SystemNoteInfoprint string:WiFi HotSpot Activated

Edit: I tried also to give static addresses (IP, Gateway and DNS) but I can't even ping my N900 from the Laptop.

Greetz,

J4ZZ

ivanrajkovic 2011-05-26 11:34

Re: [HOWTO] N900 WiFi Hotspot (shell script version)
 
Thanks, I just have a question:

If I would only want to connect to my N900 with wifi but without using it as a hot-spot (so, without gprs0), I guess I would just need to take out these lines:

HOSTIDEV="gprs0"
modprobe ipt_MASQUERADE
iptables -t nat -A POSTROUTING -o $HOSTIDEV -j MASQUERADE
echo 1 > /proc/sys/net/ipv4/ip_forward

would I need to keep:
iptables -t nat -F

I would say that I don't need iptables at all, is that right?

i.

anthonie 2011-05-26 12:12

Re: [HOWTO] N900 WiFi Hotspot (shell script version)
 
Bows in gratitude _O_

blipnl 2011-05-26 12:33

Re: [HOWTO] N900 WiFi Hotspot (shell script version)
 
So this script is executable via QBW? :) I sure hope this works, seems complicated though!

I hope I don't ask too much of you, but since i am no expert of QBW could you please import the script to a QBW-instance and upload it to post #1? (export buffer to file) That would be just great :D

9000 2011-05-27 01:41

Re: [HOWTO] N900 WiFi Hotspot (shell script version)
 
Quote:

Originally Posted by J4ZZ (Post 1015966)
I could need some help here. My Laptop is only getting a private IP so DHCP doesn't seem to work properly.
Here's my output.
Code:

IroN900:/usr/bin# wlapon
+ start wlancond
start: Job not changed: wlancond
+ modprobe crc7
+ modprobe mac80211
+ modprobe wl12xx
+ modprobe ipt_MASQUERADE
+ iptables -F
+ iptables -t nat -F
+ iptables -t nat -A POSTROUTING -o gprs0 -j MASQUERADE
+ echo 1
+ ifconfig wlan0 down
+ iwconfig wlan0 mode ad-hoc
+ ifconfig wlan0 up
+ iwconfig wlan0 essid TKX
+ iwconfig wlan0 key s:00000
+ iwconfig wlan0 channel 11
+ ifconfig wlan0 10.161.3.1 netmask 255.255.255.0 up
+ start-stop-daemon -S -p /var/run/wifi_tethering.pid -m -b -x /usr/sbin/dnsmasq -- -k -I lo -z -a 10.161.3.1 -F 10.161.3.2,10.161.3.10 -b
/usr/sbin/dnsmasq already running.
+ run-standalone.sh dbus-send --type=method_call --dest=org.freedesktop.Notifications /org/freedesktop/Notifications org.freedesktop.Notifications.SystemNoteInfoprint string:WiFi HotSpot Activated

Edit: I tried also to give static addresses (IP, Gateway and DNS) but I can't even ping my N900 from the Laptop.

Greetz,

J4ZZ

I spot you've made change to the followings:

1) The password. Note that that the length of password must be exactly 13 words.
2) You've made change to the network and the DHCP network, that would cause routing problem as the routing on your own private networking may not be able to route the wifi traffic when you get them all into the same network, unless you tells the routing table how to diffentiate different traffic. That's why you got connection problem.

Unless you're very familiar with TCP/IP routing, I'd suggest you stick to the original settings first. Make the change by trial and error later after you've successfully got the initial connection work.

9000 2011-05-27 01:47

Re: [HOWTO] N900 WiFi Hotspot (shell script version)
 
Quote:

Originally Posted by ivanrajkovic (Post 1015970)
Thanks, I just have a question:

If I would only want to connect to my N900 with wifi but without using it as a hot-spot (so, without gprs0), I guess I would just need to take out these lines:

HOSTIDEV="gprs0"
modprobe ipt_MASQUERADE
iptables -t nat -A POSTROUTING -o $HOSTIDEV -j MASQUERADE
echo 1 > /proc/sys/net/ipv4/ip_forward

would I need to keep:
iptables -t nat -F

I would say that I don't need iptables at all, is that right?

i.

Yes, you could just leave the iptables alone if you just want to connect to N900 without a tethering need.

And you don't need that modprobe ipt_MASQUERADE as well.

However, one thing you must note that if you're using Windows PC to connect to any WiFi, it always tries to make it as the default route, i.e. all internet traffice request would go to WiFi. Unless you made change to this default behaviour, you might not be able to go to internet via your private network of your PC when you're connecting to WiFi.

9000 2011-05-27 01:53

Re: [HOWTO] N900 WiFi Hotspot (shell script version)
 
Quote:

Originally Posted by blipnl (Post 1016003)
So this script is executable via QBW? :) I sure hope this works, seems complicated though!

I hope I don't ask too much of you, but since i am no expert of QBW could you please import the script to a QBW-instance and upload it to post #1? (export buffer to file) That would be just great :D

Actually I've already deleted the QBW that run open_wifi_hotspot.sh as I'm using Bluetooth-PAN tethering now, for better security (small proximity) and much lower power consumption. (you may refer to my sig for details).

However, setting up QBW for this script is very simple:

1) Add new Widget
2) Choose Queen BeeCon Widget
3) Edit the Widget you've created on your desktop
4) Add Cmd
5) Enter Title: WiFi HotSpot
6) Enter Command: echo <path_to_script>/<name of the script> | root
e.g. if the path to the script is /home/user/script/ and the name of the script is open_wifi_hotspot.sh, then the line would be:
echo /home/user/script/open_wifi_hotspot.sh | root
(you need rootsh installed, but I'm sure you do)
7) Save
8) If you don't need to change the outlook of your QBW icon, you can just accept all the default and save.
9) Done

Hope this helps.

J4ZZ 2011-05-27 10:25

Re: [HOWTO] N900 WiFi Hotspot (shell script version)
 
Thanks for replying, I got it working now.
Now I have another request, is there a way to just start and stop Hotspot with a script and keep WiFi running. What I want is to have a QBW Button to just toggle Hotspot on/off if needed, but keep my WiFi or GPRS connection running afterwards.

Thx in advance,

Greetz,

J4ZZ

9000 2011-05-27 11:06

Re: [HOWTO] N900 WiFi Hotspot (shell script version)
 
Quote:

Originally Posted by J4ZZ (Post 1016640)
Thanks for replying, I got it working now.
Now I have another request, is there a way to just start and stop Hotspot with a script and keep WiFi running. What I want is to have a QBW Button to just toggle Hotspot on/off if needed, but keep my WiFi or GPRS connection running afterwards.

Thx in advance,

Greetz,

J4ZZ

What you want to do is changing WiFi from ad hoc mode (hotspot) to managed mode. The second script wifi.sh does that, only you would need to trigger it twice to turn it off and than back on.

Or you may just run that particular line that changes the wifi back to managed.

J4ZZ 2011-05-27 11:53

Re: [HOWTO] N900 WiFi Hotspot (shell script version)
 
Brilliant mate, that did it... ;)

cheers,

..::J4ZZ::..

Edit: Yay, 200 posts reached.

ivanrajkovic 2011-05-27 14:43

Re: [HOWTO] N900 WiFi Hotspot (shell script version)
 
Quote:

Originally Posted by 9000 (Post 1016412)
Yes, you could just leave the iptables alone if you just want to connect to N900 without a tethering need.

And you don't need that modprobe ipt_MASQUERADE as well.

However, one thing you must note that if you're using Windows PC to connect to any WiFi, it always tries to make it as the default route, i.e. all internet traffice request would go to WiFi. Unless you made change to this default behaviour, you might not be able to go to internet via your private network of your PC when you're connecting to WiFi.

Thanks, I'll give it try this weekend. I need this in the case I'm on a road and have to transfer something between my laptop and N900 without a cable. I have linux on the laptop so I hope I would be able to add different routes for N900 and internet, if necessary.

Thanks again,
i.

blipnl 2011-06-01 07:01

Re: [HOWTO] N900 WiFi Hotspot (shell script version)
 
I managed to establish a connection with my N900 running this script in QBW and connecting with a N97 mini. However, I did not get internet access. Will try after reboot. And, I don't know how to make the close script into a .tar, so for me it is not possible to turn the script off :/ could this also be added in the first post in the future?

Thanks.

9000 2011-06-01 07:38

Re: [HOWTO] N900 WiFi Hotspot (shell script version)
 
Quote:

Originally Posted by blipnl (Post 1019942)
I managed to establish a connection with my N900 running this script in QBW and connecting with a N97 mini. However, I did not get internet access. Will try after reboot. And, I don't know how to make the close script into a .tar, so for me it is not possible to turn the script off :/ could this also be added in the first post in the future?

Thanks.

I don't understand here. You don't need to make the second script into tar in order to run it. BTW, both scripts are included the the .tar of the first post. You can download and untar it.

downstormaf 2011-06-04 06:27

Re: [HOWTO] N900 WiFi Hotspot (shell script version)
 
I need a little help here 9000,

I was writing the first code on installing the script, everything was going well until writing the line

iwconfig wlan0 mode ad-hoc

it returns the following,

+ iwconfig wlan0 mode ad-hoc
/bin/sh: iwconfig: not found

Is this good? is it part of the process? I'm going to keep writing the code but if there is something wrong please reply, and thanks for your help

9000 2011-06-04 06:32

Re: [HOWTO] N900 WiFi Hotspot (shell script version)
 
Quote:

Originally Posted by downstormaf (Post 1022047)
I need a little help here 9000,

I was writing the first code on installing the script, everything was going well until writing the line

iwconfig wlan0 mode ad-hoc

it returns the following,

+ iwconfig wlan0 mode ad-hoc
/bin/sh: iwconfig: not found

Is this good? is it part of the process? I'm going to keep writing the code but if there is something wrong please reply, and thanks for your help

This command helps change the mode of the WiFi interface, which is essential to the script.

I forgot to mention this is provided by the package wireless-tools. I'll revise the instructions. Thank you for your feedback.

downstormaf 2011-06-04 06:41

Re: [HOWTO] N900 WiFi Hotspot (shell script version)
 
Quote:

Originally Posted by 9000 (Post 1022048)
This command helps change the mode of the WiFi interface, which is essential to the script.

I forgot to mention this is provided by the package wireless-tools. I'll revise the instructions. Thank you for your feedback.

sorry to bother again, but I wrote every code from the installation part, still haven't done the turn off one but should i notice anything after doing that part of the code?

I'm using the WiFi Switcher (cuz I can't install Queen BeeCon from the apps manager for some strange reason), but does this work for the code?

thanks for your help again

9000 2011-06-04 06:58

Re: [HOWTO] N900 WiFi Hotspot (shell script version)
 
Quote:

Originally Posted by downstormaf (Post 1022050)
sorry to bother again, but I wrote every code from the installation part, still haven't done the turn off one but should i notice anything after doing that part of the code?

I'm using the WiFi Switcher (cuz I can't install Queen BeeCon from the apps manager for some strange reason), but does this work for the code?

thanks for your help again

Don't worry. I'm glad to help.

There's two ways to turn off the hotspot: 1) change the mode from ad hoc to managed 2) turn off the wifi interface. I'm not sure about the operation of the wifi switcher, but what the wifi.sh script is doing is to

When wifi is up (no matter it is in ad hoc or managed)
1) turn off the interface
2) unload related modules
3) stop the related process
4) notify the user wifi is turned off

When wifi is down
1) turn on the interface in managed mode
2) load related modules
3) start the related process
4) notify the user wifi is turned on


Therefore, when you run the script wifi.sh I provided, you may look at the screen for notification.

Also, if you're using QBE, you might notice the change in color of the icon as wifi.sh would return different exit code for different status.

Hope this helps.

downstormaf 2011-06-04 07:15

Re: [HOWTO] N900 WiFi Hotspot (shell script version)
 
I thank you for your help but i'm not understanding how this works right now......

1. how do i know if the code is working?
2. where can i find the package wireless-tools for the iwconfig?

i managed to download and install Queen BeeCon and did the following steps on adding the new commands, wifi hotspot and wifi. But how do I use it?

I know that this is frustrating because for me it is.... I did get the Kernel_power for my n900 just for the overclocking, I haven't used it for anything else (850mhz) and lower the voltage usage a little...

9000 2011-06-04 07:43

Re: [HOWTO] N900 WiFi Hotspot (shell script version)
 
Quote:

Originally Posted by downstormaf (Post 1022058)
I thank you for your help but i'm not understanding how this works right now......

1. how do i know if the code is working?

Discover the wifi you setup by other device.

There's no other explicit message. It is a script version with highest simplicity anyway.

Quote:

2. where can i find the package wireless-tools for the iwconfig?
Code:

root
apt-get install wireless-tools

Quote:

i managed to download and install Queen BeeCon and did the following steps on adding the new commands, wifi hotspot and wifi. But how do I use it?
You may look here: http://wiki.maemo.org/Queen_BeeCon_Widget
Quote:

I know that this is frustrating because for me it is.... I did get the Kernel_power for my n900 just for the overclocking, I haven't used it for anything else (850mhz) and lower the voltage usage a little...
That's okay. You are on the right track.

downstormaf 2011-06-04 08:19

Re: [HOWTO] N900 WiFi Hotspot (shell script version)
 
another thing i noticed when writing the code of the installation,

start wlancond

I receive the following output,

+ start wlancond
start: Job not changed: wlancond

what do i need for this? I already did the apt-get install for iptables and wireless-tools

thanks for your help

9000 2011-06-04 08:45

Re: [HOWTO] N900 WiFi Hotspot (shell script version)
 
Quote:

Originally Posted by downstormaf (Post 1022077)
another thing i noticed when writing the code of the installation,

start wlancond

I receive the following output,

+ start wlancond
start: Job not changed: wlancond

what do i need for this? I already did the apt-get install for iptables and wireless-tools

thanks for your help

That's normal, because wlancond is already start at time you start it.

downstormaf 2011-06-04 09:15

Re: [HOWTO] N900 WiFi Hotspot (shell script version)
 
I managed to see the network on the pc but when i hit connect there is no connectivity....

is there something wrong or did i miss something?

9000 2011-06-04 10:41

Re: [HOWTO] N900 WiFi Hotspot (shell script version)
 
Quote:

Originally Posted by downstormaf (Post 1022097)
I managed to see the network on the pc but when i hit connect there is no connectivity....

is there something wrong or did i miss something?

What did you see when you hit connect? You should be able to capture some screenshot here.

downstormaf 2011-06-06 05:24

Re: [HOWTO] N900 WiFi Hotspot (shell script version)
 
1 Attachment(s)
sorry for the time it took me to send you this 9000, been busy these days...

I managed to get the hotspot to show on the wifi of the pc but it doesn't seem to connect to the network, ( as you can see on the picture)...:(

Note: I changed the HotSpot name to EnderZone instead of honeypot but i let the password as default (13 ceros)

what can be wrong?

I'm using the scripts to turn off and on the wifi hotspot, copy/pasting using leafpad

another thing,
I noticed that since i've been doing this, my N900 is not detecting any wifi from the area... not even the one from my house... is there a fix for this?

thanks again for your help 9000

9000 2011-06-06 05:33

Re: [HOWTO] N900 WiFi Hotspot (shell script version)
 
Quote:

Originally Posted by downstormaf (Post 1023003)
sorry for the time it took me to send you this 9000, been busy these days...

I managed to get the hotspot to show on the wifi of the pc but it doesn't seem to connect to the network, ( as you can see on the picture)...:(

Note: I changed the HotSpot name to EnderZone instead of honeypot but i let the password as default (13 ceros)

what can be wrong?

I'm using the scripts to turn off and on the wifi hotspot, copy/pasting using leafpad

another thing,
I noticed that since i've been doing this, my N900 is not detecting any wifi from the area... not even the one from my house... is there a fix for this?

thanks again for your help 9000

Please show me the output of the following commands under CMD:

Code:

ipconfig /all
route print


downstormaf 2011-06-06 05:37

Re: [HOWTO] N900 WiFi Hotspot (shell script version)
 
Microsoft Windows [Version 6.1.7600]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\Windows\system32>ipconfig /all

Windows IP Configuration

Host Name . . . . . . . . . . . . : JoseRGonzalez
Primary Dns Suffix . . . . . . . :
Node Type . . . . . . . . . . . . : Hybrid
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No
DNS Suffix Search List. . . . . . : Belkin

Wireless LAN adapter Wireless Network Connection 2:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Microsoft Virtual WiFi Miniport Adapter
Physical Address. . . . . . . . . : 00-22-FA-F7-E6-E9
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes

Wireless LAN adapter Wireless Network Connection:

Connection-specific DNS Suffix . : Belkin
Description . . . . . . . . . . . : Intel(R) WiFi Link 5100 AGN
Physical Address. . . . . . . . . : 00-22-FA-F7-E6-E8
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
Link-local IPv6 Address . . . . . : fe80::28ec:7707:8b38:6f6a%32(Preferred)
IPv4 Address. . . . . . . . . . . : 192.168.2.4(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Lease Obtained. . . . . . . . . . : Monday, June 06, 2011 1:16:23 AM
Lease Expires . . . . . . . . . . : Thursday, July 13, 2147 8:04:58 AM
Default Gateway . . . . . . . . . : 192.168.2.1
DHCP Server . . . . . . . . . . . : 192.168.2.1
DHCPv6 IAID . . . . . . . . . . . : 369107706
DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-13-31-CD-12-00-23-8B-F3-B9-99

DNS Servers . . . . . . . . . . . : 192.168.2.1
NetBIOS over Tcpip. . . . . . . . : Enabled

Ethernet adapter Local Area Connection:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Realtek RTL8168C(P)/8111C(P) Family PCI-E
Gigabit Ethernet NIC (NDIS 6.20)
Physical Address. . . . . . . . . : 00-23-8B-F3-B9-99
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes

Ethernet adapter Bluetooth Network Connection:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Bluetooth Device (Personal Area Network)
Physical Address. . . . . . . . . : 00-24-7E-8D-59-1A
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes

Tunnel adapter 6TO4 Adapter:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Microsoft 6to4 Adapter
Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes

Tunnel adapter Local Area Connection* 19:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Microsoft 6to4 Adapter #3
Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes

Tunnel adapter Local Area Connection* 20:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Microsoft 6to4 Adapter #4
Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes

Tunnel adapter Local Area Connection* 21:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Microsoft 6to4 Adapter #5
Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes

Tunnel adapter Reusable Microsoft 6To4 Adapter:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Microsoft 6to4 Adapter #2
Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes

Tunnel adapter isatap.Belkin:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . : Belkin
Description . . . . . . . . . . . : Microsoft ISATAP Adapter
Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes

Tunnel adapter Local Area Connection* 22:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Microsoft 6to4 Adapter #6
Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes

Tunnel adapter isatap.{F97EFF86-C6C3-4F9A-B03A-8658A54AABB9}:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Microsoft ISATAP Adapter #2
Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes

Tunnel adapter isatap.{F0EF26BE-8BD1-4AE3-98D4-7460236AF4A0}:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Microsoft ISATAP Adapter #4
Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes

Tunnel adapter isatap.{D5FF5CB8-23DE-43ED-966C-FD1D3D322C65}:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Microsoft ISATAP Adapter #3
Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes

Tunnel adapter Local Area Connection* 26:

Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Teredo Tunneling Pseudo-Interface
Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes
IPv6 Address. . . . . . . . . . . : 2001:0:4137:9e76:3cc2:3a72:3107:b490(Pref
erred)
Link-local IPv6 Address . . . . . : fe80::3cc2:3a72:3107:b490%26(Preferred)
Default Gateway . . . . . . . . . : ::
NetBIOS over Tcpip. . . . . . . . : Disabled

C:\Windows\system32>route print
================================================== =========================
Interface List
33...00 22 fa f7 e6 e9 ......Microsoft Virtual WiFi Miniport Adapter
32...00 22 fa f7 e6 e8 ......Intel(R) WiFi Link 5100 AGN
30...00 23 8b f3 b9 99 ......Realtek RTL8168C(P)/8111C(P) Family PCI-E Gigabit
Ethernet NIC (NDIS 6.20)
12...00 24 7e 8d 59 1a ......Bluetooth Device (Personal Area Network)
1...........................Software Loopback Interface 1
13...00 00 00 00 00 00 00 e0 Microsoft 6to4 Adapter
19...00 00 00 00 00 00 00 e0 Microsoft 6to4 Adapter #3
20...00 00 00 00 00 00 00 e0 Microsoft 6to4 Adapter #4
21...00 00 00 00 00 00 00 e0 Microsoft 6to4 Adapter #5
18...00 00 00 00 00 00 00 e0 Microsoft 6to4 Adapter #2
36...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter
22...00 00 00 00 00 00 00 e0 Microsoft 6to4 Adapter #6
37...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter #2
27...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter #4
29...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter #3
26...00 00 00 00 00 00 00 e0 Teredo Tunneling Pseudo-Interface
================================================== =========================

IPv4 Route Table
================================================== =========================
Active Routes:
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 192.168.2.1 192.168.2.4 25
127.0.0.0 255.0.0.0 On-link 127.0.0.1 306
127.0.0.1 255.255.255.255 On-link 127.0.0.1 306
127.255.255.255 255.255.255.255 On-link 127.0.0.1 306
192.168.2.0 255.255.255.0 On-link 192.168.2.4 281
192.168.2.4 255.255.255.255 On-link 192.168.2.4 281
192.168.2.255 255.255.255.255 On-link 192.168.2.4 281
224.0.0.0 240.0.0.0 On-link 127.0.0.1 306
224.0.0.0 240.0.0.0 On-link 192.168.2.4 281
255.255.255.255 255.255.255.255 On-link 127.0.0.1 306
255.255.255.255 255.255.255.255 On-link 192.168.2.4 281
================================================== =========================
Persistent Routes:
None

IPv6 Route Table
================================================== =========================
Active Routes:
If Metric Network Destination Gateway
26 58 ::/0 On-link
1 306 ::1/128 On-link
26 58 2001::/32 On-link
26 306 2001:0:4137:9e76:3cc2:3a72:3107:b490/128
On-link
32 281 fe80::/64 On-link
26 306 fe80::/64 On-link
32 281 fe80::28ec:7707:8b38:6f6a/128
On-link
26 306 fe80::3cc2:3a72:3107:b490/128
On-link
1 306 ff00::/8 On-link
26 306 ff00::/8 On-link
32 281 ff00::/8 On-link
================================================== =========================
Persistent Routes:
None

C:\Windows\system32>

downstormaf 2011-06-06 05:41

Re: [HOWTO] N900 WiFi Hotspot (shell script version)
 
about the wifi detecting of the phone... I turned the phone on and off and managed to get the wifi of the house but the hotspot problem still persists

9000 2011-06-06 05:46

Re: [HOWTO] N900 WiFi Hotspot (shell script version)
 
From the outputs you've shown me your PC is connecting to something else rather than N900. The network of my script is 192.168.1 and your PC is connecting to a network 192.168.2.

Is it your Belkin router?

downstormaf 2011-06-06 05:54

Re: [HOWTO] N900 WiFi Hotspot (shell script version)
 
yes that is the belkin router... did the cmd command while using the house network...

I just edited the recent post while connected to the n900

9000 2011-06-06 05:57

Re: [HOWTO] N900 WiFi Hotspot (shell script version)
 
Quote:

Originally Posted by downstormaf (Post 1023022)
yes that is the belkin router... did the cmd command while using the house network...

I just edited the recent post while connected to the n900

You don't need to edit the old post, that would only confuse others.

Just post your new output here.

downstormaf 2011-06-06 05:59

Re: [HOWTO] N900 WiFi Hotspot (shell script version)
 
Here it is again using the N900 network....

Microsoft Windows [Version 6.1.7600]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\Windows\system32>ipconfig /all

Windows IP Configuration

Host Name . . . . . . . . . . . . : JoseRGonzalez
Primary Dns Suffix . . . . . . . :
Node Type . . . . . . . . . . . . : Hybrid
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No
DNS Suffix Search List. . . . . . : Belkin

Wireless LAN adapter Wireless Network Connection 2:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Microsoft Virtual WiFi Miniport Adapter
Physical Address. . . . . . . . . : 00-22-FA-F7-E6-E9
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes

Wireless LAN adapter Wireless Network Connection:

Connection-specific DNS Suffix . : Belkin
Description . . . . . . . . . . . : Intel(R) WiFi Link 5100 AGN
Physical Address. . . . . . . . . : 00-22-FA-F7-E6-E8
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
Link-local IPv6 Address . . . . . : fe80::28ec:7707:8b38:6f6a%32(Preferred)
IPv4 Address. . . . . . . . . . . : 192.168.2.4(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Lease Obtained. . . . . . . . . . : Monday, June 06, 2011 1:16:23 AM
Lease Expires . . . . . . . . . . : Thursday, July 13, 2147 8:04:58 AM
Default Gateway . . . . . . . . . : 192.168.2.1
DHCP Server . . . . . . . . . . . : 192.168.2.1
DHCPv6 IAID . . . . . . . . . . . : 369107706
DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-13-31-CD-12-00-23-8B-F3-B9-99

DNS Servers . . . . . . . . . . . : 192.168.2.1
NetBIOS over Tcpip. . . . . . . . : Enabled

Ethernet adapter Local Area Connection:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Realtek RTL8168C(P)/8111C(P) Family PCI-E
Gigabit Ethernet NIC (NDIS 6.20)
Physical Address. . . . . . . . . : 00-23-8B-F3-B9-99
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes

Ethernet adapter Bluetooth Network Connection:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Bluetooth Device (Personal Area Network)
Physical Address. . . . . . . . . : 00-24-7E-8D-59-1A
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes

Tunnel adapter 6TO4 Adapter:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Microsoft 6to4 Adapter
Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes

Tunnel adapter Local Area Connection* 19:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Microsoft 6to4 Adapter #3
Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes

Tunnel adapter Local Area Connection* 20:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Microsoft 6to4 Adapter #4
Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes

Tunnel adapter Local Area Connection* 21:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Microsoft 6to4 Adapter #5
Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes

Tunnel adapter Reusable Microsoft 6To4 Adapter:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Microsoft 6to4 Adapter #2
Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes

Tunnel adapter isatap.Belkin:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . : Belkin
Description . . . . . . . . . . . : Microsoft ISATAP Adapter
Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes

Tunnel adapter Local Area Connection* 22:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Microsoft 6to4 Adapter #6
Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes

Tunnel adapter isatap.{F97EFF86-C6C3-4F9A-B03A-8658A54AABB9}:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Microsoft ISATAP Adapter #2
Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes

Tunnel adapter isatap.{F0EF26BE-8BD1-4AE3-98D4-7460236AF4A0}:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Microsoft ISATAP Adapter #4
Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes

Tunnel adapter isatap.{D5FF5CB8-23DE-43ED-966C-FD1D3D322C65}:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Microsoft ISATAP Adapter #3
Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes

Tunnel adapter Local Area Connection* 26:

Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Teredo Tunneling Pseudo-Interface
Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes
IPv6 Address. . . . . . . . . . . : 2001:0:4137:9e76:3cc2:3a72:3107:b490(Pref
erred)
Link-local IPv6 Address . . . . . : fe80::3cc2:3a72:3107:b490%26(Preferred)
Default Gateway . . . . . . . . . : ::
NetBIOS over Tcpip. . . . . . . . : Disabled

C:\Windows\system32>route print
================================================== =========================
Interface List
33...00 22 fa f7 e6 e9 ......Microsoft Virtual WiFi Miniport Adapter
32...00 22 fa f7 e6 e8 ......Intel(R) WiFi Link 5100 AGN
30...00 23 8b f3 b9 99 ......Realtek RTL8168C(P)/8111C(P) Family PCI-E Gigabit
Ethernet NIC (NDIS 6.20)
12...00 24 7e 8d 59 1a ......Bluetooth Device (Personal Area Network)
1...........................Software Loopback Interface 1
13...00 00 00 00 00 00 00 e0 Microsoft 6to4 Adapter
19...00 00 00 00 00 00 00 e0 Microsoft 6to4 Adapter #3
20...00 00 00 00 00 00 00 e0 Microsoft 6to4 Adapter #4
21...00 00 00 00 00 00 00 e0 Microsoft 6to4 Adapter #5
18...00 00 00 00 00 00 00 e0 Microsoft 6to4 Adapter #2
36...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter
22...00 00 00 00 00 00 00 e0 Microsoft 6to4 Adapter #6
37...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter #2
27...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter #4
29...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter #3
26...00 00 00 00 00 00 00 e0 Teredo Tunneling Pseudo-Interface
================================================== =========================

IPv4 Route Table
================================================== =========================
Active Routes:
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 192.168.2.1 192.168.2.4 25
127.0.0.0 255.0.0.0 On-link 127.0.0.1 306
127.0.0.1 255.255.255.255 On-link 127.0.0.1 306
127.255.255.255 255.255.255.255 On-link 127.0.0.1 306
192.168.2.0 255.255.255.0 On-link 192.168.2.4 281
192.168.2.4 255.255.255.255 On-link 192.168.2.4 281
192.168.2.255 255.255.255.255 On-link 192.168.2.4 281
224.0.0.0 240.0.0.0 On-link 127.0.0.1 306
224.0.0.0 240.0.0.0 On-link 192.168.2.4 281
255.255.255.255 255.255.255.255 On-link 127.0.0.1 306
255.255.255.255 255.255.255.255 On-link 192.168.2.4 281
================================================== =========================
Persistent Routes:
None

IPv6 Route Table
================================================== =========================
Active Routes:
If Metric Network Destination Gateway
26 58 ::/0 On-link
1 306 ::1/128 On-link
26 58 2001::/32 On-link
26 306 2001:0:4137:9e76:3cc2:3a72:3107:b490/128
On-link
32 281 fe80::/64 On-link
26 306 fe80::/64 On-link
32 281 fe80::28ec:7707:8b38:6f6a/128
On-link
26 306 fe80::3cc2:3a72:3107:b490/128
On-link
1 306 ff00::/8 On-link
26 306 ff00::/8 On-link
32 281 ff00::/8 On-link
================================================== =========================
Persistent Routes:
None

C:\Windows\system32>

9000 2011-06-06 06:02

Re: [HOWTO] N900 WiFi Hotspot (shell script version)
 
Quote:

Originally Posted by downstormaf (Post 1023026)
Here it is again using the N900 network....
Wireless LAN adapter Wireless Network Connection:

Connection-specific DNS Suffix . : Belkin
Description . . . . . . . . . . . : Intel(R) WiFi Link 5100 AGN
Physical Address. . . . . . . . . : 00-22-FA-F7-E6-E8
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
Link-local IPv6 Address . . . . . : fe80::28ec:7707:8b38:6f6a%32(Preferred)
IPv4 Address. . . . . . . . . . . : 192.168.2.4(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Lease Obtained. . . . . . . . . . : Monday, June 06, 2011 1:16:23 AM
Lease Expires . . . . . . . . . . : Thursday, July 13, 2147 8:04:58 AM
Default Gateway . . . . . . . . . : 192.168.2.1
DHCP Server . . . . . . . . . . . : 192.168.2.1
DHCPv6 IAID . . . . . . . . . . . : 369107706
DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-13-31-CD-12-00-23-8B-F3-B9-99

DNS Servers . . . . . . . . . . . : 192.168.2.1
NetBIOS over Tcpip. . . . . . . . : Enabled

Nah...your PC is still connecting to Belkin router.

downstormaf 2011-06-06 06:17

Re: [HOWTO] N900 WiFi Hotspot (shell script version)
 
I don't know what happend but everytime i did it using the n900 connection it appeared as I showed you...

Here i managed to get the n900 one

C:\Windows\system32>ipconfig /all

Windows IP Configuration

Host Name . . . . . . . . . . . . : JoseRGonzalez
Primary Dns Suffix . . . . . . . :
Node Type . . . . . . . . . . . . : Hybrid
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No

Wireless LAN adapter Wireless Network Connection 2:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Microsoft Virtual WiFi Miniport Adapter
Physical Address. . . . . . . . . : 00-22-FA-F7-E6-E9
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes

Wireless LAN adapter Wireless Network Connection:

Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Intel(R) WiFi Link 5100 AGN
Physical Address. . . . . . . . . : 00-22-FA-F7-E6-E8
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
Link-local IPv6 Address . . . . . : fe80::28ec:7707:8b38:6f6a%32(Preferred)
Autoconfiguration IPv4 Address. . : 169.254.111.106(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.0.0
Default Gateway . . . . . . . . . :
DHCPv6 IAID . . . . . . . . . . . : 369107706
DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-13-31-CD-12-00-23-8B-F3-B9-99

DNS Servers . . . . . . . . . . . : fec0:0:0:ffff::1%1
fec0:0:0:ffff::2%1
fec0:0:0:ffff::3%1
NetBIOS over Tcpip. . . . . . . . : Enabled

Ethernet adapter Local Area Connection:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Realtek RTL8168C(P)/8111C(P) Family PCI-E
Gigabit Ethernet NIC (NDIS 6.20)
Physical Address. . . . . . . . . : 00-23-8B-F3-B9-99
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes

Ethernet adapter Bluetooth Network Connection:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Bluetooth Device (Personal Area Network)
Physical Address. . . . . . . . . : 00-24-7E-8D-59-1A
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes

Tunnel adapter 6TO4 Adapter:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Microsoft 6to4 Adapter
Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes

Tunnel adapter Local Area Connection* 19:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Microsoft 6to4 Adapter #3
Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes

Tunnel adapter Local Area Connection* 20:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Microsoft 6to4 Adapter #4
Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes

Tunnel adapter Local Area Connection* 21:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Microsoft 6to4 Adapter #5
Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes

Tunnel adapter Reusable Microsoft 6To4 Adapter:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Microsoft 6to4 Adapter #2
Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes

Tunnel adapter isatap.{A7B6C27D-3452-4883-92C8-8A08428F70E4}:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Microsoft ISATAP Adapter
Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes

Tunnel adapter Local Area Connection* 22:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Microsoft 6to4 Adapter #6
Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes

Tunnel adapter isatap.{F97EFF86-C6C3-4F9A-B03A-8658A54AABB9}:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Microsoft ISATAP Adapter #2
Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes

Tunnel adapter isatap.{F0EF26BE-8BD1-4AE3-98D4-7460236AF4A0}:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Microsoft ISATAP Adapter #4
Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes

Tunnel adapter isatap.{D5FF5CB8-23DE-43ED-966C-FD1D3D322C65}:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Microsoft ISATAP Adapter #3
Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes

Tunnel adapter Local Area Connection* 26:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Teredo Tunneling Pseudo-Interface
Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes


Microsoft Windows [Version 6.1.7600]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\Windows\system32>route print
================================================== =========================
Interface List
33...00 22 fa f7 e6 e9 ......Microsoft Virtual WiFi Miniport Adapter
32...00 22 fa f7 e6 e8 ......Intel(R) WiFi Link 5100 AGN
30...00 23 8b f3 b9 99 ......Realtek RTL8168C(P)/8111C(P) Family PCI-E Gigabit
Ethernet NIC (NDIS 6.20)
12...00 24 7e 8d 59 1a ......Bluetooth Device (Personal Area Network)
1...........................Software Loopback Interface 1
13...00 00 00 00 00 00 00 e0 Microsoft 6to4 Adapter
19...00 00 00 00 00 00 00 e0 Microsoft 6to4 Adapter #3
20...00 00 00 00 00 00 00 e0 Microsoft 6to4 Adapter #4
21...00 00 00 00 00 00 00 e0 Microsoft 6to4 Adapter #5
18...00 00 00 00 00 00 00 e0 Microsoft 6to4 Adapter #2
36...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter
22...00 00 00 00 00 00 00 e0 Microsoft 6to4 Adapter #6
37...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter #2
27...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter #4
29...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter #3
26...00 00 00 00 00 00 00 e0 Teredo Tunneling Pseudo-Interface
================================================== =========================

IPv4 Route Table
================================================== =========================
Active Routes:
Network Destination Netmask Gateway Interface Metric
127.0.0.0 255.0.0.0 On-link 127.0.0.1 306
127.0.0.1 255.255.255.255 On-link 127.0.0.1 306
127.255.255.255 255.255.255.255 On-link 127.0.0.1 306
169.254.0.0 255.255.0.0 On-link 169.254.111.106 281
169.254.111.106 255.255.255.255 On-link 169.254.111.106 281
169.254.255.255 255.255.255.255 On-link 169.254.111.106 281
224.0.0.0 240.0.0.0 On-link 127.0.0.1 306
224.0.0.0 240.0.0.0 On-link 169.254.111.106 281
255.255.255.255 255.255.255.255 On-link 127.0.0.1 306
255.255.255.255 255.255.255.255 On-link 169.254.111.106 281
================================================== =========================
Persistent Routes:
None

IPv6 Route Table
================================================== =========================
Active Routes:
If Metric Network Destination Gateway
1 306 ::1/128 On-link
32 281 fe80::/64 On-link
32 281 fe80::28ec:7707:8b38:6f6a/128
On-link
1 306 ff00::/8 On-link
32 281 ff00::/8 On-link
================================================== =========================
Persistent Routes:
None

C:\Windows\system32>

9000 2011-06-06 06:30

Re: [HOWTO] N900 WiFi Hotspot (shell script version)
 
Quote:

Originally Posted by downstormaf (Post 1023043)
Wireless LAN adapter Wireless Network Connection:

Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Intel(R) WiFi Link 5100 AGN
Physical Address. . . . . . . . . : 00-22-FA-F7-E6-E8
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
Link-local IPv6 Address . . . . . : fe80::28ec:7707:8b38:6f6a%32(Preferred)
Autoconfiguration IPv4 Address. . : 169.254.111.106(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.0.0
Default Gateway . . . . . . . . . :
DHCPv6 IAID . . . . . . . . . . . : 369107706
DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-13-31-CD-12-00-23-8B-F3-B9-99

Your PC could not acquire the IP address from N900's DHCP server it seems.

I suspect that dnsmasq is not running. Please run the following command under xterminal of your N900 and show me the result:

Code:

ps aux | grep dnsmasq
If you've problem typing the '|' in xterminal you may just use browser to copy&paste this command line to your xterminal.

Don't worry about it. If the PC is successfully connecting to your N900, the worse you might have to do is to manually configure the IP address, gateway and DNS.

downstormaf 2011-06-06 06:46

Re: [HOWTO] N900 WiFi Hotspot (shell script version)
 
Here's the output

/home/user # ps aux | grep dnsmasq
+ grep dnsmasq
+ ps aux
1769 nobody 2160 S /usr/sbin/dnsmasq -k -i lo -a 127.0.0.1 -z
2258 nobody 4224 S /usr/sbin/dnsmasq -k -I lo -z -a 192.168.1.1 -F 192.1
2410 root 2092 S grep dnsmasq

9000 2011-06-06 07:13

Re: [HOWTO] N900 WiFi Hotspot (shell script version)
 
Quote:

Originally Posted by downstormaf (Post 1023059)
Here's the output

/home/user # ps aux | grep dnsmasq
+ grep dnsmasq
+ ps aux
1769 nobody 2160 S /usr/sbin/dnsmasq -k -i lo -a 127.0.0.1 -z
2258 nobody 4224 S /usr/sbin/dnsmasq -k -I lo -z -a 192.168.1.1 -F 192.1
2410 root 2092 S grep dnsmasq

It's running fine. Do you have any firewall on your PC?

downstormaf 2011-06-06 07:15

Re: [HOWTO] N900 WiFi Hotspot (shell script version)
 
yes, avast internet security 6 + anti-virus....

9000 2011-06-06 07:16

Re: [HOWTO] N900 WiFi Hotspot (shell script version)
 
Quote:

Originally Posted by downstormaf (Post 1023077)
yes, avast internet security 6 + anti-virus....

Shut it down first. Also look at WiFi's interface, the firewall on the interface must be off.

downstormaf 2011-06-06 07:23

Re: [HOWTO] N900 WiFi Hotspot (shell script version)
 
I disabled completely the avast internet security + anti-virus, as well as the windows firewall but the results of the connection is the same....
Identifying and no internet


All times are GMT. The time now is 02:02.

vBulletin® Version 3.8.8