hi every one imagine that i am in a local network how can i retrieve my servers ip with socket programming? i know that (hostInfo.AddressList[0]) retrieve my local ip but i need my server ip like the ones that site(ip-address.com) retrieve thatks
mehrdad333
Posts
-
ip address -
problem of socket programming with local iphi take a look at my codes:
-
problem by local iphi thank u for your answer and i really appriciate that here is my codes:
-
wpfwhat is wpf and where should i start?
-
network programmingi suggest you to start with socket programing
-
problem by local iphi everyone i have wrote two application by socket programing that connect to each other by ip the problem is that if listener program has an invalid ip(being in a local network) the other application can not access it i mean that i dont know how to connect to an application that is in a local network please help me
-
wia temp picture problemhi when i use this command for taking a picture :
wiaVideo[sendpic].TakePicture(out jpgFile);
the picture automatically save to this address: C:\Documents and Settings\All Users.WINDOWS\Application Data\Microsoft\WIA and after several use of program it gives this exeption: system.outofmemoryexeption how can i disable the picture automatically save in wia thanks
-
API explanation request [modified]thank u for your post where should i exactly change int to intptr and what is the difference thanks
-
wia user interfacehi in a project i saw a code that let a user to choose the camera i dont want to let them do this how can i here is the code:
foundID = System.Reflection.Missing.Value;
wiaCamera = (ItemClass) wiaManager.Create( ref foundID );thanks
-
Files between one or several computers? Via a netowor.?type this in google: c# file transfer using socket there are so many samplee and tutorials ;)
-
API explanation request [modified]at first excuse me because of confusing you i corrected the code and here is the site that i downloaded the file: http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=1339&lngWId=10\[^\]
-
API explanation request [modified]at first excuse me because of confusing you i corrected the code and here is the site that i downloaded the file: http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=1339&lngWId=10[^]
-
Files between one or several computers? Via a netowor.?hi you should search about socket programing at first you need to create a server program using sockets that can qeue clients for connection and after that create client programs that connect to server with ip and tcp protocol and for start use msdn socket programing
-
API explanation request [modified]hi there i am writing a program for video conference over internet i was looking for a sample for capturing a image from webcam i found that there is two way for doing this first is using WIA and second is using API i found a sample that use API (avicap32.dll) it work fine now i want to add another camera or webcam and the aouther is not accessible .i reviewed codes several times but i cant understand that. it is really complicated for me and as i cant understand the code i cant extend it for capturing image or video from any other devices synchronouslly here is the code and i would be really appriciated if you explan about the codes : the class for capturing and sending image:
using System;
using System.Collections;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Windows.Forms;
using System.Runtime.InteropServices;namespace WebCam_Capture
{
/// <summary>
/// Summary description for UserControl1.
/// </summary>
[System.Drawing.ToolboxBitmap(typeof(WebCamCapture), "CAMERA.ICO")] // toolbox bitmap
[Designer("Sytem.Windows.Forms.Design.ParentControlDesigner,System.Design", typeof(System.ComponentModel.Design.IDesigner))] // make composite
public class WebCamCapture : System.Windows.Forms.UserControl
{
private System.ComponentModel.IContainer components;
private System.Windows.Forms.Timer timer1;// property variables private int m\_TimeToCapture\_milliseconds = 100; private int m\_Width = 320; private int m\_Height = 240; private int mCapHwnd; private ulong m\_FrameNumber = 0; // global variables to make the video capture go faster private WebCam\_Capture.WebcamEventArgs x = new WebCam\_Capture.WebcamEventArgs(); private IDataObject tempObj; private System.Drawing.Image tempImg; private bool bStopped = true; // event delegate public delegate void WebCamEventHandler (object source, WebCam\_Capture.WebcamEventArgs e); // fired when a new image is captured public event WebCamEventHandler ImageCaptured; #region API Declarations \[DllImport("user32", EntryPoint="SendMessage")\] public static extern int SendMessage(int hWnd, uint Msg, int wParam, int lParam); \[DllImport("avicap32.dll", EntryPoint="capCreateCaptureWindowA")\] public static extern int capCreateCaptureWindowA(string lpszWindowName, int dwStyle, int X, int Y, int nWidth, int nHeight, int hwndParent, int nID); \[DllImport("user32", EntryPoint="OpenClipboard")\] public static extern int OpenClipboard(int
-
multiple webcam capturehi i used a program form(http://www.Planet-Source-Code.com/vb/scripts/ShowCode.asp?txtCodeId=1339&lngWId=10[^]) site for capturing video from webcam now i want to connect two or more webcams to program how can i please help me its vital thanks
-
mutli webcam connectionhi christian at first abaut program that u think i asked twice: i download a project that could connect to one webcam but i want to connect to several webcams i searched but i didnt find any example and second abaut knowlegment: i know c# as i created several programs but i write this down because im afraid of complex answers and i want them to answer me in a simple way .
-
mutli webcam connectionhi i want to know that how can i connect webcam to c# program specialy how to connect several webcams to it and please answer with full explanation because i am new in c# thanks in advance
-
how to capture image or video from ip camera?hello i am new in c# i would like to know that how can i connect to an ip camera and how to stream image or video from it please answer completely and consider that i dont know anything abaut ip camera and c# thanks in advance
-
problem with socket programing for image transformationohhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh :omg: :(( :(( :(( oh my god you solved my problem oh my god thank you thank you thanks please please let me kiss your foot :(( :(( i wont forget your name paulo zemek i wont forget you thanks thanks a milion thanks a bunch let me let me kiss your foot :(( :(( :(( :(( :(( :(( i am really crying here :(( :(( :(( :(( thanks thanks .................................. ................................................ ................................................. .................................................. ...................................................
-
problem with socket programing for image transformationthanks sockets doesnt have Getstream() methode only tcp client has it please if you guide me write more cause i am new to c# thanks in advance