Re: Connecting to the internet



I've used wininet and it definitely expects a tcp/ip stack. It is not specifically geared towards modem or LAN - it justs wants an IP to connect to. If your LAN is working, you should just be able to specify the destination IP and let the stack take care of finding the appropriate adapter. However, for a modem, you would need to have RAS setup to make the connection and an appropriate profile setup for AutoRAS to connect, if you did not want the user to initiate the connection themselves.



r_z_aret@xxxxxxxxxxxx wrote:
On Wed, 28 Sep 2005 12:22:50 +0100, "JoeB" <joe@xxxxxxxxxxxxx> wrote:


Hi,

I need to connect my device to the internet. It has a modem and a lan connection. I would like to write software that can connect using either the modem or the lan connection.

How can i do this? I took a look at wininet.dll API but cannot figure out how to choose the connection to the net. It all seems geared towards a modem and not a lan connection, whereas i need the option to do both,


I've never used wininet, so can't say much. One big reason I haven't
used it is because it was unreliable for earlier versions of Windows
CE. I _think_ it is still unreliable.

I use WinSock. And I _think_ it assumes a tcp/ip stack exists. In
other words, it provides no tools for setting up a connection. I
_think_ wininet is similar.

I suggest separating the code that uses a connection from code that
sets up a connection. Use wininet or winsock for the former. Sorry,
but I can't help you set up a connection (I let users do that).




please someone help with this, i've been working on this for almost a month and still cannot connect!



joe



-----------------------------------------
To reply to me, remove the underscores (_) from my email address (and please indicate which newsgroup and message).

Robert E. Zaret, eMVP
PenFact, Inc.
500 Harrison Ave., Suite 3R
Boston, MA 02118
www.penfact.com


--
Tony Paille
NetStorm Consulting
paille (a t) netstorm (d o t) mb (d o t) ca
.



Relevant Pages

  • Re: Is a domain name required for accessing a personal "web site"?
    ... connection then this is possible. ... port-forwarding on your modem to forward all incoming port 80 traffic to the ... connect a modem directly into your LAN unless it has some sort of gateway ... > Any help or HOWTO re-direction would be greatly appreciated. ...
    (comp.os.linux.networking)
  • Re: Optimal network configuration
    ... modem has only 2 LAN outputs(this modem for home ... and the 'LAN B' output connected to HUB ... Internet connection configured correctly, internet works. ...
    (microsoft.public.windowsxp.network_web)
  • Optimal network configuration
    ... Small LAN: 4 PCs + network printer. ... modem has only 2 LAN outputs(this modem for home ... Internet connection configured correctly, internet works. ...
    (microsoft.public.windowsxp.network_web)
  • Re: Loss of Connectivity on Only One PC on a LAN
    ... I can't see how it could be since it's the modem which allows her to connect to the interent. ... I wish there was an easier way to do this, as this annoys the other user on the LAN, but I haven't found one... ... when I click on SETTINGS on that Internet Connection Sharing portion of that advanced panel. ... I use a LAN connection which consists of two PCs each connected to a Linksys BEFSR 41 Router. ...
    (microsoft.public.windowsxp.network_web)
  • Re: Connecting to the internet
    ... >modem or the lan connection. ... I've never used wininet, so can't say much. ...
    (microsoft.public.windowsce.embedded)

Quantcast