PDA

View Full Version : Sharing desktop's internet ad-hoc style


Shuruga2
06-17-06, 08:40 PM
Please help. It's taken me two days just to get my comp to recognise another ad-hoc device (in this case a Palm TX).

Unfortunately they're not playing nice just yet.
1) I have to manually initialize the ad-hoc connection every time and the palm needs to be 'broadcasting' first. I would like to have the pc in an 'always on' state so that I dont have to go to the pc to use the palm.

2) They arent sharing. I want all this to work so I can use the web functions of the palm. At this point I've tried enabling ICS, bridging connections, bridging conections and ICS, and using Analogx Proxy.
ICS wants to set my pc ip to 192.168.0.1, thats the ip of my smoothie
Bridging connections removes my net access
Analogx Proxy doesnt appear to do anything, that could be because it seems to sense my wireless card as the 'main' one and if it's looking for the web there that will be a problem. I cant really tell tho.


This is all on Win Xp Pro. This is a cut-n-paste of my ipconfig:
Windows IP Configuration

Host Name . . . . . . . . . . . . : ******
Primary Dns Suffix . . . . . . . :
Node Type . . . . . . . . . . . . : Unknown
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No

Ethernet adapter Local Area Connection:

Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : NVIDIA nForce MCP Networking Controller
Physical Address. . . . . . . . . :****************
Dhcp Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
IP Address. . . . . . . . . . . . : 192.168.0.195
Subnet Mask . . . . . . . . . . . : 255.255.255.0
IP Address. . . . . . . . . . . . : fe80::250:8dff:fee5:b78f%9
Default Gateway . . . . . . . . . : 192.168.0.1
DHCP Server . . . . . . . . . . . : 192.168.0.1
DNS Servers . . . . . . . . . . . : 192.168.0.1
fec0:0:0:ffff::1%4
fec0:0:0:ffff::2%4
fec0:0:0:ffff::3%4
Lease Obtained. . . . . . . . . . : Saturday, June 17, 2006 9:26:36 PM
Lease Expires . . . . . . . . . . : Saturday, June 17, 2006 10:26:36 PM

Ethernet adapter Wireless Network Connection 2:

Media State . . . . . . . . . . . : Media disconnected
Description . . . . . . . . . . . : Wireless-G PCI Adapter with SRX
Physical Address. . . . . . . . . : *********************

Tunnel adapter Teredo Tunneling Pseudo-Interface:

Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Teredo Tunneling Pseudo-Interface
Physical Address. . . . . . . . . : *********************
Dhcp Enabled. . . . . . . . . . . : No
IP Address. . . . . . . . . . . . : fe80::5445:5245:444f%5
Default Gateway . . . . . . . . . :
NetBIOS over Tcpip. . . . . . . . : Disabled

Tunnel adapter Automatic Tunneling Pseudo-Interface:

Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Automatic Tunneling Pseudo-Interface

Physical Address. . . . . . . . . : C0-A8-00-C3
Dhcp Enabled. . . . . . . . . . . : No
IP Address. . . . . . . . . . . . : fe80::5efe:192.168.0.195%2
Default Gateway . . . . . . . . . :
DNS Servers . . . . . . . . . . . : fec0:0:0:ffff::1%4
fec0:0:0:ffff::2%4
fec0:0:0:ffff::3%4
NetBIOS over Tcpip. . . . . . . . : Disabled


I've considered just using this card as the orange of my smoothie but it doesnt appear to be supported and that seems like it would take a little control out of my hands.

I'm sure that someone will be inclined to point out how much easier this would all be if I just purchased a wifi router since they're so cheap now. That's mostly what I've seen in trying to find a solution for this. That is not what I'm interested in doing.

Thanks for looking.


Edit: Wireless card is a Linsys WMP54GX
Network setup: modem->smoothie->switch->My PC->wireless card
........ .......... .. .... .................... ........... ........->GFs laptop (hardwired)
........ ........ ........ ................ ... ..... ..... ... .....->xbox

