Results 1 to 7 of 7

Thread: Javascript Port Testing

  1. #1
    Join Date
    Jan 2012

    Javascript Port Testing

    I need to be able to test if a client has port 80 and port 1935 open and configured properly on their machine using javascript. I have googled my brains out and I can't seem to find the info I am looking for. How would you accomplish this?

  2. #2
    Join Date
    Mar 2012
    Saint-Petersburg, Russia
    Funny. If you googled at least 5 minutes, you should find that there is no any means to accomplish this by javascript on browser side.

    Moreover, you should understand that if port on client's machine is opened this does not mean you can access it from outside, because port should be forwarded by router via which client is linked to internet etc. So in most case you may test only specific port of router which has worldwide IP but you will not see (by usual means at least) to which port on which of the machines behind router this port is forwarded.

  3. #3
    Join Date
    Jan 2007
    What exactly are you trying to accomplish?
    Jon Wire

    thepointless.com | rounded corner generator

    I agree with Apple. Flash is just terrible.

    Use CODE tags!

  4. #4
    Join Date
    Jan 2012
    My boss wants a page that can do something similar to the following


    Under "Is your firewall blocking the flash stream". I don't know anything about flash, so I am looking to do this in something I am more familiar with.

  5. #5
    Join Date
    Mar 2012
    @svidgen good question

    Are you trying to code JavaScript for use with internet browsers? If so, then stop trying to ask questions because even if it is possible nobody will help you, at least not for free. Modern browsers have security settings that prevents things like this from happening.

    There may be some sort of ActiveX control that may work with modern Internet Explorer browsers, but what you are asking is something that should be only done automatically in owned network environments anyways, making that option in almost every case completely unnecessary.

    You may be able to code some .js files that would have to be distributed through to each client that accesses and returns information from command prompt executables. The distribution for .js files to clients is usually done through "Group Policies". In this case, JScript can be used to do what you want accomplished, and AJAX could also be used to centralize the information on a server.

    Here is a link to an MSDN resource for using JScript to run command-line executables and get the results. http://msdn.microsoft.com/en-us/library/cbxxzwb5%28v=vs.85%29.aspx

  6. #6
    Join Date
    Jan 2007
    Looks like your test page isn't testing access to local ports, but remote ports. I just briefly skimmed the wiki page on the protocol it's testing, and it appears as though the client establishes the connection with the server. I validated this hypothesis to some extent by setting my machine's firewall was aggressively reject all incoming connections -- still passed.

    If you really need JavaScript to test this for you, you can do it by making standard AJAX requests to the ports in question. But, it seems more likely that, given the ports you want to test, your target client app is going to be written in Flash anyway. So, why not use flash for your tests too?
    Jon Wire

    thepointless.com | rounded corner generator

    I agree with Apple. Flash is just terrible.

    Use CODE tags!

  7. #7
    Join Date
    Mar 2012
    Assuming it is a PHP server you have access to, you can use the PHP server could handle the part that JavaScript can't then use AJAX to send/recieve the necessary information. The hard part has already been handled for you apparently:


Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center



X vBulletin 4.2.2 Debug Information

  • Page Generation 0.09934 seconds
  • Memory Usage 2,903KB
  • Queries Executed 15 (?)
More Information
Template Usage (32):
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_global_above_footer
  • (1)ad_global_below_navbar
  • (1)ad_global_header1
  • (1)ad_global_header2
  • (1)ad_navbar_below
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)ad_thread_first_post_content
  • (1)ad_thread_last_post_content
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)headinclude_bottom
  • (7)memberaction_dropdown
  • (1)navbar
  • (4)navbar_link
  • (1)navbar_moderation
  • (1)navbar_noticebit
  • (1)navbar_tabs
  • (2)option
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available (6):
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files (26):
  • ./showthread.php
  • ./global.php
  • ./includes/class_bootstrap.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/functions_navigation.php
  • ./includes/class_friendly_url.php
  • ./includes/class_hook.php
  • ./includes/class_bootstrap_framework.php
  • ./vb/vb.php
  • ./vb/phrase.php
  • ./includes/functions_facebook.php
  • ./includes/functions_calendar.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_notice.php
  • ./packages/vbattach/attach.php
  • ./vb/types.php
  • ./vb/cache.php
  • ./vb/cache/db.php
  • ./vb/cache/observer/db.php
  • ./vb/cache/observer.php 

Hooks Called (70):
  • init_startup
  • friendlyurl_resolve_class
  • init_startup_session_setup_start
  • database_pre_fetch_array
  • database_post_fetch_array
  • init_startup_session_setup_complete
  • global_bootstrap_init_start
  • global_bootstrap_init_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • load_show_variables
  • load_forum_show_variables
  • global_state_check
  • global_bootstrap_complete
  • global_start
  • style_fetch
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • strip_bbcode
  • friendlyurl_clean_fragment
  • friendlyurl_geturl
  • forumjump
  • cache_templates
  • cache_templates_process
  • template_register_var
  • template_render_output
  • fetch_template_start
  • fetch_template_complete
  • parse_templates
  • fetch_musername
  • notices_check_start
  • notices_noticebit
  • process_templates_complete
  • friendlyurl_redirect_canonical
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • memberaction_dropdown
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • build_navigation_data
  • build_navigation_array
  • check_navigation_permission
  • process_navigation_links_start
  • process_navigation_links_complete
  • set_navigation_menu_element
  • build_navigation_menudata
  • build_navigation_listdata
  • build_navigation_list
  • set_navigation_tab_main
  • set_navigation_tab_fallback
  • navigation_tab_complete
  • fb_like_button
  • showthread_complete
  • page_templates