realPro
realPro

Reputation: 1846

jMeter source address not working

When source address field is empty, all runs fine. When I put in an IP, even if it is my actual IP, I get an error:

Response code: Non HTTP response code: java.net.SocketException
Response message: Non HTTP response message: Network is unreachable: connect

I run Windows... Also I have already tried all the Implementations.

Upvotes: 0

Views: 585

Answers (1)

Dmitri T
Dmitri T

Reputation: 168002

There should be few pre-requisites met:

  • You need to have HTTPClient implementation (see HTTP Request sampler documentation)

    Source address field[Only for HTTP Request with HTTPClient implementation]

  • In case of single IP address:

    • The IP address needs to be available in the underlying operating system, it may be either IP associated with NIC or an IP alias
    • Relevant Source address type needs to be specified, in case of single IP it should be IP/Hostname

See Using IP Spoofing to Simulate Requests from Different IP Addresses with JMeter guide for more detailed information on the domain.

Upvotes: 1

Related Questions