Comments (12)
(([ip for ip in socket.gethostbyname_ex(socket.gethostname())[2] if not ip.startswith("127.")] or [[(s.connect(("8.8.8.8", 53)), s.getsockname()[0], s.close()) for s in [socket.socket(socket.AF_INET, socket.SOCK_DGRAM)]][0][1]]) + [None])
could you tell me what this give you?
from gnomecast.
Here is the result : ['82.216.111.26', None]
(with the import of socket, it wasn't working otherwise)
from gnomecast.
What version of python? Do you have a local firewall running?
from gnomecast.
Python 3.6
I've just switched from Debian to Fedora, and it seems that the firewall policy is quite different. I'll look into it.
from gnomecast.
can you do the following w/o the error?
with contextlib.closing(socket.socket(socket.AF_INET, socket.SOCK_STREAM)) as s:
s.bind(('0.0.0.0', 0))
from gnomecast.
I've disabled the firewall in fedora but still experience the same issue.
I've tried your code snippet and I've had no output, but no error.
from gnomecast.
Here is the result : ['82.216.111.26', None]
82? What does ifconfig show?
from gnomecast.
i switched the bind to the universal address for you. please try v0.2.11 to see if this is fixed. (prob. it will also error when the HTTP server is binding. i'd like to see the output for that.)
from gnomecast.
Sorry about the delay.
I've just upgrade to v0.2.15 and it is now working ! Thanks a lot ! :)
from gnomecast.
awesome! thanks!
from gnomecast.
I'm having this issue in Fedora 33; with python3.9 and pretty much the same results when issuing the commands. I get my public IP instead of my local IP.
from gnomecast.
I've fixed it by adding an entry to /etc/hosts
. Basically,
10.0.86.99 mydesktop.local mydesktop
So that gnomecast can get the proper IP. Now, it gets the internal IP; not the public one.
from gnomecast.
Related Issues (20)
- Error playing Brown Noise 8 Hours, for Relaxation, Sleep, Studying and Tinnitus.webm
- [Feature] Create as appimage
- Error playing Total Recall 1990 BR 720p Qmax.mkv
- GUI freezes on Ubuntu 20.04 when trying to play HOT 2
- Error playing Blade Runner 2049 2017 HDRip 2.18 om lv scarabey.avi
- Error playing Free.Guy.2021.HDRip.XviD.AC3-EVO.avi
- sticky subtitles HOT 8
- socket.gaierror: [Errno -2] Name or service not known HOT 1
- AttributeError: 'Chromecast' object has no attribute 'device' HOT 14
- Error playing 06-Lai-Power-Anemia-Spaghetti-Junction-Remix.mp3 (because it's actually a video somehow!)
- Invalid desktop files detected HOT 1
- exception
- Error playing 1080p.BluRay.x265-DiN.mkv
- Update package in PyPI to include pychromecast version fix
- Installation issue on Fedora 36 HOT 2
- broken tests on master
- Gnomecast casts video but without audio
- "Invalid stream specifier" error with ffmpeg
- Error playing 2024-02-03 18-40-38.mkv
- Unable to find Chromecast
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gnomecast.