PDA

View Full Version : How can I find the network address of this computer?


Vbents
08-01-2006, 10:42 PM
Hi,

I want to write a snippet so that if the code is being on one specific computer (with a specific IP), it adds PORT_INTERSENSE = 4.

Since <network>.send() sends this info anytime it is used, is there an easy way to grab that address without sending to another computer?

Thanks,
Ben

farshizzo
08-02-2006, 09:46 AM
In Vizard 3.0 you can use the following to get the IP address of the computer:print viz.getComputerIP()In Vizard 2.5 the following code will work:viz.getcomputername()
print viz.IP_ADDRESS