[Q] How to make WIFi connection on C++? - Windows Mobile Software Development

I need programmaticaly connect 2 devices on Windows Mobile (ad hoc). How I can to do this? I try to use this, but it return true, exit and connection doesn't establish. I know it also possible with WZC functions, but I cannot find any examples.
Thank you.

Related

Use Hermes as WiFi Hotspot

Hey everyone. I'm looking for a way to turn my Hermes into a mobile hotspot. Be rather handy to make my PSP playable online wherever I happen to be sitting, like work for example....
Does anyone know of a way to do this? Internet connect allows me to connect via USB or Bluetooth, but not WiFi, so if there's a workaround or a magical piece of software that will allow this to happen, I'd love to hear about it.
Cheers team
This would be cool.. will also look now for something like this..
from my looking into the same idea it can't be done under windows mobile due to the MS TCP/IP stack.
maybe if linux for the Hermes gets serious then it will work but probably only multi client peer to peer mode rather than ap mode.
please pove me wrong as I think it is a killer app idea for 3G devices like the hermes.
Damn. How does the MS TCP/IP stack prevent it from doing that? I'm not questioning what you say, just wondering what the mechanics are that stop it? I'm realistic about what it could do, in that I'd only be able to connect one device at a time as opposed to it operating as a fully fledged router. I'm surprised this kind of functionality has been overlooked by Microsoft, as I'm sure other people who use WM devices would look for this kind of functionality also, not just people slacking off at work with a PSP or DS
The XDA gurus who figured out the VoIP over 3G or WiFi may have a deeper insight to this.
it is possible to use hermes as a router over bluetooth
kivimart said:
it is possible to use hermes as a router over bluetooth
Click to expand...
Click to collapse
Yes. It's possible to do this:
Internet<->RAN(3G)<->Bluetooth<->Laptop,etc
But I think the original poster is asking whether this is possible:
Internet<->RAN(3G)<->Wi-Fi<->Laptop, etc
..or at least that's what I would like to be able to do...
Of course
It's possible. So think about an ad-hoc network. PC-PC and internet sharing gets you out to the web.
Same kind of scenario could apply, but the device doesn't necessarily need to be able to complete the routes. The bluetooth PAN network already does this, and if you have 3G, WiFi isn't usually going to be connected to a network that's much faster.
Only problem the family will be upset when you leave the house, if that's a factor for your setup.
The Internet Sharing feature could be leveraged to provide this functionality, but USB and BT are the only ways to connect with the stock application. That would be an excellent basis for this new application, though.
silverfox0214 said:
The Internet Sharing feature could be leveraged to provide this functionality, but USB and BT are the only ways to connect with the stock application. That would be an excellent basis for this new application, though.
Click to expand...
Click to collapse
this has been poss for a long time by using a PC to do the DHCP and roting to share a WAN connection from the phone. The question (at least how I read it) is asking about the phone routing and sharing its WAN connection over wifi to one or more clients that may not even be PCs (game devices etc)
can't be done IMHO

How can I share my 3G with wifi?

Can some one tell me how to share my 3G connection over wifi? I need to make the phone as a portable access point.
no can do.
Bluetooth or USB
Try hitchhiker it's free! but I'm not sure if it works for sharing using 3G... try it and let me know http://www.kasuei.com/hitchhiker/
No, It doesn't support to share the 3G connection.
So use Internet sharing over BT ?
Would like to use it as a wireless access point, so I can get access from computer and iPhone, seem like I have hard time to find a solution.
share the connection with the PC by USB. Put a wifi stick/pcicard in the PC and bridge the connections, then the iFoon can have 3G too
Maarten_NL said:
share the connection with the PC by USB. Put a wifi stick/pcicard in the PC and bridge the connections, then the iFoon can have 3G too
Click to expand...
Click to collapse
you got this to work?
or are you saying it should work?
i have tried to share a connection this way but have had no luck when using internet connection sharing/pan.
i did get it to work this way back in the day when the phone ran wm5 and had dun.
do you have any pointers on how to get internet connection sharing in wm6 to let more than one device connect to the 3g connection?
acem77 said:
you got this to work?
or are you saying it should work?
i have tried to share a connection this way but have had no luck when using internet connection sharing/pan.
i did get it to work this way back in the day when the phone ran wm5 and had dun.
do you have any pointers on how to get internet connection sharing in wm6 to let more than one device connect to the 3g connection?
Click to expand...
Click to collapse
seems like you may need an app on your pc to manage/route the connections not sure if this helps but you can try "network Magic" it give you a bit more options on the pc side for managing connections. would like to see where this goes for possible future applications. i'll give it a try when i have some free time and check with an comp tek friend of mine see what he thinks.
Yeah it sucks that no one has created a way to share the wifi connection just like we share bluetooth or usb.
We also need a proxy server that we can run on our phone.
ok, for me the boring part is the time of the connection, you can share via wifi by just turning on your internet sharing in whatever the pc connection, you just need to manually deffine your hermes wifi to 192.168.0.1 and it shares via internet sharing! The question here is that the connections stops after 10 minutes becouse of the warnig "check usb cable connection". Its very irritating to have to start connection every 10 min. !!!!!
awww...iPhones not fast enough Data-Wise for ya?
thought it was supposed to "revolutionize PDA Phones"
hah.
sorry, i had to add my 2ยข against Apple.
Beware, some mobile provider allready use NAT, thus you'll recieve a non-routable IP. I am not sure that you will be able to share a connection of this kind.

