listen socket - Windows Mobile Development and Hacking General

Does anyone know how to open a TCP socket and listen for connection in GPRS network? I can connect out using UDP/TCP but never be able to accept TCP call from my XDA.
Is this part of the limit of GPRS network? (I am using AT&T wireless)
thanks,
- David

Related

XDA IIs Wi-Fi using VPN

I have recently moved on from an XDA II to the IIs model to test at work and have so far gone through hell with O2 trying to get to the bottom of using the Wi-Fi connection and VPN. So far I have been told that a number of services had to be enabled on my SIM but still nothing!!!
But the latest being there is a Wireless network service that needs enabling and this service is £30 a month.... please tell me this isnt true?
When I connect through GPRS and use my VPN connection it works fine so I know the configuration is ok.
But when I swap to Wi-Fi it picks my companies network up and I can access the internet but then when I try to connect through VPN it does nothing.
I would love to know if anybody has been able to get this working, and if perhaps Im missing some settings? I have emailed O2 Data support but may have been better off talking to my nan!!!
ROM version: 1.12.62 WWE
ROM date: 10/04/04
Radio version: 1.02.00
Protocol version: 1337.32
ExtROM version: 1.12.178 WWE
many thanks
Peter Jones
O2 data support are indeed a waste of space. I wish I had not bothered with O2. How did you get the VPN over GPRS working? Did you need to get and additional service enabled or use a different GPRS APN? I am using mobile.o2.co.uk. The option to add a VPN only appears under the work profile, if after connecting GPRS I try and connect VPN it fails. I know that the VPN works since I can connect to it from my laptop thats connected to the phone via bluetooth in order to dialup via GPRS.
Any idea's?
I too have been unable to get the VPN to work while connected via wifi, I am not even sure that it supports this.
Nigel
I bet this is nothing to do with O2 I bet this is a network issue, correct me if I am wrong but the wifi you are on is useing a NAT firewall either at the WiFi router or AP, or it could be a gateway firewall such as a unix box. If you are useing a VNP from inside a NAT firewall and you are useing PPTP or L2TP to connect, you need to make sure the firewall will alow you to make outgoing connections on TCP port 1723, and you also need to enable IP protocol 47 (GRE). this is the tricky one, it is not a TCP or UDP port. TCP is a suite of protocols that include FTP, HTTP, DNS, etc. you will notice all these protocols pass data of some sort. that is because they work at the session layer.
OSI Network Model (this is a standard, basic network knoledge)
Layer 7 Application
Layer 6 Presentation
Layer 5 Session
Layer 4 Transport
Layer 3 Network
Layer 2 Data link
Layer 1 Physical
when you see TCP/IP the reason there is a slash is to show you that TCP carrys the data and IP makes sure it gets there, this is why we have IP addresses. So TCP port 1723 is what is carrying the data (if you are useing PPTP) so port 1723 is just like port 80 (http) it is used for a protocol at the session layer, because it is a session. TCP its self is at the transport layer, because it is the one that is acctualy moveing the data. and IP is at the network layer bucause it is actualy finding the hosts on the internet, where the data is going and comeing from. Just like TCP has sub protocols like http, IP has sub protocols like GRE or protocol 47 (they are the same thing) you need to make sure your firewall can open this up. Some routers can, but alot of cheap ones cant. I couldn't speak for AP's coz i barely use them. But a good hardware firewall. unix box or software like MS ISA Server should let you do it easy.
remeber that IP protocol 47 GRE IS NOT TCP port 47 (or UDP) and that you need to be able to open it on your firewall

UDP Passthrough Activesync

MS Activesync (i'm using 4.5) does not support forwarding of UDP packets to the handset from the network. So far as I can tell it doesnt allow them to come out of the handset to the network either. When I say Network I mean IP Network, not Cellular.
Does anyone know of a way to add this feature to my setup, perhaps a UDP Proxy application that will puck up the packets on the ActiveSync Network adapter and forward them to the internet ? Or maybe something simpler like bypassing Activesync altogether ?
Hopeful,
nid
Are you trying to run any application specially using UDP's? I could access Internet once my ActiveSync is up.
Uh, yes, UDP is requred by the application I am trying to run.
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=605596&SiteID=1

Are incoming ports blocked?

Hi, I'm with Bell mobility, i have few programs that host a tcp socket and are reachable from any lan network whenever I use Wifi or VPN connections but is there any way to get the data plan connection to have incoming connections. I've tried a whole bunch of ports? Anyone knows a way around this issue?
Would be good to be able to host our own mini website on the phone or reach it with Pocket Controller.
If your device gets a public IP for wireless APN, you should be able to connect to sockets bound to this IP. If you get a private IP, then you can only connect from within the same subnet.
It depends on your data plan ... and your operator.
Some operators block TCP/IP ports below 5000.
If you subscribed a business data plan, it might work ... Just because of business tools you may need (VPNs, SSH connections, remote desktop, ... ).
My advice, connect your phone to your PC as a modem and use any tools to check open ports (try ShieldsUp from grc.com http://www.grc.com/)
Hope it helps.

Web surf through the BT connection of another cellular

Is it possible to use the internet connection of an HDSPA cellular through the BT as if my HD was a PC with BT dialup?
Found!
In Connections you must create a new remote connection with a Bluetooth modem(the other cellular) and the use the numeber "*99#" without username and password...
Works perfectly!
Just for record, you can use any BT phone with support for DUN profile, even a CDMA with Data support. This can be useful where HSDPA is not available and GPRS/Edge is too slow for practical use/costlier.

[Q] Phone to phone communications through mobile internet, is it generally possible?

I have just created an app that listens on the microphone and sends the audio stream to a defined host and port via a udp socket.
It also listens on the same socket to fetch packets and play them in the speaker.
This works fine if both phones are in the same WiFi network, of course. It also works fine if one phone is in a WiFi network and the other is connect to the mobile internet.
But it does not work if both phones are connected to mobile internet.
Well, one might say, they are firewalled. But what I am trying to do amounts essentially to udp hole punching, and the fact that it worked between WiFi and mobile internet shows that the mobile internet side is (at least in that case) susceptible to that technique.
The only conclusion I can draw (since both phones happen to have the same carrier) is that the carrier has a firewall that allows RELATED/ESTABLISHED (to speak iptables lingo) udp packets UNLESS they come from the same carrier. I have no idea why, but I can't think of any other reasons it would work like this. Perhaps they want to stop people from communicating peer to peer?
Anyway, has anyone else tried something like this? What are your experiences? Is it at all possible? Just with some carriers? Or do I need to use some other trick that I didn't think of?
Download SIPdroid from the market?
All carriers have firewalls and/or NAT, and the ones I know don't allow incoming connections. Can you connect from WiFi -> mobile? Mobile->WiFi is easy.
Volker1 said:
Download SIPdroid from the market?
All carriers have firewalls and/or NAT, and the ones I know don't allow incoming connections. Can you connect from WiFi -> mobile? Mobile->WiFi is easy.
Click to expand...
Click to collapse
Oh, I forgot about SIPDroid. I have tried it before, but never with calling a phone in the same carrier network.
Have you tried it? Did it work? And are you sure that the SIP gateway did not direct the streams through a SIP proxy? Many SIP providers do that (at least the ones I worked at), since SIP quite often fails to connect two firewalled phones to each other.
And regarding your question: My app does not do any client connecting to a server - it is two peers directing their UDP streams at each other - neither is server or client.

Categories

Resources