maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   General (https://talk.maemo.org/forumdisplay.php?f=7)
-   -   WLAN connection over LAN-PC (https://talk.maemo.org/showthread.php?t=3578)

MarcusHH 2006-11-29 17:02

WLAN connection over LAN-PC
 
Hi :)

I have sometimes problems with my router und I want to use over a peer to peer network the internet for my 770.

Some ideas?

Thank!

Drewvt 2006-11-29 17:32

Not sure about the former - not enough information there my friend - but the only available P2P program, I think, is Nicotine, which connects to the Soulseek network. It's on Maemo.org in the application list.

Texrat 2006-11-29 20:34

I have been told one can create ad hoc networks between 770 and a PC, but I have yet to see clear, robust instructions on how to accomplish it...

superbondbond 2006-11-29 21:25

I did this kind of thing for a long time before I bought my wireless router. I had a PC running Linux with two network cards (wired and wireless), and bridged them using an iptables scripts. This was before I had my 770, but I connected my laptop that way with no problems.

For example. You have a PC with two network interfaces. a wired one that connects to the internet (IP by ISP), and a wireless one (IP 192.168.0.1)

You set up your 770 with an IP address 192.168.0.2, and specify 192.168.0.1 as the gateway. You also have to manually enter DNS address (supplied by your ISP).

Back on the PC, you bridge the two interfaces. (I think in Windows you can simply select the interfaces and tell it to bridge the connections).

The downside is you have to set everything up manually. (unless you're PC is running Linux, you could run a small DHCP server like dnsmasq)

Texrat 2006-11-29 22:58

I should have specified: the problem I'm having has to do with the host PC getting an IP via DHCP. Since the IP is dynamic, I don't see how to configure what you're talking about.

superbondbond 2006-11-29 23:38

Quote:

Originally Posted by Texrat
I should have specified: the problem I'm having has to do with the host PC getting an IP via DHCP. Since the IP is dynamic, I don't see how to configure what you're talking about.

What I was describing earlier the host PC had two network cards installed, so in reality that computer had two IP addresses (one for each network card). The wired (ethernet) card was issued an IP address via DHCP. The wireless card I configured with a static IP of my choosing (192.168.0.1), and then along with my desired SSID, encryption, etc.

If you did this in Windows, then you would go to you Network Connections window, select the two connections, then right-click and select "Bridge Connections"

I hope that helps explain it a bit better. :)

MarcusHH 2006-11-30 00:03

Thanks for the information.
IP and .... already done.
But I have problems with the "Bridge Connection", WIN XP
IP conflikt :-(

superbondbond 2006-11-30 02:30

Quote:

Originally Posted by MarcusHH
Thanks for the information.
IP and .... already done.
But I have problems with the "Bridge Connection", WIN XP
IP conflikt :-(

Check that the IP is not the same on both adapters. ;)

MarcusHH 2006-11-30 02:53

The LAN-IP is from the router and the WLAN-IP is 192.168.0.1

superbondbond 2006-11-30 03:14

Quote:

Originally Posted by MarcusHH
The LAN-IP is from the router and the WLAN-IP is 192.168.0.1

first, check that the LAN-IP from the router is not 192.168.0.1
if it is, then change the wireless IP to 192.168.1.1
then set your 770 address to 192.168.1.2
also on your 770, set your gateway to 192.168.1.1

make sense?
good luck ;)

MarcusHH 2006-11-30 03:29

Thanks, but the LAN-IP is 10.0.0.1

superbondbond 2006-11-30 05:55

I'm not sure why it's not letting you bridge the connections then.

I don't really use Windows that much....

Sorry. :(

Karel Jansens 2006-11-30 11:25

Below is the link to the instructions I followed to create a temporary wireless ad-hoc network for NokiLLO. I used it when I stayed at a friend's who didn't have either a wireless router or a Linux computer.

It worked, but don't expect the kind of range you get from a router (I used a USB WiFi adapter): the connection was only marginally better than typical Bluetooth ranges.

http://www.microsoft.com/windowsxp/u...mspx?pf=trueHi

Drewvt 2006-11-30 11:42

Quote:

Originally Posted by Karel Jansens
It worked, but don't expect the kind of range you get from a router (I used a USB WiFi adapter): the connection was only marginally better than typical Bluetooth ranges.

Ah, so I was right about the range? I was kinda wondering how that turned out for you.

Karel Jansens 2006-11-30 13:59

Quote:

Originally Posted by Drewvt
Ah, so I was right about the range? I was kinda wondering how that turned out for you.

Yes, you were right (did I forget to thank you? I often do). The reason is probably that WiFi cards/USB sticks are geared towards reception, as uploads are generally less important to the typical user.

OTOH, I might be talking complete cobblers here...

dino 2006-11-30 14:06

Not that this relates to the original problem, but someone mentioned bridging two network cards in Linux.

I use a free firewall program called Firestarter. It's GUI based and makes bridging cards in Linux a point-and-click experience. I use it to get my 770 on the internet thru a USB Bluetooth device on a Linux box that's hard wired to a LAN.

Texrat 2006-11-30 14:25

I'm not sure if that will work for me. I do have a wired and wireless card (as well as bluetooth) but this is a work laptop and I have to use DHCP on both adapters. If there's a way to create a PAN for 770 use under that circumstance I'd love to see it. That would solve a huge problem I encountered in trying to use the tablet for work purposes.

superbondbond 2006-11-30 16:37

Quote:

Originally Posted by dino
Not that this relates to the original problem, but someone mentioned bridging two network cards in Linux.

I use a free firewall program called Firestarter. It's GUI based and makes bridging cards in Linux a point-and-click experience. I use it to get my 770 on the internet thru a USB Bluetooth device on a Linux box that's hard wired to a LAN.

Precisely. I was trying to explain things as "Windows-centric" as I could. But that's how I did it too. (my preference was Jay's Firewall)

dino 2006-12-01 15:14

1 Attachment(s)
This is how I get my 770 online at work.
)Pop a copy of the Linux live CD BackTrack in a spare computer and boot it up.

)Set up the LAN. It might even do it automaticaly for you with DHCP.

)From a USB stick copy the scripts dinoBluecomputer.sh, dinoBluecomputer2.sh, and firestarter.mo to the computer.

)Use the command "uselivemod firestarter.mo" to install firestarter.
NOTE: Be sure to use a copy of firestarter.mo. The "uselivemod" command will move the file so you don't want to use the one on the USB drive.

)Run "dinoBluecomputer.sh".

)When prompted "Start the Nokia and hit a key to continue." run dinoBlueUp.sh from the Nokia.

)On the computer hit a key to continue. The command "pand -l" should show the MAC id of the Nokia 770.

)Now run firestarter and click the "Enable internet sharing". There is a DHCP option also, but I've never used it.

)On the Nokia you need to bring up the network connection "Default". I can't remember how to set up the Default. Somewhere on this site is the commands need to create Default. Maybe some one can chime in at this point.