Sharing internet over wifi through Activesync?

Hi,
I've got a PC, a laptop with wifi and my Artemis.
Now, I connect to the internet on my PC through cable, and I use Activesync (through USB) to do internet-stuffs on my phone.
But now I'd like to share the internet on the phone through wifi with my laptop?
Is this possible?
I've seen the hack to change the internet sharing "PC connection" from bluetooth to wifi (regedithack Privateinterface), but the "network connection" only shows my GPRS-connection, not Activesync.
How can I change that?
I *assume* I need to change the registry-key for PublicInterface?
But into what do I need to change it?
Or do I need some kind of proxy-software or something?
Nobody has an idea?
help
hey man i'd like to know that too, if you figured it out some way please tell me how to do it, thank you.
i would also like to know.
Me too, but i think its imposible w/o additional software on ppc.
I'd be really glad to hear there's a solution to this too, as I need to use Activesync simultaneously with allowing internet access to my laptop (would save me a few bob on mobile BB when I'm out in the car).
n4p1 said:
Me too, but i think its imposible w/o additional software on ppc.
Click to expand...
Click to collapse
However its done, count me in. Any idea if/where this software can be found.
Regards all,
Simon.

[Q] Mango as proxy server

Hi,
I'm stuck for a while without internet access except via 3G. I've got a dev phone running the Mango beta 2.
I was wondering if anyone had an idea about how I could make a proxy server or any other kind of tethering for it.
I was looking to use HttpListener or Sockets.Listen but both are unavailable for the phone.
I thought I might have to make a server application for the laptop that has a proxy server listening port and a phone listening port then have an application on the phone that connects to the server app. Once established, pass requests on from the laptop app to the phone app and get the phone to do the requests.
Unfortunately, my knowledge of how to do this over sockets is limited and if anyone could give me some advice I'd be grateful.
Cheers
Depending on which phone you have it might be possible to switch into teethering mode in the MFG app (usually installed by dialing ##634#).
HTC 7 Trophy .. I'm not aware of a way to use tethering on that.
PhantomNZ said:
HTC 7 Trophy .. I'm not aware of a way to use tethering on that.
Click to expand...
Click to collapse
Do you have a old Windows mobile 6.5 device sitting around ? Then for the temp window you need it, switch ESN/SIM to your 6.5 device, wi-fi teather, then swap back ESN/SIM when you need it...
Depending on your carrier....I know with Verizon, I can change hardware on-line
I'm unaware of how the network stack works in WP7.
If you're connected to WiFi, in your application can you choose to use 3G or WiFi? Maybe there are some P/Invoke calls you could do?
If so, then connect your phone to a router ... same with your laptop. Then relay HTTP(S) between the two connections.
Otherwise, we'll need to be able to execute native applications.

Tethering help needed - Bluetooth access for all Apps or enable Ad Hoc Wifi

I am looking for help to resolve basically the only issue I have not been able to figure out through these great forums or otherwise.
It seems that getting the tablet to work with an AdHoc network is not yet possible. I have seen comments stating that it may be possible through CyanogenMod. Can anybody confirm this? Or has another way been discovered to allow us to connect to AdHoc wifi networks?
Otherwise, does anybody know how to get ALL apps to recognize the Bluetooth internet connection? I have a Verizon phone running FoxFi and I am thethering via PdaNet Tablet when using Bluetooth; using FoxFi and stock wifi connection for wifi. Some apps will recognize the internet connection while others will not. Is there some way to point all apps to the Bluetooth internet connection?
Thank you in advance for your input.
jal301 said:
I am looking for help to resolve basically the only issue I have not been able to figure out through these great forums or otherwise.
It seems that getting the tablet to work with an AdHoc network is not yet possible. I have seen comments stating that it may be possible through CyanogenMod. Can anybody confirm this? Or has another way been discovered to allow us to connect to AdHoc wifi networks?
Otherwise, does anybody know how to get ALL apps to recognize the Bluetooth internet connection? I have a Verizon phone running FoxFi and I am thethering via PdaNet Tablet when using Bluetooth; using FoxFi and stock wifi connection for wifi. Some apps will recognize the internet connection while others will not. Is there some way to point all apps to the Bluetooth internet connection?
Thank you in advance for your input.
Click to expand...
Click to collapse
you need to recompile the kernel to add ibss to the wifi driver and recompile wpa_supplicant to recognize ad-hoc.
If you don't want to do this, most versions of aokp/cm will have it working.
if you are using foxfi, you shouldn't need to worry about ad-hoc
sfhub said:
you need to recompile the kernel to add ibss to the wifi driver and recompile wpa_supplicant to recognize ad-hoc.
If you don't want to do this, most versions of aokp/cm will have it working.
if you are using foxfi, you shouldn't need to worry about ad-hoc
Click to expand...
Click to collapse
I may be falsely assuming that it is an ad-hoc issue just due to what I have read from others commenting on the issue (re: your comment about FoxFi).
I am going to start by trying one of the more recent CM nightly releases (cm-10.2-20131105-NIGHTLY-flo) and do a little research to see what is involved in recompiling the kernel to add ibss to the wifi driver and recompile wpa_supplicant to recognize ad-hoc and respond back.
Thank you for the input!
jal301 said:
I am looking for help to resolve basically the only issue I have not been able to figure out through these great forums or otherwise.
It seems that getting the tablet to work with an AdHoc network is not yet possible. I have seen comments stating that it may be possible through CyanogenMod. Can anybody confirm this? Or has another way been discovered to allow us to connect to AdHoc wifi networks?
Otherwise, does anybody know how to get ALL apps to recognize the Bluetooth internet connection? I have a Verizon phone running FoxFi and I am thethering via PdaNet Tablet when using Bluetooth; using FoxFi and stock wifi connection for wifi. Some apps will recognize the internet connection while others will not. Is there some way to point all apps to the Bluetooth internet connection?
Thank you in advance for your input.
Click to expand...
Click to collapse
Does Pdanet create a connection as a VPN or actual bluetooth tethering? If it's the former, there's the reason. I'm under the impression that apps will be able to properly understand a bluetooth internet connection (via bluetooth PAN I believe)
jal301 said:
I may be falsely assuming that it is an ad-hoc issue just due to what I have read from others commenting on the issue (re: your comment about FoxFi).
Click to expand...
Click to collapse
When I tested FoxFi it acted as a regular Access Point so normal wifi was all that was needed to connect.
Usually it is the WiFi Tether for Root app that sets of the phone as an ad-hoc connection, forcing the tablets connecting to it to also have ad-hoc support.
OJ in Compton said:
Does Pdanet create a connection as a VPN or actual bluetooth tethering? If it's the former, there's the reason. I'm under the impression that apps will be able to properly understand a bluetooth internet connection (via bluetooth PAN I believe)
Click to expand...
Click to collapse
I truly don't know the answer to this. Can you provide some instructions on testing this theory? I have tried the app Bluetooth Auto Connect and set the connection up with the phone as a PAN connection. I can pair the phone and my n7 together, but the stock Bluetooth manager never shows the two as 'Connected' versus other Bluetooth devices. Any suggestions?
sfhub said:
When I tested FoxFi it acted as a regular Access Point so normal wifi was all that was needed to connect.
Usually it is the WiFi Tether for Root app that sets of the phone as an ad-hoc connection, forcing the tablets connecting to it to also have ad-hoc support.
Click to expand...
Click to collapse
Then I think it must be a limitation with the LG VS660 phone that I'm using.
The good news is that the installation of CyanogenMod worked! What would have been intermittent connectivity every 5 minutes or so has now been turned into a solid wifi connection. Apps that would have rarely worked on the wifi connection are now working with no problems.
However, I am still very interested in figuring out the Bluetooth connectivity option. For those who may not want / like to go the CM route, it would be nice to have a simpler solution. Plus, my wife has a stock 2012 n7 and I would like to be able to get hers connected without rooting it. Any input on how to accomplish this would be great!

Categories

Resources