simple TCPIP-Client and Proxy-Server - Windows Mobile Software Development

Hi,
my simple TCPIP-client works fine on a Pocket PC with connection to the real internet.
It uses the following functions:
socket (), setsockopt (), inet_add (), gethostbyname (), connect ()
Now I want it to work via cradle connected to my desktop pc, which has a connection to a proxy-server on port 8080.
Is this possible?
If yes, what is to change?
Thank you for reply !!!
Franz

Hi,
There is nothing to change. If you have installed the software provided with your XDA for communicating to the Internet through the cradle, it will work as-is.
Watch your IP address through, this will change from that assigned by O2 to 127.0.0.1, and you connection will become stale at this time, and need restarting.
How you detect the XDA has been put into the cradle or taken out is a problem I have not yet worked out. If anybody knows, I would be extreamly interested in finding out.
Ben

Related

VPN and Terminal Services Client with XDA IIs

I used to use the XDA to VPN into a Windows Server, then control it (for problems) with Terminal Services Client. No problem, worked fine.
With my new XDA IIs (original ROM) I can't figure this out at all - and the instruction manual provides little info.
Any ideas?
What I've been doing so far is:
To set up the VPN conn:
[start, settings, connections, connections]
edit my vpn servers
new - (e.g. vpn1 212.123.123.123) - enter logon info
To connect on the VPN (maybe where the problem lies)
I click on the sig strength icon and choose Mobile Web
Then click again on the icon again, and choose 'vpn1' (weirdly this option seems to come and go)
Also, there seems to be no way to see if you have actually succeeded in connecting to that IP address
Now when I look at the sig strength icon... it says 'O2 Active connected'.
Needless to say, if I use TSC at this point, no luck.
Any ideas? It does not seem a very intuitive process.
Thanks
Hello,
Just moved over from a XDA2 to an XDA2s myself and been having the same probs. Check you work connections and make sure that you remove the O2 active setting from the modem tab. This appears to be the prob.
Now when you hit the signal strength icon, you should click on VPN1 only and it should go out through Mobile web and then initiate VPN when it connects.
However, mine is still having an issue with the password!!! Something very strange is happening and I can't work out what it is.
I'm still playing around with it, and will post when I work it out.
Sorry to be dumb, but >>remove the O2 active setting from the modem tab. << - how to do that??
This system must be the most counter-intuitive process I've encountered!
I used TSC through VPN to connect to my work server with my XDA11. Set up GPRS connection, set up VPN with my user name and password, enter the right server name in TSC and hey presto. Simply go to programmes, TSC click and the device connects to GPRS and then automatically to the VPN via GPRS and on to the server.
Now have a Qtek 9090 (XDA2s equivelant) on WM2003 second edition and whilst it will connect at first to my server, it won't connect a second time. After a hard re-set it connects once but never again. I have tried other devices and they do exactly the same. Anyone know what's going on ?
Discard this post
Ja sam pojavom mail-a na mobu totalno izgubio potrebu za mms-om. Ne razumem ni zasto bi to neko koristio i u kojim situacijama.
BTW, TiramiSlim otkida, sve sljaka kao satic
Sent from my GT-I9000 using Tapatalk 2

XDA 2s Wifi Guide anyone?

