Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6319541
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T15:49:23+00:00 2026-05-24T15:49:23+00:00

I want to ask how could I stream images using C# to clients which

  • 0

I want to ask how could I stream images using C# to clients which are not local.

The idea is to let users from other computers see the images coming from the webcam connected to my PC, by typing the IP of my computer to their webbrowser.

I have succeeded in making it locally – when I access the 127.0.0.1 address on my computer, it works.
I have tried using WCF, and also TcpListener:

listener = new HttpListener();
listener.Start();
HttpListenerContext context = listener.GetContext();
HttpListenerResponse response = context.Response;
System.IO.Stream output = response.OutputStream;
...

But, when I try to make it work from outside my local network – I fail to.

My question is like this:

-Do you know any library in C# which will easily let me listen to requests and answer them by a Stream? (I am trying to let browsers access the images stream which I send to them. it works nicely locally…)

-Maybe you know of a different approach which will ease the task?

-Besides, to which address should I listen when trying to broadcast to the outside world? 127.0.0.1? the address which I see on WhatsMyIp sites?

Thank you Very Much!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T15:49:24+00:00Added an answer on May 24, 2026 at 3:49 pm

    Webcams with built in networking typically stream images back using MJPEG/MIME multipart.

    If you have a camera with built-in networking, then it most likely already supports streaming an MJPEG stream over the network. Being able to access the camera from outside your local network is a matter of configuring your home router to pass external requests (probably on port 80) to the camera’s IP address (this is known as NAT configuration). The exact process for doing this will depend on your router, but it should be fairly easy to configure.

    If you have a camera without networking built-in you can build a ‘proxy’ on your home computer that will listen for network requests from external clients, fetch images from the camera, and send the images back as parts within the response stream. Once you have the proxy written, it will be just like the network camera in terms of external access–you will need to configure your router to allow external access.

    HttpListener would be a good choice for implementing the proxy. The main work here is formatting the response.OutputStream according to the MJPEG/MIME multipart convention. Here I would recommend using StreamWriter (for the textual parts) and Image.Save for the images. Keep in mind that the MJPEG response contains a combination of textual data (for the MIME/multipart headers and boundaries) and binary data (for the actual JPEG images) contained within the MIME/multipart body. If you need to support streaming to multiple clients concurrently you will also need to use threading.

    As far as the IP address to use HttpListener supports a + or * notation that avoids the need to specify any IP address. For example: http://+/Stream/ See MSDN for more information.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

want to ask user to input something but not want to wait forever. There
I want to ask how other programmers are producing Dynamic SQL strings for execution
I want to ask in which phase of Control Execution Lifecycle is the Server-Side-Code
I want to ask how can one write a software application which can automate
Just want to ask around before implementing own's solution using javascript and css. I
I am going to ask for something I could not find on Stackoverflow. I
I just want to ask if anyone could help me write that image gallery?
I want to ask you about sending files using WCF. I want to implement
I want to ask that how could we embed a flash banner so that
In my web site, I want to ask the users for permission to manage

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.