abhiTronix / vidgear

A High-performance cross-platform Video Processing Python framework powerpacked with unique trailblazing features :fire:

Home Page:https://abhitronix.github.io/vidgear

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Putting a client IP into the Server code?

mrazadal opened this issue · comments

Issue guidelines

Issue Checklist

  • I have searched open or closed issues for my problem and found nothing related or helpful.
  • I have read the Documentation and found nothing related to my problem.
  • I have gone through the Bonus Examples and FAQs and found nothing related or helpful.

Describe your Question

For those used to the idea that a "server" provides their address to a client, then you should recheck your preconceptions! Please read the Netgear instructions carefully, and you will note that it is the client device that defines the IP that is provided to the server config. If you get this the wrong way (using the server IP on the client), then you will get a zmq.error.ZMQError error. Make sure it is the client's IP shared across the two systems.

Can anyone elaborate on the above paragraph?

I have the following setup: 1 server with a camera and 2 clients are trying to access it. Considering the above paragraph, how is it possible that the server is running all the time and waiting for the clients to connect, or in other words, how the clients can find the server streaming video? The server and clients are connected to the same router.

Terminal log output(Optional)

No response

Python Code(Optional)

No response

VidGear Version

0.3.2

Python version

3.8

Operating System version

Windows 11

Any other Relevant Information?

No response

Thanks for opening this issue, a maintainer will get back to you shortly!

In the meantime:

  • Read our Issue Guidelines, and update your issue accordingly. Please note that your issue will be fixed much faster if you spend about half an hour preparing it, including the exact reproduction steps and a demo.
  • Go comprehensively through our dedicated FAQ & Troubleshooting section.
  • For any quick questions and typos, please refrain from opening an issue, as you can reach us on Gitter community channel.

For those used to the idea that a "server" provides their address to a client, then you should recheck your preconceptions! Please read the Netgear instructions carefully, and you will note that it is the client device that defines the IP that is provided to the server config. If you get this the wrong way (using the server IP on the client), then you will get a zmq.error.ZMQError error. Make sure it is the client's IP shared across the two systems.

@mrazadal, I agree, this is somewhat unconventional when compared to what we typically encounter in our daily experiences. Actually, The term "Server" associated with machine that sends frames, while "Receiver" is associated with the one receiving those frames, but this works opposite when ZMQ server-client is considered. Don't worry; it's not a significant issue. You can easily switch roles by simply changing variable names in your Python script.

I have the following setup: 1 server with a camera and 2 clients are trying to access it. Considering the above paragraph, how is it possible that the server is running all the time and waiting for the clients to connect, or in other words, how the clients can find the server streaming video? The server and clients are connected to the same router.

@mrazadal If you went through docs carefully, I assume, you must be aware with advanced multi-clients mode: https://abhitronix.github.io/vidgear/latest/gears/netgear/advanced/multi_client/, also for any quick questions like this, please refrain from opening an issue, as you can reach us on Gitter community channel. Hope this helps :)