How to check whether a port is open at client's network/firewall?

前端 未结 8 1422
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-11-30 13:13

This is solved at last with \"timeout\" attribute of jQuery AJAX (and JSONP). See my own answer !

Please see the updated part, I

8条回答
  •  旧巷少年郎
    2020-11-30 13:24

    Gotcha !!! I have solved my problem with JSONP and jQuery AJAX call. I discovered the timeout attribute of jQuery AJAX and my code executed fluently when the port was blocked or opened. Here is the solution for future visitors. Thanks to all answerers for contribution.

    
    
        
            
            
        
        
            
        
    
    

提交回复
热议问题