Click here to Skip to main content
15,880,543 members
Everything / Network

Network

network

Great Reads

by pdoxtader
Learn how to view a remote machine's file system using your own explorer like window, and transfer files and folders by dragging and dropping in C# using the TcpComm TCP library
by Gamil Yassin
Types of Artificial Neural Networks
by DaveAuld
My adventure into installing a domestic CCTV system and wireless bridge.
by Gamil Yassin
Perceptron, when to use it and sample code

Latest Articles

by Ammar Albush 1997
Network Sniffer and Analyzer Program written in C# .NET 6.0 Windows Form (Sharppcap, PacketDotNet)
by Ammar Albush 1997
Network Sniffer and Analyzer Program written in C# .NET 6.0 Windows Form (Sharppcap, PacketDotNet)
by Ammar Albush 1997
Network Sniffer and Analyzer Program written in C# .NET 6.0 Windows Form (Sharppcap, PacketDotNet)
by SiretT
Console app to share internet connection with other network interface

All Articles

Sort by Score

Network 

19 Sep 2019 by pdoxtader
Learn how to view a remote machine's file system using your own explorer like window, and transfer files and folders by dragging and dropping in C# using the TcpComm TCP library
15 May 2014 by DaveAuld
My adventure into installing a domestic CCTV system and wireless bridge.
16 Sep 2017 by Gamil Yassin
Perceptron, when to use it and sample code
17 Sep 2017 by Gamil Yassin
Part 4 of a series of articles demonstrating .NET AI library from scratch
23 Dec 2011 by Dan Randolph
Builds on the existing RunRemote project to run commands on a remote server.
9 Jan 2024 by Ammar Albush 1997
Network Sniffer and Analyzer Program written in C# .NET 6.0 Windows Form (Sharppcap, PacketDotNet)
6 Dec 2021 by Michael Sydney Balloni
Interested in easily implementing REST communications in your Windows C++ apps?
20 Oct 2022 by Ammar Albush 1997
Network Sniffer and Analyzer Program written in C# .NET 6.0 Windows Form (Sharppcap, PacketDotNet)
12 Sep 2011 by Kim Togo
If you want to use TCP connection, then there is NO broadcast. TCP[^] is a point to point protocol.Check out UDP[^].
26 May 2012 by Richard MacCutchan
1. Don't do it when the server is running.2. Don't cut the wire.3. Same as 2.4. Get a more resilient system and disk array.These are all environmental problems and you cannot program round them other than taking some action in your clients if they cannot connect to the server. Some...
15 Dec 2010 by EFEaglehouse
Windows CE/Mobile printing client for LPR, LPRng, and Socket API.
6 Apr 2011 by Dylan Morley
SQL Express 2005 should be fine for what you're trying to achieve. What you need to think about here is how the SQL instance is exposed over the network and how clients are going to connect to it. This is going to be the same issue for any RDBMS you might choose, such as MySql[^]For...
6 Apr 2011 by Wendelius
Hi,The choice depends on many different factors, like:- performance requirements- underlying OS- upgradability- licensing issues (possible existing licenses at client etc)- estimated size in 1,2,5 years- number of (concurrent) users/transactions etcIf you were unable to...
5 Jun 2011 by Espen Harlinn
You can get quite a lot of the information for Manfreds' solution be leveraging Windows Management Instrumentation[^]The Win32 Classes[^] provides access to information about network adapters and performance counters.You'll also find some articles about WMI[^] here on...
12 Jun 2011 by #realJSOP
You could add a "command header" to the beginning of your byte array that is comprised of a known length, say 64 or 128 bytes or even larger (to give you room to grow). Then, you just plug in your command/param values into that area. As long as both the sending and receiving apps are aware of...
3 Jun 2012 by Shahin Khorshidnia
HelloLook at this:Sharing data among Windows Forms. Especially this part: "Is there a way to send a message back to the server from the client?"
12 Apr 2013 by Manfred Rudolf Bihy
You're trying this the wrong way round. The server should have one socket (IP-adress and port) on which it accepts connections and then it will spawn a separate thread for each client that connects. If you were to do it your way you'd need either 40 IP adresses and listening on one designated...
26 Jul 2016 by Zehaie M. Hailu
Python lends itself to the development of multi-threaded GUI and network applications.
15 Jun 2010 by Chris Maunder
In some unix flavours you can emulate a slow network connection to, say 4KB/s usingsudo ipfw pipe 1 config bw 4KByte/ssudo ipfw add 100 pipe 1 tcp from any to me 80Is there an equivalent in Windows?
23 Nov 2010 by Rod Kemp
There is nothing you can do to your code to do this it is all about network routing.The server binds to the local IP address of the computer it is running on, you then need to put port forwarding rules into any modem/routers/firewalls between that computer and the internet (public IP or ISP...
20 Jan 2011 by HimanshuJoshi
The socket level for SO_SENDBUF and SO_RECVBUF is SOL_SOCKET not IPPROTO_TCP or IPPROTO_UDP. The send and receive buffer socket options are handled a socket level in getsockopt and setsockopt. Check here[^] for more information.
27 Mar 2011 by @nuraGGupta@
just use ping commandFor example:ping google.comthis will show you the ip for google, and in the same way it can be done for any hostname.
6 Apr 2011 by Sergey Alexandrovich Kryukov
You already got an overview of the criteria, see the Answer by Mika.Now, you have something to select from and perform comparison. See http://en.wikipedia.org/wiki/Comparison_of_relational_database_management_systems[^] and...
25 Apr 2011 by Nish Nishant
This MSDN article is pretty well written with examples:http://support.microsoft.com/kb/169292[^][Update]-------------Here are a couple more links:http://packetlife.net/blog/2010/jun/7/understanding-tcp-sequence-acknowledgment-numbers/[^]Scroll down to the section titled...
5 Jun 2011 by #realJSOP
If you want to measure all bandwidth on the LAN, you'd have to somehow get the info from a box (router) that supports that type of monitoring and that is serving as your LAN's gateway to the internet. You could do this by simply using the WebClient object to log onto your router/gateway box and...
4 Jun 2011 by Manfred Rudolf Bihy
Kim already said it and I do agree that this is a most interesting question and I will give my two cents as I perceive the picture.First point I want you to clear for us: How strict is the requirement of bandwidth measurement? I need to elaborate on how I see this small detail. Measuring true...
10 Apr 2012 by Henning Dieterichs
Yes, it is possible as every tcp network packet has an IP, Port and Protocol-Identifier.It is even possible to run a TcpListener and an UdpListener on the same port, too.But you cannot bind two listener of one type (tcp or udp) to the same port.
29 Apr 2012 by Espen Harlinn
One place to start is here: WCF Data Services[^]Then there is Introduction to ADO.NET Data Services/RIA Services[^] By Sacha Barber[Update]Try replacing localhost with (local)Data Source=(local)Best regardsEspen Harlinn
29 Apr 2012 by Sandeep Mewara
Generally, it is surface area configuration error or sql service configuration issue. Have a look at this thread for potential reasons and resolutions: Resolving A network-related or instance-specific error occurred while establishing a connection to SQL Server[^]If needed, See steps for...
31 May 2012 by Oleksandr Kulchytskyi
Hi, first of all this feature can be reachable in .NET with help of P\Invoke and WinApi.General worfkflow process can be divided on the 2 stages:1) Retrieving all pc's connected via lan to a single network.2) Sending to each pc appropriate message.First part of workflow can be feasible...
1 Jun 2012 by Sergey Alexandrovich Kryukov
1) Both variants are very bad. This is a custom networking application, so it gives you enough freedom to avoid this polling approach. You need to use push, not pull technology (please see: http://en.wikipedia.org/wiki/Pull_technology[^], http://en.wikipedia.org/wiki/Push_technology[^]). Polling...
22 Jul 2012 by Volynsky Alex
Maybe it will help you:http://www.geekpage.jp/en/programming/linux-network/get-ipaddr.php[^]http://stackoverflow.com/questions/5401942/how-to-get-the-ip-address-of-the-accepted-in-bound-socket[^]
28 Mar 2013 by nv3
The main question is: Do you need to preserve context information from one to the next UPD requestion message?If not, i.e. if every UDP request contains all the information that is needed to answer it, there is no other reason to dispatch the requests to multiple threads than using the power...
10 Dec 2013 by Maxim Kartavenkov
Hello,You comparing the pointers but not the strings.First you are not allocating the memory for src and dst variables which may cause crash.To compare strings this way use strcmp or memcmp functions.char src[100],dst[100];strcpy(src , inet_ntoa(ip->ip_src));strcpy(dst ,...
19 Dec 2013 by Maciej Los
When you install MS SQL Server on local machine, its instance (by default) is visible on local computer only. If you want to use MS SQL Server in LAN, you need to enable TCP/IP connections.Please, read this: Enabling Network Access to SQL Server Express[^]If it won't help, please try to...
19 Sep 2017 by hansoctantan
In windows, instead of using "\" as file separator use "/".
5 May 2020 by Marcus Müller
Use Windows 10 build-in tools to configure VPNs for automatic reconnection after a connection is lost
23 Jul 2020 by honey the codewitch
Explore adapting Socket's async model to a task based one and adding some awaitable socket operations to your projects
9 Mar 2022 by SiretT
Console app to share internet connection with other network interface
2 Aug 2023 by Andre Oosthuizen
The problem you are facing is likely related to the way you are handling the data reception. Reading data from the stream using 'stream.Read' may not guarantee that you receive all the data at once, you should modify your code to read from the...
29 Jan 2024 by OriginalGriff
Yes, this happened after a couple of recent heavy DDOS attacks on the site lead to some "aggressive" IP blacklisting. You can contact the staff here: Bugs and Suggestions[^] and they will release your IP from it's confines!
9 Sep 2010 by CodingBruce
When you want an application to trigger on an event (timer, system, file, etc.), but you don't want the overhead of the service manager
11 Oct 2010 by Anthony Mushrow
You make a connection exactly the same as on a local network. There are however additional obstacles that you may need to overcome, such as firewalls and routers.To connect two computers that are behind firewalls or routers you will need a server that is directly connected to the internet...
1 Dec 2010 by Sandeep Mewara
Well, I am not much into C++, but out here it looks issue of security settings and permissions. You need to allow remote connections to the server, might be firewall permissions or so... try disabling the firewall and see. The kind of connection you are trying to make to server via client is...
4 Dec 2010 by Dave Kreskowiak
You cannot use the Local System account for your application. Lcaol System only has permissions to that system, nothing else. If your app is looking at each system to collect data, it'll have to run under and account that has permissions to get to that data on every machine. System and Local...
3 Jan 2011 by Rod Kemp
What you need is to look at port forwarding/port triggering on the LAN the server is connected to.What port forwarding does is when a connection attempt is made to a specific port on the public IP of the LAN the server is on the connection request get forwarded to the server, the forwarding...
20 Jan 2011 by #realJSOP
Linux isn't Unix. They're close, but there will be differences. Try this web site:Linux Socket programming tutorials[^]
5 Apr 2011 by Sergey Alexandrovich Kryukov
If it would be possible, it would be a very weak protection. Nobody in clear mind won't store non-ciphered passwords anywhere — they are never needed for authentication.[EDIT]To understand how to store authentication (it that is what your second question is about), learn Assymetric...
5 Apr 2011 by Wendelius
Here's one excellent article about AD queries Howto: (Almost) Everything In Active Directory via C#[^]
30 May 2011 by Sergey Alexandrovich Kryukov
I already answered nearly the same question. (What, is that the school assignment, the same one for a group of students?!)Basically, there are some variants: 1) custom Windows Service on each student's computer, 2) simple HTTP server on each student's computer, 3) some available HTTP server...
30 May 2011 by Espen Harlinn
Wouldn't it be better to create a multi user shared desktop?I guess you could alter/enhance this software[^].I guess that could be the ultimate "virtual teacher", or support tool :) Best regardsEspen Harlinn
23 Aug 2011 by Simon Bang Terkildsen
From Native Wifi IHV Service[^]InstallationGeneralAfter the sample is compiled, you must copy the binaries on to the target system and associate them with the matching Native Wifi-capable adapter. You can copy the binaries by adding an appropriate CopyFiles directive in the...
30 Oct 2011 by Abhinav S
Yes both would be different types of network structures. Reading a book on networks might help you out.However, here is an article[^].
12 Nov 2011 by Richard MacCutchan
If it's client/server, then you need to install all the server code and database on the server machine, and the client application on the others. If the customer's systems are not already networked then he will need to get them properly connected. Unless you are a qualified network engineer or...
5 Apr 2012 by Shahin Khorshidnia
Using WCF on Windows Phone 7: Walk-throughWindows Phone 7 Data Binding using WCF Service
10 Apr 2012 by wizardzz
Yes, as long as the port is different.
18 Apr 2012 by OriginalGriff
Getting the MAC addresses on a LAN is not as simple as it sounds!Here is a Tip that does it: Retrieving IP and MAC addresses for a LAN[^] - but don't expect to understand it quickly!The Screenshot bit I can't help with - I don't understand what you are trying to do.
18 Apr 2012 by OriginalGriff
You should talk to the people who created it - Genesys[^] - they should provide technical support and will know more about their product than we will. If they don't, then find another supplier and demand your money back!
14 May 2012 by Rahul Rajat Singh
You can implement it in 3 ways:1. Socket programming - Here you will have to send all the data in text form and the assembling/dissembling of data from text to data-set will be the applications responsibility. choice of protocols is available.2. Web-service - You can have a web-service...
14 May 2012 by Pete O'Hanlon
Given the fact that you want to implement duplex communication, and given the fact that WCF is a framework that allows you to use multiple different protocols, I would recommend WCF out of the choices you present. In order to get an idea on how to implement duplex communications in WCF, you...
18 May 2012 by emranallan
Server Application to remote your mobile device through wireless/wire connection not based on RAPI
29 Jul 2012 by OriginalGriff
Don't try to access it via SQL server - use the SqlCE connections instead.This means replacing:SqlConnection with SqlCeConnectionSqlCommand with SqlCeCommandand so forth.You will also need to provide a reference to System.Data.SqlServerCe (in system.data.sqlserverce.dll)
1 Nov 2012 by Dave Kreskowiak
This SHOULD just be a change in the connection string.But, you didn't say anything about the database engine you're using, so it's kind of impossible to say exactly what the change should look like. It's normally just changing the Server or DataSource portion of the string, but that depends...
11 Mar 2013 by Richard MacCutchan
The client IP address is obtained from the socket returned by the accept() function[^]. Your code is trying to get it from the listening socket.
21 Mar 2013 by enhzflep
As I mentioned in a comment, the way I do it is to call a callback function in the function that reads data from the connection. This callback sends notification to the main window that there is updated download progress available. The main window then displays this information.Here's a...
12 May 2013 by Sergey Alexandrovich Kryukov
I think that using threads with blocking sockets instead of asynchronous API is much better. In most cases, communication is sequential in its nature and the flow of operations is logically independent from other threads. Therefore, using a separate thread for each communication channel (in case...
14 Aug 2015 by Emiliano Musso
How to create a Windows Phone app to take timed pictures from camera, and upload them on an Apache webserver to view them remotely
16 Mar 2017 by Dave Kreskowiak
You have to run your web site under a different account, one specifically setup to run the site AND have enough admin permissions to make changes to the network configuration.The default ASP.NET account does not have permissions to make those changes.Other than that, it doesn't matter...
1 Jun 2018 by Member 13737597
This article shows how Windows generates IP header's ID field
25 Feb 2020 by Dave Kreskowiak
The major cost isn't going to be the webcams. It's going to be the infrastructure to connect them all and manage/store all the video for as long as Security wants it. As for which one is going to be the best for you, you're going to have to buy...
29 Jan 2024 by Richard MacCutchan
There is a specific forum for such problems: Bugs and Suggestions[^].
15 Jun 2010 by _Damian S_
Several different methods are discussed here[^] however they are all to do with testing websites... assuming this is what you want to do, you could probably find one you like!
15 Jun 2010 by PSK_
Chris,In my last project I was trying to setup a slow network to test the website performance but I didn’t succeed, due to some policy restriction I was not able to install the 3rd party software.I am not sure if any inbuilt tool available in windows for this, but definitely there are...
24 Jun 2010 by TheyCallMeMrJames
You're going to want to use WMI and the Win32_NetworkAdapterConfiguration class. I can't find anything that's exposed for gateway in the NetworkInformation namespace.There's actually a CP project here[^] on it. Cheers.
15 Jul 2010 by Simon Dufour
There's an example on this site.C# Sockets and Serialization[^]You might want to take a look at this library.Lidgren networking library[^]The problem with a multiplayer racing game is that things go fast. You might get desync issue or cars that warp everywhere. Multiplayer...
12 Oct 2010 by shakil0304003
You can use socket connection. For this you have to need a server pc, which have a real ip. all client application know the server ip & port. each client connect each other via the server.
2 Nov 2010 by Arindam Tewary
Hi,I dont think while developing the application you have any control where user(accessing from client machine) would print it. You at most can "fire" the "print" command but rest all is taken care by client's system confiuration.Therefore, you can set aside the idea of instructing your...
22 Nov 2010 by @nuraGGupta@
Can anyone provide me an idea of any C# code to find out that whether an IP is SSL certified or not along with certificates for SSL Versions? Any help or hint will be greatly appreciated.Thanks
30 Nov 2010 by Dave Kreskowiak
Yes, you can. Is it a good idea to directly expose an SQL Server to the Internet? No, it's not. Not unless you want someone to try and break into your SQL Server and mess it up for you.
3 Jan 2011 by Espen Harlinn
Take a look at MSMQ..Net API[^]C/C++ API[^]Otherwise you can always create your own communication system using the Windows Socket 2 API[^]Or use Windows Communication Foundation[^]RegardsEspen Harlinn
22 Jan 2011 by Andrew Brock
If the port is open on your computer and you want to see what is using it, you can use netstat -b from the command line.See Netstat[^] options on Wikipedia.If the service is not running and you want to know what might use that port, then see the List of ports[^] on WikipediaIf you...
24 Jan 2011 by Yusuf
Look at this [^]discussion forum. Here [^]is one of starting.
9 Mar 2011 by Sang Maharani Van Sparrow
Hai everyone..how i get lists client who connected in my access point using C# ? I think, i can get data from DNS Tables in my access point. But my problem is I don't know how to implementation to the code.. and I need your help.Thanks.
9 Mar 2011 by Sergey Alexandrovich Kryukov
Please see the overview I provided in response to a similar Question: multi-clients from same port number[^].—SA
26 Mar 2011 by Wendelius
The error message says it all, you have to deliver a parameter, since you have defined that NetworkInterfaceComponent must be passed to the method.private void button1_Click(object sender, EventArgs e){ ShowIPStatistics(); //
26 Mar 2011 by Henry Minute
Well you are getting it because you make a call to ShowIPStatistics() without any parameters.private void button1_Click(object sender, EventArgs e){ ShowIPStatistics(); //
26 Mar 2011 by Henry Minute
The NetworkInterfaceComponent is an enumeration. It has two possible values IPv4 or IPv6.Therefore you have to use either:private void button1_Click(object sender, EventArgs e){ ShowIPStatistics(NetworkInterfaceComponent.IPv4);}or:private void button1_Click(object...
5 Apr 2011 by ankitjoshi24
HiI would like to know if there is any particular way to access a database which is stored in a shared-password-protected folder. I would like to access the folder by providing the username and password in the program itself.The solution in either C# or VB6 (if possible) would be really...
5 Apr 2011 by Wendelius
If you're in a Windows environment the access privileges should be handled via Active Directory. As SA pointed out, no reason to store passwords or user names in programs.Also another thing. Is the database Access? If not and it's for example SQL Server then you don't need (or to be precise...
5 Apr 2011 by Abhinav S
Another useful link - http://milanl.blogspot.com/2008/08/retrieve-full-name-from-active.html[^].
6 Apr 2011 by Michel [mjbohn]
Depending on the size you need for the DB, there are several options for a free DB,as there are-SybaseExpress-Postgres-MySQLMy favourit for small to middle sized DBs is MySQL. But there are a lot of things you have to think of.Do you need transactions, stored procedures, large BLOBs,...
30 May 2011 by OriginalGriff
Assuming you have the Client and Server applications talking to each other (and if you don't you have bigger problems than screen shot transfers), then just take a copy of the Client screen with the client application, convert it to an image of some type, and send it to the server via the...
31 May 2011 by Member 4273922
Hi everybody i want to know .. is this any way to get network location from mobile number .. i already got one service but it's fake.Can anybody tell me how it is possible if i want to make my own.. application for it.. how much expense for it.
15 Jun 2011 by Sergey Alexandrovich Kryukov
How can you ask questions in such form: "anybody knows"? Many people here know this very well.First, if keys exist, they always send somewhere. Now, I feel you did not get it. How do you think, is it possible that two parties never meet, exchange data using some open channel and still can...
15 Jun 2011 by TorstenH.
simple approach:Decrypt in JAVA problem[^]..for "not so much security" systems. Depends on what you want to transmit on the network. this is a useful way when the stuff "just should not be readable by everybody". Implement that on both sides in case.
21 Jun 2011 by S Houghtelin
You can check to see if a port is being used by using SerialPort.GetPortNames Method.http://msdn.microsoft.com/en-us/library/system.io.ports.serialport.getportnames.aspx[^]Once a port is opened you cannot monitor the activity on a serial port, unless you are using a hardware device....
2 Aug 2011 by KenBonny
My boss said to use the Visual Studio deployment projects (because he knows they exist) and wants me to make an installer that can be run from any PC in the network to install to a server (if an admin is logged in to give the app the rights to the server).To give you an example: you're...
3 Aug 2011 by Michael Bergman
The real question is: is there a known problem with Windows' ReadFile(HANDLE hFile, LPVOID lpBuffer, DWORD nNumberOfBytesToRead, LPDWORD lpNumberOfBytesRead, LPOVERLAPPED lpOverlapped) function giving a return value of TRUE where hFile is valid, lpBuffer is a valid pointer,...