Update hostname and port before real request

Now, many companies use microservices to manage their applications. Each microservice may exist in multiple environments. They use the registry to register these services, such as eureka, console, etcd, etc.
I hope to use such URL addresses to request these services
http://system-user-service/path-to-get-data
This requires using pre-script to obtain the system-user-service string in the URL, and then go to the registry to query the correct port number and IP, such as
192.168.1.100 8080
Then replace it with the correct port of the service before the formal request. The final request is as follows
http://192.168.1.100:8080/path-to-get-data

Hey :wave:t2:

Welcome to the Postman Community :postman:

I’m not sure that there is a question here - Could you provide more information and context about what it is you’re trying to do / having trouble doing in Postman, please?

Are you trying to get some data from the response of that URL and then use this in another request?