Hi guys, I recently destroyed my XDA2 and got a 2s on the insurance
Bluetooth on WM2003 SE if fair poor, but I managed to upgrade the stack thinger to 3900..... so I'm not completely XDA illiterate.
However, the wifi baffles me! I have access to an unsecured wireless network with internet access, and my 2s will connect to it. When I go on the the internet on my XDA, even with wifi connected it still tries to connect GPRS to use the internet. If I keep clicking cancel, it will load the page (presumably through the wireless network's internet access).
It has become clear that I have no idea what I'm doing with regards to networking. Could someone post a quick guide as to how to set up the wifi (from scratch) so that when it finds an unsecured network it will automatically use it for the internet.
Sorry if there's already a thread on this but I really can't find it. Cheers guys
-Mike
just what i need as well, i have just bought a wifi router so i can use the internet on my xda2s.
using the wireless manger -> wireless LAN manager i get:
STATUS: connected to network
SSID: NETGEAR
TX RATE: AUTO
MODE:INFRASTRUCTURE
CHANNEL 11
BSSID: 00-09-5B-D7-DC-2A
MAC: 00-09-2D-0B-C0-A6
but even when i pull the Ethnet cable (forgot how its spelt) out of the back of the router it still stays connected. so im thinking its more my PC than the xda. the thing is the router came with no software so i have no idea if its connected properly. when i pull this Ethnet cable out of the wifi router o get network cable unplugged. The network card is Broadcom 440x 10/100 Integrated Controller. Which I have never used.
if anyone has a any ideas it would stop me pulling my hair out.
Sorry to hijack this thread
mike freegan said:
However, the wifi baffles me! I have access to an unsecured wireless network with internet access, and my 2s will connect to it. When I go on the the internet on my XDA, even with wifi connected it still tries to connect GPRS to use the internet. If I keep clicking cancel, it will load the page (presumably through the wireless network's internet access).
-Mike
Click to expand...
Click to collapse
Mike, I dont think the wifi first and GPRS next works. It doesnt work properly on mine either. If I try a internet access via gprs and a local wifi is readily available, the system does not automatically switch to local wifi.....I think this could be a microsoft issue than a xda issue.
robboy said:
but even when i pull the Ethnet cable (forgot how its spelt) out of the back of the router it still stays connected. so im thinking its more my PC than the xda. the thing is the router came with no software so i have no idea if its connected properly. when i pull this Ethnet cable out of the wifi router o get network cable unplugged. The network card is Broadcom 440x 10/100 Integrated Controller. Which I have never used.
Click to expand...
Click to collapse
when u pull out the ethernet cable from the back of the router, can you still surf the net from you xda or PC?? that seems odd. So either you are not connecting to "your" own router, or someone else has a same router with unsecured setup and you were locked onto their service....if you follow what I mean. what happens if you kill the power to your router? you should definitely notice that the wifi service disappear in your xda and PC.
Dont expect a router to disappear by simply unplugging the ethernet cable, if the router is powered up, it will show up on your xda and the PC although obviously there will be no internet access.....
sorry if i wasn't clear. i meant i was still receiving a signal from the wifi router. i could never use the internet on the pda
update:
i can browse my pc files wirelessly using resco explorer, using the standard file explorer i can view the pc files using \\network/c and i have finally been able to connect to activesync.
however i still can not connect to the internet.
Any ideas, from looking on this forum it seems lots of peeps are having problems with this but nobody seems to have the answer
XDA Wi-Fi Solution....It Works!!!!
Hi,
I'm new to the forum and new to XDA2i (presumably XDA2s is same!) ....
I too had many frustrations connecting the wi-fi...but now I've cracked it, here's how.......
On first very first use (or following a hard re-set) device users are prompted to choose “What do you want WLAN to connect to?” The option bullets are ‘Internet’ or ‘Work’….’Work’ should be selected, this will connect them to the nearest WLAN (if this network is WEP encrypted it should be switched to ‘Open’ rather than ‘shared’ as is often the case).
Next prompt asks for any WEP Encryption ‘Pass Key’ to be input, when doing so omit any ‘-‘ between character pairs. Normal start-up should then be completed. Once device is up and running…..
From ‘Start’ pull-down on the ‘Today Screen’ select…. ‘settings’>’connections tab’>’connections icon’>’advanced tab’>’Select Networks’> pull-down ‘My Work Network’ > ‘OK’ out of selections to save and exit.
Go to ‘Wireless Manager’ in programs, select WLAN icon from main screen (which should turn green to show active), then select mini ‘WLAN’ icon from lower toolbar to see the status of the connection, quality of signal etc.
That did it for me......
Cheers
windupmerchant

WIFI - O2 Orbit problems

Hi,
I can conect to my home wi-fi ok and it gets an ip address. i can ping an address but after 30 seconds or so it stops working. it still thinks its connected but cant ping or navigate to any websites
any help greatly apreciated
Hi
I also have a similar problem
I have a 802.11b broadband router (linksys) which works fine with my two wifi PC's and my Wifi XDA Exec to access the Internet and collect e-mail
I just got an XDA Orbit and although it "sees" and connects to the Broadband router it will NOT allow access to the internet or e-mail (apart from one very short half page of ntlworld.com home page on one occasion)
WORST than that - it HANGS the wi-fi router and I have to reset it before I can access the Internet from any other PC's !!
What am I doing WRONG ???
Any suggestions welcomed
just noticed there is another post about this problem
Take a look Here. This worked for me
I originally had trouble connecting to the internet. I connected to my router and added a device registering my Orbit MAC address and the other info required and bingo works a treat. I checked the other link from jamin100, personally didnt have to do this!!
SOLUTION!
Hi @ll..
i had the same Problem..
I connect per WLAN to my accesspoint, then i can open Websites with any Browser.. but after about 30seconds it seems, that the connection is down.
Here i have a solution, that works great at my XDA Orbit
Goto Settings->Connections
Change the Power-Settings of WLAN to Power optimized--> MAX
then the Problem should be solved ;-)
GREAT
This fixed it
Why ???
I should not need extra power - I am 3 feet from the WiFi router ??
XDA Orbit now get hot after 20 mins use onWiFi !!
Hi,
I Am Able To Connect And Browse The Internet At Home Perfectly well However When I Am at University I Try To Connect To The Wifi. It Will Connect but After A Bit It Will Not Load Up Any Pages although It Still Shows I Am Connected! Furthermore my Mate who Has A Mini S And P990i Is Able To Connect And Browse Perfectly.
Another Thing Is That When I Try To Search For Networks It Will Not Show Anything But When I Restart The Orbit It Will Show The Available Wifi!
Finaly I Cant Stop That "Message Sent" Notification, I Have Tried To Do All The Tweaks But Nothing Works
Any Help Will Be Much Appreciated
@eddieorz:
it´s the same at my orbit. it get very hot after some time "online" ;-)
i hope, this will be fixed at the new Update in summer 2007 (WM6)
I know I know, me digging in some old threads.....
Somebody has the solution already???
Thanks again.

wifi 2 laptop?

Hi I have m700 with a wifi connection and an olde laptop with no wifi, I have upgraded it with vista (My laptop) and can connect the pda via WMDC, and also have modem link in schap's wm6 rom. is there software or a possible way to use my m700's wifi connection through usb on laptop, then use the laptops internet like wifi card/adaptor? any help appreciated. v
http://msmobiles.com/news.php/6999.html
Rudegar said:
http://msmobiles.com/news.php/6999.html
Click to expand...
Click to collapse
I have tried this already, this just routes ad-hoc (computer to Computer) wifi connection, the wifi I connect to is infrastructure. I need to use the wifi in my pda and somehow to use it through the usb port into my vista laptop, like as a wireless receiver or using the pdas wifi whilst its connected. thanks for that route, but been there, unless i'm missing something. please let me know if so. thanks
I see what your trying to do but im not sure you can do that,
I havnt tested it but i would try this:
you could give your PC a static IP and find the PDA's IP when its connected to your laptop via USB, then enter
Attach your PDA to a WiFi network and find its IP, then connect your laptop to the PDA via USB, then give your laptop a static IP in the same subnet as the PDA and give one of the DNS servers as the PDA's IP and the other as the DNS server thAt the PDA has picked up from the WiFi network.
Make sure IE is set to 'automaticlly detect proxy setting'. In my head this should work but i have found what i think and what can actuly happen is VERY different.
Let me know how it gets on or at least post the outcome.
Thank you
jab1a said:
I see what your trying to do but im not sure you can do that,
I havnt tested it but i would try this:
you could give your PC a static IP and find the PDA's IP when its connected to your laptop via USB, then enter
Attach your PDA to a WiFi network and find its IP, then connect your laptop to the PDA via USB, then give your laptop a static IP in the same subnet as the PDA and give one of the DNS servers as the PDA's IP and the other as the DNS server thAt the PDA has picked up from the WiFi network.
Make sure IE is set to 'automaticlly detect proxy setting'. In my head this should work but i have found what i think and what can actuly happen is VERY different.
Let me know how it gets on or at least post the outcome.
Thank you
Click to expand...
Click to collapse
WOW! you know ur stuff, but i wouldn't know the first thing about the info you gave me. do a dummies guide and i'll try it. cheers for the info tho.
Hmm, dunno if that would work - no harm in trying though..
If you connect via usb then it will setup from the activsync and the dhcp within it, normally along the lines of 169.254.2.2 - but you would have to use this subnet to switch the laptop too (don't use 1 as that will most probs be the dhcp svr) in order to communicate with the device and this is where I see the problem.
You would only be connecting to the device, u can not use the wireless subnet as you have no connection to this just the pda, so if you set your laptop to the subnet of the wifi by rights the network should just look at you blankly as it will not be able to see past the activsync connection to get to the wifi subnet.
Or at least that's how I'd see it happening.
I think i'll just buy a wireless receiver. lol. haven't got a clue what you are both telling me. thanks anyway. maybe somebody can create a cab with settings if poss, or a program?
would there not be a hack or reg change, which in the wifi-router download at start of thread, which will add or change the ad-hoc connection to infrastructure instead? or would this be impossible? thanks
btw: you a running vista on a laptop which is so old that it doesn't have wifi???
i think you should go for a wifistick (~ 10-15 €?!?)

[REQ] How To - Remote Desktop Mobile

Is there some tutorial/help on using hte Remote Desktop Mobile to connect to a PC? I haven't been able to connect TP 2 to my PC running Vista. I put in the Computer name, User name, password, and domain and when I clicked "Connect", it returned an error:
Cannot connect. Likely reasons are:
1. specified computer name or ip does not exist.
2. A network error occured while establishing connection.
I tried both domain name and ip. Made no difference.
I also tried both on 3G as well as WiFi but it made no difference.
You'll need to set up two things:
set the vista machine to accept the remote connections
http://howtogeek.com/howto/windows-vista/turn-on-remote-desktop-in-windows-vista/
forward port 3389 on your router if you have one
http://portforward.com/
Then you should be up and running!
'tunes
Thanks, mad-tunes. Got it working now, at least when connected by WiFi. And when the phone and the PC are on the same Wifi network, I can connect simply by putting in the computer ip address. No domain is required and no port configuring required too.
Lord_BlackAdder said:
Thanks, mad-tunes. Got it working now, at least when connected by WiFi. And when the phone and the PC are on the same Wifi network, I can connect simply by putting in the computer ip address. No domain is required and no port configuring required too.
Click to expand...
Click to collapse
Good stuff, glad it helped a bit....
If you can't connect from the outside world (ie, using GPRS), then it's most probably a port forward thing...
If you want to get this bit working: How's the machine you're trying to RDP to connected to the 'net exactly?
(ADSL modem, router etc?)
mad_tunes said:
Good stuff, glad it helped a bit....
If you can't connect from the outside world (ie, using GPRS), then it's most probably a port forward thing...
If you want to get this bit working: How's the machine you're trying to RDP to connected to the 'net exactly?
(ADSL modem, router etc?)
Click to expand...
Click to collapse
Yes, the PC is behind the router. So probably woould need to do port forward as you have suggested. Having tested it yet. Would try this out later this week.
I was wondering, is theres a way to do this if youre on a home edition of windows?
the home edition I dont believe has remote desktop.
Remote desktop mobile using 3G connection
Has anyone gotten remote desktop mobile to work using only a 3G connection? I've got it working perfectly using wifi but can't for the life of me figure out how to do it over 3G. I searched and the closest thing I could find to being helpful was the following:
I had the same problem till I created two VPN connections. One for internal use (WiFi) and one for extenal use (3G).
The internal one uses the internal IP address of the VPN server and the external one uses the external IP address.
You have to sleect which connection you want to use before starting the connection depending on whether u r using WiFi or 3G.
Hope that makes sense. It works 4 me.
Click to expand...
Click to collapse
This makes sense but it's confusing about what to change in the VPN connection settings. Can anyone explain in more detail?
Thank you very much
squirtpunk said:
I was wondering, is theres a way to do this if youre on a home edition of windows?
Click to expand...
Click to collapse
No. You can only use third party solutions like VNC. RDP host is not included in Home Edition.
You have to go into your router and set up a port forward so that 3389 goes to internal IP address of the system you want to remote into. If you have port forwarding/triggering, you can have a different port (eg, 3390) trigger to 3389 internally. If you don't have port forwarding, you can change the listening port from the default 3389 to, eg, 3390 and then you can create a port forward to remote in that way. To access, add :3390 to the end of the remote address (eg, 64.246.222.91:3390). The registry path to the listening port is:
HLKM\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp\PortNumber
You must reboot after changing the setting.
If you have a domain, it is incredibly useful to set up DNS for this, then you can simply enter the DNS name in the client. This works internally as well.
Update: So i just went to a Starbucks and tried using the wifi there to connect to my remote desktop and it couldn't connect!? But it can connect when I'm using the same wifi router as my remote computer does this mean I don't have the router properly port forwarded? Or is it some other issue? Any advice would be great.
Thanks
When you use your wifi at home, it ends up in the same IP subnet as the remote computer, so all you need to do is to enter the computer name.
When you're at a hotspot, you need to enter the public IP address for your router and step up port forwarding. Wifi outside of your home is no different from using EVDO as far as IP addressing is concerned. You must enter via public IP.
If you don't know what your public IP address is, open a browser from any computer at home and go to this URL:
http://whatismyip.com
It will tell you what the public IP is.
Cheap Loop-Hole
I got Remote Desktop to work on 3G.
First open Opera (or what ever your default browser is) set a home page to something that takes at least 5-10 second to load (if longer, even better), like an email account or m.myspace.com. Simple sites like m.google.com won't work because they load to quickly.
Close OPERA: I mean make sure its closed not just minimized.
This next part needs to be done rather quickly, so I advise making Remote Desktop a top icon in your Start Menu.
So Launch opera, and quickly launch Remote Desktop and hit connect.
Remote Desktop will piggy back off the Opera browser connection to get out to your computer.
Note: (make sure remote desktop works at home first, either by wifi, blue tooth, or direct usb, and by checking it from a computer outside of your network) once you know it works you should be able to connect to it.
Also note: as some one stated above, make sure that proper ports have been open on the computer and router than you should be good to go.
I'm sure their is a registry fix to get the remote desktop working without doing this, but this is the only way I've been able to do it for now..
Hope this helps...
---
I'm currently using AT&T Tilt 2 Stock Rom and Radio.
Check this out guys, it might be of some help: http://forum.xda-developers.com/showthread.php?t=533664
Thanks a lot guys! It's working just fine now (on both wifi and 3G!) turns out I didn't have the router properly port forwarded.
just started trying to figure this out today. spent about 15 minutes but couldnt get it going.
just installed windows7 on my old pc and im trying to get my htc tp2 (rhodium) to work with the preinstalled Remote Desktop Mobile application. i forwarded port 3389 on both tcp and udp since i didnt know which was necessary.
is a static ip necessary to get this setup by going into the ipv4 settings? also, what is the application looking for with the input for "domain"? - subnet mask? default gateway for my home network?
so far i have tried the following inputs in my tp2 for Remote Desktop Moble:
Computer: public ip
User Name: windows7 login name
password: windows 7 login password
domain: ???
any help is appreciated. going to try this more when i get home from work.
apathyps said:
just started trying to figure this out today. spent about 15 minutes but couldnt get it going.
just installed windows7 on my old pc and im trying to get my htc tp2 (rhodium) to work with the preinstalled Remote Desktop Mobile application. i forwarded port 3389 on both tcp and udp since i didnt know which was necessary.
is a static ip necessary to get this setup by going into the ipv4 settings? also, what is the application looking for with the input for "domain"? - subnet mask? default gateway for my home network?
so far i have tried the following inputs in my tp2 for Remote Desktop Moble:
Computer: public ip
User Name: windows7 login name
password: windows 7 login password
domain: ???
any help is appreciated. going to try this more when i get home from work.
Click to expand...
Click to collapse
network-wise what you need to do depends on how your PC's connected to the 'net...
if it's connected directly via something like a USB ADSL model or Virgin media cable box, then you'll only need to let 3389 through your PCs firewall.
If it's connected via anything like a router, then you'll also have to allow 3389 through your routers firewall, as well as forwarding port 3389 to your machine inside your network.
it's the port forwarding which needs the internal IP of your PC, so a static one's a good idea (otherwise, if your PCs internal IP address changes it'll stop working). you could set your router to always hand the same IP to your PC MAC address, which can be the best of both worlds (and how I do it).
http://www.portforward.coms a good place to start to find how to forward ports for your router if you're using one..
You also have to go to control panel>system>advanced system settings>remote and set things as you need in the 'remote desktop' section.
if you don't have the 'remote desktop' section, then you're running one of the home versions of the OS which doesn't support Remote desktop conenctions (out of the box )
re domains...if its a normal home PC and nothing to do with a business, then you wont have to enter one at all.
Once you're at home, get your TP2 on your internal network (wifi), and then try to rdp to your machine using its INTERNAL ip (192.168.*.*) and see if that works.
if it does, the PC end's fine and it's your router config you need to get right. if it doesnt, then its something at the PC..
post back here if you still have trouble..
ok, so connecting with the tp2 via 192.xxx.x.x works fine from within the network at home on wifi.
however, once i try and connect with the public ip, it doesnt work. did the port forwarding thing.
i setup the static ip, i tried putting the host pc in the dmz, and still nothing. i tried disabling the host pc's firewall, and nothing.
in remote desktop mobile, im putting in the public ip of the host pc, and have tried filling in the username and password fields, and also tried leaving them blank.
any ideas?
apathyps said:
ok, so connecting with the tp2 via 192.xxx.x.x works fine from within the network at home on wifi.
however, once i try and connect with the public ip, it doesnt work. did the port forwarding thing.
i setup the static ip, i tried putting the host pc in the dmz, and still nothing. i tried disabling the host pc's firewall, and nothing.
in remote desktop mobile, im putting in the public ip of the host pc, and have tried filling in the username and password fields, and also tried leaving them blank.
any ideas?
Click to expand...
Click to collapse
if its workin from inside your network, your PCs set just fine...so it must be the firewall or port forward on your router...
double-check that 3389s alowed through its firewall
and
the forwards set to point UPD+TCP on port 3389 to the current internal IP of your PC.
tbh, I cant think of much else but let me know how you get on
ah, got it working. had to forward from ANY -> 3389, not 3389->3389. duh. works now.
thanks guys
Strange, you shouldn't have had to. RDP defaults to 3389 so the client should be using that from the word go (I know mine do!)...it could be a wierd router thing.
Depending on the exact option(s) you had to change to get it going though, it's making your machine a little more open to the outside world. but maybe not in a huge way....
(so, is it now AnyIP:AnyPort>YourIP:3389 or AnyIp:AnyPort>YourIP:AnyPort? I think forwarding all ports to 3389 would wreck eMule!)
It's probably worth changing the port used from the default though tbh.
Your change it in the PCs registry and add ortno to the end of what you enter into the client.
(so it'd be something like 192.168.0.1:3390, for example)
Then change the rules on the router to match, of course.
'tunes

Categories

Resources