Incesticide
06-18-06, 03:50 AM
Alright, you need to do a couple things here. First you need to change the IP address range of your smoothwall to something like 192.168.1.0/24, due to IP not allowing the same network to be routed to itself. After you have done that, you can enable ICS on the wireless connection, and either let your palm auto-assign itself an IP, or manually assign it an IP inside the 192.168.0.0/24 range, that is not the ICS adapters address (192.168.0.1). Make sure to set your default gateway to 192.168.0.1, and then you can use your ISP's dns servers, or your smoothwall's IP address. I'm not sure if ICS does DNS proxy.

As far as the analog X proxy goes, as long as you set different IP ranges on your adapters, don't give the wireless adapter a default gateway, and you leave analog X in the "insecure mode," there is no reason it shouldn't work (note that this configuration is not insecure due to your host not being internet facing).

Shoot me an e-mail if you need more help, or clarification, or whatever, as I don't come around these forums very often. gus NOSPAM gusgizmo.org

Shuruga2
06-18-06, 08:32 PM
Thanks for the help.
I’ve now reconfigured the smoothie to 192.168.0.4
The wired nic is now 192.168.0.1
The wireless nic is 192.168.1.191, it is sharing the internet connection and does not have a default gateway
The proxy is bound to 192.168.0.1 and is correctly directing traffic from the pc
The palm is able to connect to the ad hoc network
The palm is set to a static ip of 192.168.0.192 and router (doesn’t use default gateway) 192.168.0.191 with dns set to 192.168.0.4
The palm browser is set to use 192.168.0.191 port 6588 as it’s proxy
The palm is not able to use the web



The proxy only works when it is set to 192.168.0.1 and only directs traffic when the proxy setting of the browser are set to look for that address. If the proxy is bound to 192.168.0.191 it does not direct traffic

Changing the dns settings of the palm to 192.168.0.1 did not effect anything.

The palm and pc both report being connected, the pc saying a strong connection but the palm gives no indication of strength.

The pc is showing traffic when I attempt to surf from the palm, but only received, not sending..
There is no software firewall running.
And yes the palm works fine, I can connect to my neighbors WAP and browse.

Shuruga2
06-21-06, 09:25 PM
Alright, you need to do a couple things here. First you need to change the IP address range of your smoothwall to something like 192.168.1.0/24, due to IP not allowing the same network to be routed to itself. After you have done that, you can enable ICS on the wireless connection, and either let your palm auto-assign itself an IP, or manually assign it an IP inside the 192.168.0.0/24 range, that is not the ICS adapters address (192.168.0.1). Make sure to set your default gateway to 192.168.0.1, and then you can use your ISP's dns servers, or your smoothwall's IP address. I'm not sure if ICS does DNS proxy.

OK, after re-reading the instructions this morning I set the smoothie to 192.168.1.1 and my computer to 192.168.0.1. After this I was no longer able to connect remotely to the smoothwall though I was able to ping it.
Is there something I'm doing wrong?

klingens
06-22-06, 03:18 AM
You should be able to set a static IP for your ICS "router". Ie. set the wireless NIC on the PC to 192.168.1.1 manually, and set the Palm to 192.168.1.2. THen you can keep the smoothwall at 192.168.0.1

What you're doing wrong is that your NICs of various devices which are directly connected aren't in the same subnet, which is why you can't connect to ssh. I guess smoothwall only allows ssh connections from the local subnet as it should.
To recap:
smoothwall: 192.168.0.1
PC wired NIC: 192.168.0.2
PC wireless: 192.168.1.1
Palm: 192.168.1.2
All IPs set statically.

Since you want to use ICS, remove the proxy, it's unecessary.

Shuruga2
06-22-06, 06:54 AM
ICS requires that my wired nic has 192.168.0.1, but other than that I'll give it a try.

Shuruga2
06-22-06, 07:25 AM
Ok, this is showing some improvement as the connection status is actually showing data going back out to the palm.

So:
Smoothwall: 192.168.0.4
PC: 192.168.0.1 Gateway 192.168.0.4 DNS 192.168.0.4
Wireless: 192.168.1.1 Gateway: ? DNS: ?
Palm: 192.168.1.2 Router: ? DNS: ?

I have tried setting the wireless gateway to blank, 192.168.0.1, and 192.168.0.4. Same with the DNS.
I have tried setting the Router to 192.168.1.1 and 192.168.0.1.

Things are improving, please help me get this.