Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RangeError [ERR_SOCKET_BAD_PORT]: Port should be >= 0 and < 65536. #82

Open
Brunovski opened this issue Aug 9, 2019 · 1 comment
Open

Comments

@Brunovski
Copy link

The error occurs for domain simo.so

net.js:955
throw new ERR_SOCKET_BAD_PORT(port);
^

RangeError [ERR_SOCKET_BAD_PORT]: Port should be >= 0 and < 65536. Received whois.nic.so.
at lookupAndConnect (net.js:955:13)
at Socket.connect (net.js:931:5)
at Object.connect (net.js:156:17)
at Object.lookup

@samohan123
Copy link

It might be coz the localhost is not defined with the required syntax in the "hosts" file of the system.
The file can be located @:

=> etc/hosts
(above file for linux)
or
=> c:\ Windows \System32\Drivers\ etc \ hosts
(above file for Windows)

i.e. file has some wrong input.

So, Try replacing everything in that file with the text below as this is the default text that was always there in hosts file when it worked fine:

127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
fe80::1%lo0 localhost

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants