Hey all,
I would like to get all the basic network settings for a given device.
The IP addy is easy: ServerSocket.GetMyIp. But how do I get the Subnet mask, DNS-server(s) and the Default Gateway?
The normal Default Gateway can be calculated by using the IP and Subnet mask - but in some scenarios it can be placed strangely in the ip-scope. That's why I would like to get the assigned one.
So is there a way to get this information? Maybe using the reflection lib? or?
Thanks in advance.
I would like to get all the basic network settings for a given device.
The IP addy is easy: ServerSocket.GetMyIp. But how do I get the Subnet mask, DNS-server(s) and the Default Gateway?
The normal Default Gateway can be calculated by using the IP and Subnet mask - but in some scenarios it can be placed strangely in the ip-scope. That's why I would like to get the assigned one.
So is there a way to get this information? Maybe using the reflection lib? or?
Thanks in advance.
Last edited: