Check if a port is open

前端 未结 10 916
萌比男神i
萌比男神i 2020-12-08 10:37

I can\'t seem to find anything that tells me if a port in my router is open or not. Is this even possible?

The code I have right now doesn\'t really seem to work...<

10条回答
  •  死守一世寂寞
    2020-12-08 11:27

    A port forward on the router cannot be tested from inside the LAN, you need to connect from the WAN (internet) side to see if a port forward is working or not.

    Several internet sites offer services to check if a port is open:

    What's My IP Port Scanner

    GRC | ShieldsUP!

    If you want to check with your own code, then you need to make sure the TCP/IP connection is rerouted via an external proxy or setup a tunnel. This has nothing to do with your code, it's basic networking 101.

提交回复
热议问题