How can I get the server address?
See original GitHub issueHi, how can I get the server address?
import app from './app'
const client = supertest(app)
client.get('/api/customers').then(response => {
})
// how do I find out what port supertest is using?
Thanks.
Issue Analytics
- State:
- Created 7 years ago
- Reactions:2
- Comments:5 (1 by maintainers)
Top Results From Across the Web
What Is My Server Address? - Knowledge base - ScalaHosting
The server address is an external IP address that connects your computer to the Internet Service Provider (ISP), enabling access to various ...
Read more >What is My Server Address? | HostGator Support
Log in to your Customer Portal. · Select Hosting from the left-hand menu. · Locate your hosting package, then click the Manage link....
Read more >Find your IP address in Windows - Microsoft Support
Select Start > Settings > Network & internet > Ethernet. Under Properties, look for your IP address listed next to IPv4 address.
Read more >Finding the Host Name, IP Address or Physical Address of ...
First, click on your Start Menu and type cmd in the search box and press enter. A black and white window will open...
Read more >How do I find my server IP address? - Quora
First, click on your Start Menu and type cmd in the search box and press enter. A black and white window will open...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The
Test
object returned byrequest()
is also referenced in theResponse
object. For folks landing here later, here’s a stand-alone callback example using"supertest": "^6.1.3"
and"express": "^4.17.1"
which demonstrates four ways to get the host:Note that
request.host
is not populated untilrequest
has beenend()
-ed (or awaited as in @t3hmrman’s example).