Link to home
Start Free TrialLog in
Avatar of Ravi Agrawal
Ravi AgrawalFlag for India

asked on

Share a USB internet connection

Two PCs running Windows XP professional.

I have a high speed USB 3G modem. This modem connects to the internet by creating a Dialup connection (not the broadband ADSL PPPoE type but the general type). The connection disappears as soon as I disconnect the USB modem from the PC. A dynamic IP address is allocated everytime I connect to the internet with it.

I would like to share it with another PC. Both PCs are connected by a Crossover LAN cable. I would not like to purchase a router.

Options I have thought of --
1. Internet connection sharing
2. Bridging the Internet connections
3. Using a proxy server
4. Using the windows netsh command to create a NAT routing solution
5. Using the route command to add a static route.

Experts Exchange search returned results that were just too old & most of the recommending a Router based solution.

Drawbacks I have thought of that might work with the above with each solution respectively--

1. ICS may be an option, but the connection disappears as soon as it is disconnects. However I am willing to go that way.
2. Same as 1.
3. I have no idea how to implement such a solution, walkthrough appreciated
4. Same as 3
5. Same as 3.

Help as always is appreciated.

Ravi.
Diagram.PNG
ASKER CERTIFIED SOLUTION
Avatar of c_a_n_o_n
c_a_n_o_n
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Ravi Agrawal

ASKER

Ok thanks, let me check them out. I'll be back if I have something to say.

Ravi.
1:http://www.annoyances.org/exec/show/ics_xp
3:http://www.reaper-x.com/2006/07/18/complete-guide-on-installing-and-configuring-squid-proxy-server-for-windows/
4. I have not done this.
5:route add 192.168.1.1 mask 0.0.0.0 0.0.0.0 metric 100 (size of metric should be higher than anything else you already have)
use route print to show current metrics.
use route add -p to make a persistent route (stay even after reboot)
 
Greg
@deepdraw

1. It won't work as diaup connection vanishes, ICS is for Ethernet

3. AnalogX proxy seems to be simpler, If I fail with that, I'll try squid

4. no problem, I had a link referring to it but it's down at the moment. Let's hope it revives...
http://gnubox.dnsalias.org/gnubox/sharing.html although not completely related to what I am trying to establish, but it did have a section regarding sharing with NAT.

5. I manage to get successful pings after issuing the route command as follows --

route add 10.168.1.0 mask 255.255.255.0 10.164.52.199 metric 100

Attached is route print file of host machine




route.txt
Sorry, hit the submit button unknowingly when not done....

Attached is ipconfig of client which is trying to share the internet connection,--

However DNS names don't resolve nor can I browse the internet. The browser is configure to use a LAN connection without proxy.

Ravi.



ipconfig.txt
Avatar of Jaredjar
Jaredjar

use internet connection sharing.Right click on modem ,advanced and share.it is the easiest solution for two pcs.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Its already there in the routing table (first entry)

I can't set it as persistent with the -p switch as the IP address is dynamic. However I guess I need to increase the metric (but since no other route with the same credentials is present, the metric value won't matter).

Any more ideas. The proxy server is working but I can't browse secure sites with it. ;-(

Ravi.

Ravi.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Greg,

I simply miss on what you say.

I am not trying to outsmart you, but I have constantly repeated that the IP address to the internet changes as soon as I disconnect, so it is not possible to set it as a static route. Even if I set it, the next time I connect, the defined route will be useless as now the modem will have been issued a new IP address.

Regarding the socks proxy, it is a paid software, so I guess money comes in there, If I need to pay money, then I'd install a router, why pay for a software solution. That's just my idea, please don't take it to heart.

Even if I don't manage to get it working that fine, I guess I've at least found a solution in part so will close it and give you your fair share of points :-)

btw, thanks for the help. I myself have earned quite many points on this site & managed to write a few articles too. Regarding static routes too, here -- https://www.experts-exchange.com/A_2507.html

This is not to make you feel low, but just to say that I completely follow what you were trying to advise but somehow I am missing something that the setup ain't working :-/

Best regards,

Ravi.
----  but I have constantly repeated that the IP address to the internet  changes as soon as I disconnect, so it is not possible to set it as a  static route. ----

should be read as

----  but I have constantly repeated that the IP address to the  internet  changes as soon as I disconnect, so it is not possible to set  it as a persistent route. ----
 
Ravi.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
:-)

I too was looking in the NAT direction. Guess will have to see how to implement it.

Regarding proxy, I have trashed the idea at least for now. So NAT remains.

Regardless to say, proxy is working,,, but I'd like to keep the Question open to find a NAT solution as XP can be used as router & I know that well.

Ravi.
Hi,

"Routing and Remote Access Services" was disabled, so probably that was the reason for not working. However, I haven't had the time to test the setup. I'll let you know the progress. Give me a few more days.

Ravi.
First off, which 3G USB modem do you use?  I would suggest just going out and purchasing a Mifi which will automatically resolve your issue as long as you have Wifi devices on your computers.  
Well its micromax mmx372g HSUPA modem backwards compatible with GPRS. The modem is no issue probably. I am little interested in purchasing additional hardware but I'll have a look at what you have suggested.

The setup works with a proxy server but I apologise for not being able to post any progress regarding the same as I had some other priorities.

I'll try to get the setup working with the netshell utility of windows but I just don't have the time to do it yet.

Ravi.
Thanks. Unfortunately, I haven't had the time to test the setup yet and so am closing the Question.

I was not able to try CCproxy but it looks promising. However AnalogX proxy did work for me.

Anyways I was looking for something more complex like creating a NAT interface and then sharing the connection but seems I am running out of time. But I  will try to make it work when I have time and will post the solution here, if I get lucky.

Everybody was a great help. Thanks again.

Ravi.
http://mhotspot.com/index.html

Upgraded to Windows 7.

This works.

Ravi.