WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 08-01-2006, 10:42 PM
Vbents Vbents is offline
Member
 
Join Date: Sep 2005
Posts: 25
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 <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
Reply With Quote
  #2  
Old 08-02-2006, 09:46 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
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
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 10:54 AM.


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