On Jan 3, 2011, at 6:46 PM, John Musbach wrote:

> On Mon, Jan 3, 2011 at 4:42 PM, Levan, Jerry <[email protected]> wrote:
>> Does anyone have a simple 'hello' udp server that simply responds
>> 'hello' to any incoming connection. I could perhaps confirm that
>> the ports are open if I get a response. I used to have similiar
>> gadgets a long time ago, but my programming foo has weakened over
>> the decades.
> 
> You could try this iphone app for testing:
> <http://itunes.apple.com/us/app/udp-tool/id377736572?mt=8>.

Thanks, I think that helped, perhaps, maybe...

I found a simple python udpserver via google:
*********************
#!/usr/bin/python
import socket

# A UDP server

# Set up a UDP server
UDPSock = socket.socket(socket.AF_INET,socket.SOCK_DGRAM)

# Listen on port 1701
# (to all IP addresses on this system)
listen_addr = ("",1701)
UDPSock.bind(listen_addr)

# Report on all data packets received and
# where they came from in each case (as this is
# UDP, each may be from a different source and it's
# up to the server to sort this out!)
while True:
        data,addr = UDPSock.recvfrom(1024)
        print data.strip(), addr
******************
Port 1701 appears to be the port that vpnd is listening to.

I killed vpnd via launch control and started the python server.

If I use the UDP-tool (on my iPad)  that you recommend with wifi turned on
so I am a member of my private network and send a message to the server
on port 1701 via the wan facing IP of the router then
the server responds with the message I typed in the box
and the 'addr' displayed is the wan facing IP of the AEBS.

When I turn off wifi and go with 3G, the datagram *does* reach
the server and the address displayed is the 3G iPad IP.

So it appears that port 1701 is *not* blocked by AT&T.

Now after I killed the python server and restarted vpnd via
launchctl and tried connecting the iPad using wifi to the
vpn, it worked! (not very useful since I am already a member of my local 
network).

However turning off wifi and attempting to connect via 3G
*fails*.

Earlier today I could not connect via wifi ( at my home or a bookstore hotspot).

This is getting a bit depressing...and confusing.

Jerry





_______________________________________________
MacOSX-admin mailing list
[email protected]
http://www.omnigroup.com/mailman/listinfo/macosx-admin

Reply via email to