I want to access a Splunk remote server that has the same subnet mask, but of a different network from the client computer.
What are the steps to get the ipaddress of the remote server and insert the ipaddress to the url that maps to the Splunk REST endpoint?
I'm not sure I understand your question. The REST URL of the target server would be the splunkd port on that server. Accessing it via RESTful call would just be accessing the desired endpoint, regardless of what client you're on.