Tcpclient not working from my mobile!

C

chande.jiang

I create a Tcpclient app in my smartphone(orange network, spv). but i
have a seriously problem to create a tcp connection.

The basic idea is to connect to my own server in the internet on the
move, which means there is no activesync. Here are some test I did:

1. With activesync, i can connect to my web server.
2. Disconnection from my computer, without activesync, i got an
excaption: cannot find some assembly, after install system.sr.dll, the
detail exception is: A socket operation encountered a dead network.
3. when i tried httpwebrequest, it connected.

So, questions are:
1. How can i connect to internet from my mobile through TCP?
2. If not, How can I make a continuous connection through
httpwebrequest?

Thank you in advanced!
 
C

chris-s

Use the 'ConnectionManager' to establish your internet connection over
gprs. If you don't know what the 'ConnectionManger' is then just do a
bit more searching, there are plenty of references to it.

I think you will struggle trying to create a 'continuous web
connection via httpwebrequest', but maybe it depends on what you are
trying to do. You may want to move to using a socket server style of
app.

Cheers

Chris
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top