Hi, We are using the XDA-II as an engineers mobile job logger. We have a client server based app that calls a com port on the XDA. Presently we are making a bluetooth serial connection to a mobile phone and then using the virtual comport on the software. What we would really like to do is access the internal phone on the XDA as a virtual comport instead of having to use two devices. Any help on this would be greatly appreciated.
use search
http://forum.xda-developers.com/viewtopic.php?t=11701
I dont know if this program will help you but it seems to address the issue.
http://franson.biz/gpsgate/index.asp
Related
what naming convention does vnc want for the server to connect to
if i simply type in my servers ip address (like i do on normal VNC) i get a "invalid vnc server specified, server should be of the form host:display" error, then i try ip address followed by port ie xxx.xx.xx.xxx:5900 .. and still no luck,
tks in advance
cheers
C
Found this info on PocketPCCity:
Just for you people. server_name:display, means ip address:display number. The port 5800 relates to display 0, 5801 to 1, 5802 to 2, etc. I'm running serveral x-server, with rfb on linux, and can succesfully access these port. Just a handy tip to work with...
still no Joy
Thanks, digger but that didn't work either,
just to recap.
I have the VNC server app installed and running on my pc (i can connect to it from othe vnc viewers on other PC's
but on my XDA i cannot
i try to connect to my server by typing in the server address as
nnn.nn.nn.nnn:5800
have also tried all of the following
nnn.nn.nn.nnn:5801
nnn.nn.nn.nnn:5900
nnn.nn.nn.nnn:5802
were nnn.nn.nn.nnn = the ip address of my pc running the VNC server app
is my naming convention correct ? if so then i can continue to troubleshoot in other areas
tks again
cheers
C
how do you connect ?
from a cattle ?
from a usb cable ?
from a seriel cable ?
using IR ?
Rudegar said:
how do you connect ?
from a cattle ?
Click to expand...
Click to collapse
Yeah, PDA-phones are great: Even when sitting on top of my livestock I can still control my PC back at the ranch.
tried dial up and cradle
Hi Rudegar
I tried over a dial up connection
and the usb cradle,
no luck
Peter Poelman
yeah the new greenhorn which is to replace bluetooth make things like that possible and comfortable
SOLVED - But I'm not sure how, I was redesgning the app so that I could put it up here for other leo owners to test and gave it one last go to take a screenshot of the error to show people what I was looking for and viola it starts working (I never changed the TCP code) sorry anyone who finds this who has the same issue but it just randomly started working!!
Hi fellow devs,
After a massive googling session I have not been able to find an answer to the following issue:
I am writing a TCP client/server app with my PC as the server and the client being my HD2.
I am writing the app in VB.net using the .net compact framework 3.5 and the windows mobile 6 sdk.
I just cannot get the following code on the client side to work over wifi:
Code:
Dim ParsedIPAddress As IPAddress = IPAddress.Parse("192.168.1.10")
Dim client As New TcpClient()
client.Connect(ParsedIPAddress, 7209)
I get the following exception:
A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
Click to expand...
Click to collapse
If I connect the phone via active sync it will work and I can send and recieve data ok so it appears there is no issue with the code itself.
While connected via active sync - if I turn off the server side app I get the following exception:
No connection could be made because the target machine actively refused it
Click to expand...
Click to collapse
However the exception message remains as the original if I do the above but using wifi so it just is not able to establish a link at all (or not even trying) using wifi??
-----------------
I have tried:
1. Ensuring that windows firewall on the server is off and not getting in the way of anything
2. Ensured that my mobile has got an active wifi connection and can see the machine (wifi remote control apps such as GRemotePro work ok)
3. Turned off all other types of data connection (GPRS,3G) to make sure my mobile has only one route out
------------------
Is there anyone out there who has successfully got TCP to work with the .net compact framework and if so how???
Should I be using another class rather than TCPClient maybe the underlying Sockets class?
Any help would be greatly appreciated.
Cheers,
Prime.
P.S. I don't mind if people only have a solution in C# I'm happy to do any translation etc...
Socket class also fails
Ok so I've tried the socket class now as well and that fails in exactly the same way over wifi, ensured that I can ping my device and ping my pc from the device so clearly the underlying hardware is working just not for the TCPClient or Socket... Any ideas anyone?
Have you enabled port forwarding for the relevant port and IP address in your wireless router?
That's the only thing that springs to mind for me.
Thanks for the reply but...
Hey John,
Thanks for trying to help although unfortunately this does not bear any consquence in this particular situation, you only need to do port forwarding if Network Address Translation is going on between you and the end point. In this case the endpoint (IP + Port) is on the internal LAN with no address translation in between. It appears the the internal WIFI adapter is not being accessed correctly from the application i.e. this is an internal issue on the phone not an issue with the network in general as I can run the same code via active sync and it works also I can convert the project to a standard windows pc app and run the same code from a pc and it works. Oh and of course every other damn (this is really wierd) wifi app I've got works so something with the .net cf and wifi maybe??
Cheers,
Tony.
A development...
Ok so I have dug out my old Orbit II just to see if this was device related and low and behold it is ARGGGHHH!!! The app works just fine on the Orbit II over wifi.
Does anyone know of any policies, security or otherwise, that would stop the HD2 (leo) from being able to use wifi from the .net cf?
<<--delete-->>
Generic reasons for communication failures
Hi
This is a pretty generic problem, I'm afraid you can't give an exact idea of where is the problem so I can't give also an exact solution.
Usually a communication problem is due to one of this three
1) The server does not listen or does not receive
2) There is a problem with the network
3) The client does not make the call
Type 1 should be checked trying to connect to the server with a PC or a laptop. You should be able to make the client run in a PC.
Usually when a (web) server has a (web) tcp service stopped, when you try to connect to it it rejects the connection (this is what that of "the target machine refused it" sounds to me). Start then the (web) service on the server. Change (web) for your application.
My advice is that you should have something in the server side where you could run a wireshark sniffer. Then you would see all the traffic coming from the PDA and see if your client is sending packets.
Type 2 are the ones that can be checked with a ping. Maybe there is a firewall somewhere dropping the packets.
Type 3 may be due to several things
a wrong code (I don't know, there is a lot of time since I made programs)
you're trying to connect to a dns name that can't be resolved. Try with IP address.
You have a wrong network configuration. The server should be in the same network but client is not able to get the server's (or the router's) MAC with the ARP protocol. So it doesn't make the call.
I hope it helps.
Regards
I am creating a mobile app that needs to connect to a secondary software on my pc via wifi. All the current version features works as they should but I am having serious problem trying to display the ip address of the pc for user ease of use.
I have been getting a particular code that only displays my ethernet ip address but its not in use only wifi and it seems that its quite difficult to get this to work as I am a beginner.
Any ideas,help or advice is greatly appreciated
Sent from my HTC Inspire 4G using xda app-developers app
I dont know how to fix this i dont know what i did everything was fine but now i cant use my computer and g3 at the same time. My computer says ip address conflict every other device in the house works. Which ever device uses internet first (between g3 and computer) is fine but the other gets nothing. Anyway does anyone know what i need to do?
Hook em both up. Wait for the error on windows PC, then right click on the network icon and troubleshoot network issues, it'll reassign windows and fix your problem.
Sent from my SCH-I605 using XDA Free mobile app
Thank you that lead me to my issue! I for reasons lost to me i had assigned a specific ip address to my computer i simply checked to obtain ip address automatically and all is well. i cannot believe that was the issue but it was.... little embarrassed. But thank you!
My company has started to banNed all windows and android from connecting to my company's WiFi. I've tried Samsung and Sony but still not able to connect to their WiFi, not just me but other colleague who using android and Windows. However, we can connect to WiFi using iOS, mac os and Symbian. Surprisingly, one of my colleage's xiaomi note able to connect to WiFi but the other using redmi also having same issue.
Is that really possible that my company able to banned all android and windows from connecting to their WiFi. Is there a way that I can tweak something on android so that I am able to connect to my company's WiFi.
your reply and resolutions are much appreciated, thank you in advance.
vionratio said:
My company has started to banNed all windows and android from connecting to my company's WiFi. I've tried Samsung and Sony but still not able to connect to their WiFi, not just me but other colleague who using android and Windows. However, we can connect to WiFi using iOS, mac os and Symbian. Surprisingly, one of my colleage's xiaomi note able to connect to WiFi but the other using redmi also having same issue.
Is that really possible that my company able to banned all android and windows from connecting to their WiFi. Is there a way that I can tweak something on android so that I am able to connect to my company's WiFi.
your reply and resolutions are much appreciated, thank you in advance.
Click to expand...
Click to collapse
Best to take this up with your company. If apple phones are allowed to connect, then no reason why other OS's shouldn't be able to.
But regardless...you need to seek help from your company....XDA certainly isn't the place to learn how to hack their wifi.
Thread closed.
Thanks,
Darth
Forum Moderator