FPMI Net GetIp address

This might be a future request or it might already be possible.

When I run the fpmi.net.getIpAddress(), the system returns the main address of the PC. My question is what if the PC has more than one address? Should this feature not pick up a tuple of the IP’s that PC is on? Or if not can it?

I ask because I have a couple of PC’s that have dual network addresses, these PC’s are run by the system admins. We have one address on a 192.x.x.x and one address on 10.x.x.x I want to be able to use this as a way to check and make sure that some of the features of the system are only ran on machines with dual addresses.

Hope this has been clear. Thanks and have a great day.

I don’t think that feature is supported (perhaps with Java calls?). Can you track which computers are allowed by hostname?

You can do this yourself by accessing some Java libraries. See the NetworkInterface class. This should get you started:

from java.net import NetworkInterface eths = NetworkInterface.getNetworkInterfaces() for eth in eths: print eth