Open gpolles opened 6 years ago
What do you get for socket.gethostname()
and socket.gethostbyname_ex(socket.gethostname())
? With that config, I wouldn't expect this warning to appear unless the hostnames actually don't match.
Hi minrk,
In [4]: socket.gethostname()
Out[4]: 'g-omen-866-264'
In [5]: socket.gethostbyname_ex(socket.gethostname())
Out[5]: ('g-omen-866-264', [], ['127.0.1.1'])
getting the same warning all of a sudden. Here's my values for socket.gethostname() and socket.gethostbyname_ex(socket.gethostname()):
'surfer-172-29-13-53-hotspot.internet-for-guests.com' ('surfer-172-29-13-53-hotspot.internet-for-guests.com', [], ['83.218.160.135'])
just trying to run a local notebookserver with an ipcluster on my laptop. my system:
{'commit_hash': '7f10f7bb3',
'commit_source': 'installation',
'default_encoding': 'UTF-8',
'ipython_path': '/Users/klay6683/miniconda3/envs/stable/lib/python3.6/site-packages/IPython',
'ipython_version': '6.4.0',
'os_name': 'posix',
'platform': 'Darwin-16.7.0-x86_64-i386-64bit',
'sys_executable': '/Users/klay6683/miniconda3/envs/stable/bin/python',
'sys_platform': 'darwin',
'sys_version': '3.6.5 | packaged by conda-forge | (default, Apr 6 2018, '
'13:44:09) \n'
'[GCC 4.2.1 Compatible Apple LLVM 6.1.0 (clang-602.0.53)]'}
I have the same problem as OP socket used is 127.0.1.1 and therefore it won't connect.
Yeah, it's just a warning, low priority. But also an easy fix, maybe? The reason is because the ip_for_host call returns 127.0.1.1 instead of 127.0.0.1
Quoting from the debian reference manual:
Not sure if needed but there is ipython info: