-
Notifications
You must be signed in to change notification settings - Fork 680
Specifying "localhost"
in server.listen
does not work.
#3491
Comments
I have tested it, and 'localhost' works in my own desktop. The mapping from |
@gluax what OS are you running? @AbnerZheng what OS are you running? |
I'm running on Windows 10. |
I'm running on macos. |
server.listen
Does not work."localhost"
in server.listen
does not work.
This may be related to this Node bug: nodejs/node#40702 |
Assuming that the issue is caused by nodejs/node#40702, you may find that the problem abates on node 16.x.x. You may also find that if you check the output of We just encountered and fixed what's likely the same issue with the Truffle dashboard. I wrote up a fairly in-depth explanation of the problem on the related issue at trufflesuite/truffle#5690, and the fix can be seen at trufflesuite/truffle#5699. |
I think this is related, on my machine (which, for context, produced the error @benjamincburns is referencing) if I run ganache on localhost and my
If I change my |
The following does not work but likely should mimic common behavior between other js libs.
There's no direct error and everything seems to function. However, after deploying a contract and trying to make calls to it(at least with the ethers lib from my own testing) results in an
Error: could not detect network (event="noNetwork", code=NETWORK_ERROR, version=providers/5.6.8)
.However, the following works as expected.
For consistency/commonly thought of behavior
'localhost'
should provide the same behavior as directly writing out the localhost address.The text was updated successfully, but these errors were encountered: