#1
|
|||
|
|||
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 |
#2
|
|||
|
|||
In Vizard 3.0 you can use the following to get the IP address of the computer:
Code:
print viz.getComputerIP() Code:
viz.getcomputername() print viz.IP_ADDRESS |
Thread Tools | |
Display Modes | Rate This Thread |
|
|