Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

285
Views
Multiple IP addresses of a website, open one that works

Working on a search bar that links to the client's catalogue (located at a different URL). The catalogue website has two different IP addresses: local and external. If using on-premise Wi-Fi, the local IP address works but the external doesn't. I need to open whichever IP address is working for a client. It's a WordPress website where I have zero access to anything except their frontend so I'm pretty much stuck with JS.

As of now, I'm opening both links when someone clicks.

window.open(`IP_External?idx=ti&q=${document.getElementById('searchText').value}`, `_blank`);

window.open(`10.1.1.6/search?idx=ti&q=${document.getElementById('searchText').value}`, `_blank`);   

I want to check the external IP address. If it works or responds on time (say 5 seconds), that IP address should be used otherwise the local one. How do I do this? I don't mind using JQuery but have never used it before.

about 4 years ago · Santiago Gelvez
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!