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

193
Views
Express - get user's ip family

Is there some property on req object to get ip's family (IPv4 or IPv6)? Or how can I figure it out? I want to change behavior based on this info. I'm not sure if checking if the string contains a colon is the right way.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

You can use the built-in net package for this:

  • net.isIPv4(input)
  • net.isIPv6(input)

You also have net.isIP(input) which will return 6, 4 or 0 if the parameter is respectively an IPv6, an IPv4, or not an IP.

about 4 years ago · Juan Pablo Isaza Report
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!