You Are Here:

Community: Developer Discussion Boards

#1 Old Ping an IP address - 2007-02-17, 21:04

Join Date: Aug 2004
Posts: 146
krtrivdi's Avatar
krtrivdi
Offline
Forum Nokia Champion
Dear All

I want to know that is it possible using pys60 to ping any IP address from the mobile phone?

kiran


||Kiran ||
Nokia E-65
Nokia 7610
Nokia N95 8GB
Nokia E90
Nokia 5110 !!
Nokia 6110i !!
Reply With Quote

#2 Old Re: Ping an IP address - 2007-02-17, 21:13

Join Date: Aug 2004
Posts: 146
krtrivdi's Avatar
krtrivdi
Offline
Forum Nokia Champion
Hi

After searching somwhat i found a link http://www.python.org/~jeremy/python.html where there is one example to ping but i m not sure how to include ICMP package in terms of import. The code is available for ICMP too, can i install it using library module to run the ping.py file?

BR

Kiran


||Kiran ||
Nokia E-65
Nokia 7610
Nokia N95 8GB
Nokia E90
Nokia 5110 !!
Nokia 6110i !!
Reply With Quote

#3 Old Re: Ping an IP address - 2007-02-17, 23:15

Join Date: May 2004
Posts: 524
Location: Tampere, Finland
jethro.fn's Avatar
jethro.fn
Offline
Forum Nokia Champion
After investigating the link you gave and trying to get the ping program to to work, it seems that generating ICMP messages (which ping uses) is not possible. This is due to the fact that the socket module does not allow creating raw sockets (type socket.SOCK_RAW).

Another thing to consider is that operators are free to block any traffic they can get away with. ICMP ECHO_REQUEST packets used by ping are an excellent candidate for dropping...
Reply With Quote

#4 Old Re: Ping an IP address - 2007-02-18, 06:18

Join Date: Aug 2004
Posts: 146
krtrivdi's Avatar
krtrivdi
Offline
Forum Nokia Champion
Thanks jethro

Cant we make any small networking utility for checking details about network, i mean testing a connection etc. Can we test the speed of our GPRS using python? can we test a webserver is up or not? can we tracert any IP?

Thanks

Kiran


||Kiran ||
Nokia E-65
Nokia 7610
Nokia N95 8GB
Nokia E90
Nokia 5110 !!
Nokia 6110i !!
Reply With Quote

#5 Old Re: Ping an IP address - 2007-02-18, 10:06

Join Date: May 2004
Posts: 524
Location: Tampere, Finland
jethro.fn's Avatar
jethro.fn
Offline
Forum Nokia Champion
Quote:
Originally Posted by krtrivdi
Cant we make any small networking utility for checking details about network, i mean testing a connection etc. Can we test the speed of our GPRS using python? can we test a webserver is up or not? can we tracert any IP?
  • Testing a connection: Possible. Both TCP and UDP connections originating from the phone are available to PyS60 programs. Receiving a connection is probably not possible, due to network/operator restrictions.
  • GPRS speed test: Possible, if there is a suitable server at the other end to serve dummy traffic.
  • Testing if a webserver is up: Possible. Just open a TCP connection to an open port (80, by default).
  • Traceroute: Not possible. requires raw sockets.
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I determine the IP address of my phone? tote Symbian Networking & Messaging 7 2006-09-15 10:49
Binding to Remote IP address Fails with -1 girish_1978 General Symbian C++ 0 2006-08-04 21:29
Device WAP Address Regan Mobile Java Networking & Messaging & Security 3 2005-11-21 11:21
Aphanumeric Address formats on MM1? shtobias General Messaging 0 2003-09-09 08:49
Help! Help! My IP address is changing like crazy !! jwynn_in_nh Mobile Java General 0 2003-07-22 23:10

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia