Re: [fpc-devel] Function to find if IP address is local

2023-01-09 Thread Michael Van Canneyt via fpc-devel
On Mon, 9 Jan 2023, Ondrej Pokorny wrote: On 09.01.2023 09:08, Michael Van Canneyt wrote: On Mon, 9 Jan 2023, Ondrej Pokorny via fpc-devel wrote: Is there a routine in RTL to find out if a given IPv4 address is from the private address range (10.* etc)? No, not to my knowledge. Feel free t

Re: [fpc-devel] Function to find if IP address is local

2023-01-09 Thread Ondrej Pokorny via fpc-devel
On 09.01.2023 09:08, Michael Van Canneyt wrote: On Mon, 9 Jan 2023, Ondrej Pokorny via fpc-devel wrote: Is there a routine in RTL to find out if a given IPv4 address is from the private address range (10.* etc)? No, not to my knowledge. Feel free to add it somewhere in fcl-net. Here it is:

Re: [fpc-devel] Function to find if IP address is local

2023-01-09 Thread Michael Van Canneyt via fpc-devel
On Mon, 9 Jan 2023, Ondrej Pokorny via fpc-devel wrote: Hello! Is there a routine in RTL to find out if a given IPv4 address is from the private address range (10.* etc)? No, not to my knowledge. Feel free to add it somewhere in fcl-net. Michael. _

[fpc-devel] Function to find if IP address is local

2023-01-09 Thread Ondrej Pokorny via fpc-devel
Hello! Is there a routine in RTL to find out if a given IPv4 address is from the private address range (10.* etc)? Thanks Ondrej ___ fpc-devel maillist - fpc-devel@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-deve