0

Is there a way to check if an incoming connection on a TCP socket is coming from a LAN or not?

I'm currently checking the incoming address and seeing if it resides in the private network range (192.168.x.x/10.x.x.x etc)

Is there a better way to do it?

I'm particularly interested in solutions in Python and .NET if that helps.

redspidermkv
  • 503
  • 10
  • 25

0 Answers0