You would only need to use DHCP for the LAN connection because nothing is being changed on the actual laptop harddrive.

Quote:

slax nokia # cat ./dinoBluecomputer.sh
#!/bin/sh
hciconfig hci0 up
sleep 5
pand -s -r NAP
echo "Start the Nokia and hit a key to continue."
read key
./dinoBluecomputer2.sh
echo "Now run firestarter."
Quote:

slax nokia # cat dinoBluecomputer2.sh
#!/bin/sh
ifconfig bnep0 192.168.2.1 netmask 255.255.255.0 broadcast 192.168.2.255
Quote:

slax nokia # cat ./dinoBlueUp.sh
#!/bin/sh
# use gainroot to become root and relaunch itself
if [ `id -u` != 0 ] ; then
#if not already root, call itself as root
sudo gainroot <<EOF
$0 $*
EOF
exit
fi
# real script follows
BTADDR='xx:xx:xx:xx:xx:xx'
IP=192.168.2.2
GW=192.168.2.1
NS=192.168.2.1
IFACE=bnep0

#insmod just to be sure
insmod /mnt/initfs/lib/modules/current/bnep.ko
#start PAN Bluetooth connection
pand --connect $BTADDR

# wait for the interface created by pand
s=60
echo -n "Waiting $s secs for $IFACE"
while [ $s -gt 0 ] ; do
ifconfig $IFACE >/dev/null 2>&1 && break
s=$((s-1))
echo -n "."
sleep 1
done
echo
if ifconfig $IFACE >/dev/null 2>&1 ; then
# bring it up
echo "OK, bringing $IFACE up"
ifconfig $IFACE $IP up
route add default gw $GW
echo "nameserver $NS" >/tmp/resolv.conf.lo
else
echo "Error: $IFACE not available."
fi
Quote:

slax nokia # cat ./dinoBlueDown.sh
#!/bin/sh
# use gainroot to become root and relaunch itself
if [ `id -u` != 0 ] ; then
#if not already root, call itself as root
sudo gainroot <<EOF
$0 $*
EOF
exit
fi
# real script follows
echo -n '' >/tmp/resolv.conf.lo
pand -K
sleep 1
rmmod bnep

bobpaul 2007-01-29 22:13

Re: WLAN connection over LAN-PC
 
Quote:

Originally Posted by Karel Jansens (Post 25997)
The reason is probably that WiFi cards/USB sticks are geared towards reception, as uploads are generally less important to the typical user.

Sorry, but I'm a stickler for details and this is an area of semi-expertise. :D The problem is the antenna. There's not really anything about a wireless card that can be done to make it prefer reception or sending, but cards tend to have more craptastic antennas that routers.

This means that, especially a USB stick style card, will be "quieter". This isn't a big deal, because the router has better antennas. Better antennas mean it can "hear" the "quite" signals better, and it can also "shout" a lot louder so the crappy antennas in the USB stick can hear it.

The Nokia most definitely has as crappy an antenna as any USB stick. A PCI card with a removable antenna would be a much better mate than a USB stick.

Power output might play an effect here as well, as a USB stick probably doesn't send as much signal to the antenna, but the whole concept remains the same.

Karel Jansens 2007-01-29 22:56

Re: WLAN connection over LAN-PC
 
Quote:

Originally Posted by bobpaul (Post 32343)
Sorry, but I'm a stickler for details and this is an area of semi-expertise. :D The problem is the antenna. There's not really anything about a wireless card that can be done to make it prefer reception or sending, but cards tend to have more craptastic antennas that routers.

This means that, especially a USB stick style card, will be "quieter". This isn't a big deal, because the router has better antennas. Better antennas mean it can "hear" the "quite" signals better, and it can also "shout" a lot louder so the crappy antennas in the USB stick can hear it.

The Nokia most definitely has as crappy an antenna as any USB stick. A PCI card with a removable antenna would be a much better mate than a USB stick.

Power output might play an effect here as well, as a USB stick probably doesn't send as much signal to the antenna, but the whole concept remains the same.

Thanks, I'll sleep easier now. :D :D :D :D :D :D :D

(Really: I'm only joking. Your contribution was, in fact, quite revealing. I'm a weird one, me; just ask Texrat :cool: )

bac522 2007-01-30 00:51

Re: WLAN connection over LAN-PC
 
Quote:

Originally Posted by bobpaul (Post 32343)
Sorry, but I'm a stickler for details and this is an area of semi-expertise. :D The problem is the antenna. There's not really anything about a wireless card that can be done to make it prefer reception or sending, but cards tend to have more craptastic antennas that routers.

This means that, especially a USB stick style card, will be "quieter". This isn't a big deal, because the router has better antennas. Better antennas mean it can "hear" the "quite" signals better, and it can also "shout" a lot louder so the crappy antennas in the USB stick can hear it.

The Nokia most definitely has as crappy an antenna as any USB stick. A PCI card with a removable antenna would be a much better mate than a USB stick.

Power output might play an effect here as well, as a USB stick probably doesn't send as much signal to the antenna, but the whole concept remains the same.

Well I am an expert having been involved with the IEEE 802.11 working group that first develop wireless technology. Not the most engineering specific response (don't seem to recall the word "craptastic" in the spec) but for the most part fairly accurate. Besides I tend to throw out too much dB, dBi, and antenna fresnel zones equations so you're probably better off with his answer :D !

bobpaul 2007-01-30 01:26

Re: WLAN connection over LAN-PC
 
yeah, my electromagnetics professor wouldn'thave approved :D


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

vBulletin® Version 3.8.8