B4J Question Getting Network Settings

aaronk

Well-Known Member
Licensed User
Longtime User
Hi,

Just wondering if anyone has found a way in getting the network settings from the device that is running the B4J app?

I am creating a non-UI app and I am trying to work out how to get the network settings from it.

I am running my B4J app on Linux Ubuntu.

I understand I can run ServerSocket.GetMyIP which will return the devices IP address, which works fine, but want to work out how to get:
- Subnet Mask
- Default Gateway
- DNS server

Anyone had any luck in getting this in B4J ?
 

Knoppi

Active Member
Licensed User
Longtime User
If you dont have root access then use 'ip addr'
 
Last edited:
Upvote 0
Top