WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   How can I find the network address of this computer? (https://forum.worldviz.com/showthread.php?t=668)

Vbents 08-01-2006 10:42 PM

How can I find the network address of this computer?
 
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 .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:
Code:

print viz.getComputerIP()
In Vizard 2.5 the following code will work:
Code:

viz.getcomputername()
print viz.IP_ADDRESS



All times are GMT -7. The time now is 05:59 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC