You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Bo Bodnar <bb...@cleversafe.com> on 2015/05/01 04:25:31 UTC

Re: Question on __machineIP()

Thank you, Sebb.  Problem solved by editing /etc/hosts file.




On 4/30/15, 11:39 AM, "sebb" <se...@gmail.com> wrote:

>The function uses
>
>InetAddress.getLocalHost()
>
>Try Googling for that
>
>On 30 April 2015 at 15:46, Bo Bodnar <bb...@cleversafe.com> wrote:
>> Greetings!
>>
>> I’ve a test script that uses this function call.  For diagnostic 
>>purposes, this script uses a Beanshell sampler that outputs the host’s 
>>name and its IP address (the latter using the function that’s in the 
>>“subject” part of this letter).  The intent is to eventually use this 
>>script in a distributed load generation environment, with the remote 
>>machines running Linux.  In stand-alone operation, I’ve tested this 
>>script under Windows 7, Mac, and older version of CENTOS.  It works as 
>>intended under Windows and Mac, but, on the CENTOS machine, the returned 
>>IP address is 127.0.0.1.  I seem to recall that others have run across 
>>this situation, but don’t recall the solution.  The Jmeter version 2.13 
>>and the Java version on the CENTOS box (running CENTOS 5.2) is 1.6.0_35. 
>> The Java version on the Mac is 1.6.0_65.  Any suggestions are greatly 
>>appreciated.
>>
>> Best regards,
>>
>> Bo
>>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
>For additional commands, e-mail: user-help@jmeter.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
For additional commands, e-mail: user-help@jmeter.apache.org