Click here to Skip to main content
15,885,914 members
Everything / Networking

Networking

networking

Great Reads

by Kel_
Presents a real-time gauge implementation that can be used for building dashboards
by Pete Mourfield
Describes how to check for file existence on an FTP Server using VB.NET
by Thomas Daniels
A tip about how to create a local server in C#.
by Karel Donk
An example of building a peer-to-peer chat application for secure and private communication

Latest Articles

by Michael Sydney Balloni
This article explores UDP programming, LRU cache development, and .NET packet processing.
by Utku Ozan ÇANKAYA
Advantages of using a gateway and how I benefit from using it
by Karel Donk
An example of building a peer-to-peer chat application for secure and private communication
by Sandeep Mewara
See with a working demo how SignalR works and how it can be used

All Articles

Sort by Score

Networking 

23 Jun 2015 by Kel_
Presents a real-time gauge implementation that can be used for building dashboards
1 Mar 2011 by Pete Mourfield
Describes how to check for file existence on an FTP Server using VB.NET
28 Oct 2012 by Thomas Daniels
A tip about how to create a local server in C#.
12 Apr 2013 by OriginalGriff
You can't - that is the whole idea.A firewall is there to stop all applications that do not have a good reason from getting access to computers or networks. If your app could "bypass" it, then so could malicious applications, which none of us want.You can configure firewalls to let...
30 Oct 2021 by Karel Donk
An example of building a peer-to-peer chat application for secure and private communication
4 Oct 2016 by DaveAuld
It only took a year, but after a lot of blood sweat and tears, it works!
17 Oct 2018 by MehreenTahir
This article lays the foundation for getting started with Docker networking. Let's get our containers to talk.
6 Dec 2011 by formlesstree4
A simple way to do network programming
7 Feb 2012 by Sergey Alexandrovich Kryukov
We don't know what are your skills and habits. Easily? Hardly. If you wan to get anything good, anything at all — it's never easy. I would say easy is boring, how about you?Now, any language from your list would fit.(Of course assuming "VB" was just a bad joke.)—SA
19 Jul 2020 by Sandeep Mewara
See with a working demo how SignalR works and how it can be used
14 May 2010 by raju melveetilpurayil
using System.Net;using System.IO;using System.Drawing;using System.Drawing.Drawing2D;string url = "http://www.codeproject.com/App_Themes/Std/Img/logo225x90.gif"; Bitmap b; Uri uri = new Uri(url); WebRequest webRequest =...
11 Jun 2010 by Anshul R
You need to have sound knowledge in TCP/IP and P2P.For a quick solution, you have to use 3d Party Plugins or SDKs like this one[^]
11 Jan 2011 by metalheadstorm
Hi all, I have a client/server app. They both use asynchronous calls when receiving data. its build with TCP and is meant, primarily for sending files.A command is sent along a socket which is then 'converted' into and action with a simple switch case. If the client send the command...
24 Aug 2012 by pasztorpisti
TCP_NODELAY has effect only on sending, it doesn do anything with recv(). It turns on/off the nagle alorithm that makes bandwith usage better if you call send() on a socket often with small data sizes.Here is my guess: You exit your infinite loop when recv() returns zero or negative. This is...
25 Feb 2013 by Richard MacCutchan
You already posted this question at internet packet size help.....?[^]; if you have additional information to add then please edit the original.However, as I indicated in the previous question you can send a single byte via a socket. And if that byte only contains 1 significant bit of...
15 Apr 2013 by CPallini
The other, quite obvious, approach would be creating a thread per client (well, two threads per client).The adavantage would be a somewhat simpler code.
26 Oct 2013 by Zoltán Zörgő
1) Learn your lessons. We don't do homework.2) Look here: http://nmap.org/book/images/hdr/MJB-TCP-Header-800x564.png[^]3) This is incomplete. The header is at least 20 bytes long. You had given only 6. The first two questions can be answered (80; http), but for the third one, you need the...
12 Feb 2014 by Simon Jackson
Unity Multiplayer Games - a review
3 Apr 2015 by Mehdi Gholam
Use a timer : http://www.dotnetperls.com/timer[^]
21 Jul 2016 by Vyacheslav Voronenko
Article illustrates "infrastructure as a code" concept for automating Amazon VPC creation.
29 Sep 2023 by Richard MacCutchan
See Native Wifi API Sample - Win32 apps | Microsoft Learn[^]
6 May 2010 by Richard MacCutchan
I think perhaps you forgot to add Winhttp.lib to your linker options.
8 May 2010 by Dimitri Witkowski
You should reference this lib: Wininet.libThere are 2 ways to do this: 1. Add this lib in 'Linker' settings in project properties2. Add the following into your code: #pragma comment(lib, "Wininet")
19 May 2010 by Yusuf
I don't know. But doesn't the download limit apply to the tunnel you will be using? Because you will need your home internet access to connect to your work computer. Have you thought about VPN access? Here [^] is one way to do it.How about FTP? But that is going to utilize your download...
7 Jun 2010 by Cedric Moonen
Well, if you don't specify which problem you are having exactly, nobody will try to guess what it is. Furthermore, try to post only relevant code snippet, otherwise lot of people will simply not read all your code (there's just too much there).Did you try to use your debugger to narrow down...
21 Jun 2010 by Dalek Dave
That is a lot of code that people are not going to read through.Be more selective.What do you think is wrong, and where do you think it is in the code.What have you attempted so far?
20 Jul 2010 by Richard MacCutchan
From your description it would appear that your client needs two parts.The sender portion should create an arbitrary socket which connects to the server port 4001 and communicates as necessary.The client also needs a listener socket bound to port 5001 which will accept connections from...
20 Jul 2010 by Aescleal
If you accept the general definition that a server is something that listens for a connection you haven't really got a straight client and server here... Both what you're calling your client and what you're calling the server are actually both clients and servers.So your "server": -...
6 Sep 2010 by Dalek Dave
I know this is easily solvable, but for the life of me I cannot remember how to do this.When I boot up, the wireless network is off, and I have to hit Fn F11 each time to turn it on.As I am sure you are all aware, this simple action is annoying.How do I set it to auto connect on...
14 Jan 2011 by #realJSOP
You can setup a FTP server on the server machine, and give each client an account to upload files. .Net has a FTP object you can use as well.
10 Apr 2011 by Alexander Chubarev
I have a Client - Server solution that uses TCP to communicate. Everything was just fine until some client try to connect throe VPN. After debugging a similar condition I have notice that Client doesn’t get all sended bytes. For example:Sending (packet index – packet number – first byte in...
8 Apr 2011 by Sergey Alexandrovich Kryukov
I think you did not get fast response because your problem looks more difficult then an average one. Let's start…It may be a shift in message boundaries. You're trying to use too low-level approach (not really gaining performance) where you don't have distinct message boundaries...
19 Sep 2011 by Orcun Iyigun
For a better understanding of the TCP characteristics[^] please read the link. Hope it helps!Good luck.
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...
4 May 2012 by Mehdi Gholam
You should not use 127.0.0.1 as it is a loop back address which will not go on your network.You should be using something like 192.168.x.x addresses.
7 Sep 2012 by Manfred Rudolf Bihy
One thing that might have happened is that there were too many connections to the database server. This can happen if connections are not closed properly when you're done with them in your code. Well, they're not really closed (hopefully), but rather placed back into the pool of available...
8 Oct 2012 by Mehdi Gholam
Read this : http://en.wikipedia.org/wiki/Bridging_%28networking%29[^]
14 Jan 2013 by Zoltán Zörgő
It depends on your hardware. If it is a server, you probably can use some remoting feature for that (like iLo[^] on HP). Consult with your server vendor. On some desktops there is vPro[^] that can be also used to control power state.But these are not available for all hardware platforms. So...
25 Feb 2013 by Sergey Alexandrovich Kryukov
There is no such think as 1-bit package, quite apparently. The trick is: no matter what you do, you always create some application-layer protocol (http://msdn.microsoft.com/en-us/library/system.speech.recognition.dictationgrammar.aspx[^]) to conduct your application semantic in your network...
21 Mar 2013 by Albert Holguin
There's a TON of resources in regards to this topic on the internet (without us rewriting everything here). Sockets are a very popular means of interprocess communications so a lot of people have already written tutorials.Here's a few articles using Windows native...
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...
11 Apr 2013 by nv3
You probably have seen that as example in a Unix-based application. There the function sethostname exists, (although it would be called with strlen (name) as second argument, and not with sizeof (name).For an equivalent in the Windows world, CPallini has given you already the correct link.
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...
29 Nov 2013 by Sergey Alexandrovich Kryukov
The short answer is: because this is designed this way. A bit more serious: your "one would suffice" is nothing but your fantasy, related to lack of understanding how IP works. Your whole approach is wrong: you should first learn the basics of IP addressing (as the minimum) and only then do some...
4 Dec 2013 by Sergey Alexandrovich Kryukov
For this purpose, not only sleeping is not a "better way"; it is totally unacceptable because it causes race condition: http://en.wikipedia.org/wiki/Race_condition[^].Event if it works for you, it's just a matter of chance. It is not a legitimate way of thread synchronization. Sleeping has...
8 Jan 2014 by Ravi Bhavnani
You should educate yourself on the general principles of client-server apps - that would help you design a solution. There's no need to create multiple servers. A single server that offers multiple services (e.g. for chat, for retrieving a poker hand, for making plays, etc) will suffice./ravi
16 Jun 2014 by Thomas Daniels
Why banning a specific IP address is not always a good idea
5 Jan 2015 by Jeremy Falcon
Assuming you're not trying to write a virus...What you're asking for is impossible without a receiver program on the remote machine. Nowhere does Windows automatically process sockets and execute them as a Windows API call. You'd need a program to receive the packets and them process...
5 Jan 2015 by Dave Kreskowiak
1) You can launch a remote process using WMI, but it can NOT be an interactive process. This means that the user logged into the console will NOT see it running at all. For example, you can launch Notepad, but it'll sit there waiting for input it'll never get and the user will not see it.2)...
13 May 2015 by Jalal Ali
A guide on sockets, and how to send objects across them
29 Jan 2016 by ZurdoDev
Sure, the first 2 results of google have exactly what you need. Google[^]1. Exposed node problem - Wikipedia, the free encyclopedia[^]2. Hidden node problem - Wikipedia, the free encyclopedia[^]
29 May 2016 by Marc Clifton
> I think that the problem is related to port-forwarding and ip-addressing,I doubt it. Run "ipconfig" on the server to find the IP address the client should use to connect to.You probably have to open the port in Windows Firewall on the server.Also, how is it you don't know the port...
5 Aug 2016 by bling
QUIC and HTTP/2QUIC, a multiplexed stream transport over UDP - The Chromium Projects[^]
2 Sep 2021 by Richard Deeming
Assuming you're accessing the demos on the local PC, you can use the HOSTS file to map dummy domain names to the loopback address. Run notepad as administrator, and open C:\Windows\System32\drivers\etc\hosts - the file has no extension, so...
15 Oct 2021 by Greg Utas
Let's say you have 1M characters and that each character requires 1KB of data. That's still only 1GB, so just shadow the entire database in memory and only do commits when necessary. Frequently re-importing the data after asking the database to...
29 Nov 2022 by Michael Sydney Balloni
This article explores UDP programming, LRU cache development, and .NET packet processing.
25 Apr 2010 by Inam86
I am trying to create an iphone application that allows me to connect my iphone to an ip camera. The way I am going about this is to create a server/client via a PC. PC acting as a server and the iPhone acting as a client. So basically I would like any information that will help me in creating a...
27 Mar 2010 by polska03
If I want to put a firewall to filter out messages containing certain words or phrases, then would I need to put that at the domain gateway or at the domain mail server? I am still confused at the diffrence. Please clarify.
16 Apr 2010 by Rod Kemp
Your application behind the NAT router has to initiate the connection, and keep it open. The external system then has to use that connection to communicate back to the originating system, it can NOT work the other way around without changing the router configuration.It doesn't matter if a...
7 May 2010 by guytal
Hello,I write C program in Linux and I use inter-process communication.After I create "mail box" using msgget() function I want to know what is it's size.And I want to increase this size.I think I should use msgctl() function, but I don't know how.Does someone have some...
20 Apr 2010 by OsoreWatashi
Hello,I'm currently working on a project to close connections on demand by my application. It is currently able to view all open connections by using the GetTcpTable/GetTcpTable2, GetTcp6Table/GetTcpTable2, GetUdpTable and GetUdp6Table functions in the Windows Iphlpapi.dll. Also I've managed...
1 May 2010 by Moak
send() and recv() will definitely NOT stop at a \0 character and they are the right functions to use. Without seeing your source code it's hard to help, the problem could be in the client or the server side.Maybe have a look if you're using any of the normal string handling functions that...
6 May 2010 by Member 3051621
hello everybody, There is a problem i encountered when i develop a project. The problem is my software must be deployed on four machines(four instances) and those instances communicate each other to acquire other instance's state and decide the state of itself, is there some protocol or...
6 May 2010 by Chris Trelawny-Ross
Have you considered setting up one of the machines as a web service? Then all machines (including the one hosting the web service) can simply be given the machine name hosting the web service, and the service can then be a hub for passing communications between all connected clients?
7 May 2010 by Peace ON
Following link might be useful.Web Data Extraction by Crawling using WINHTTP and Document Object (DOM) Instantiation[^]Hope this will help!
9 May 2010 by Moak
Member 3051621 wrote:those instances communicate each other to acquire other instance's state and decide the state of itself, is there some protocol or methods to do such work?There is no protocol that I'm aware of, but you could use a multi purpose protocol like HTTP or XML-RPC[^] if you...
13 May 2010 by kivanc.imer
Hello, I am trying to use connectionless async UDP listener.I need to get Remote Endpoint to use in processes and i can get remote Endpoint info with udpClient.EndReceive(ar, IP_Remote_End) command.But as you can see I am stopping the listener for a few milisecs.I lost a few packets in this...
13 May 2010 by yasser.enpc
My question is:How can I transfer a (large) file in UDP. Because I can't transfer an image lager than 50 kb with UDP. I am using C#. Please help me thanks
13 May 2010 by Sandeep Mewara
Adding to what all you have already looked at... there are hidden files too on your system... operating system related and software related. Use any cleaner (lets say CCleaner) and get all what max possible. Apart from them, if your space keeps on tending towards zero.. you got a virus!...
21 May 2010 by d3vin001
Problem description: My work computer has no download limit, but my home computer has 10 GB limit after which the connection goes down to 5 kb/sec.Goal: Use the work computer as a server; create a tunnel from home-> work in order to utilize the network speed.Question: Is this possible...
7 Jun 2010 by Niklas L
You have memory leaks in 4 places. Search for 'new' and then search for 'delete'.Did I win?
12 Jun 2010 by anjan kant
Hi Dear, You can add Windows Live Messange in your code. You can download it from internet.
22 Aug 2010 by Nyarost
Hi,1. Windows or Linux?2. If windows then WinSock23. If linux then socket (7)4. QT: hereIt is a good start for network programming. Personally I've implemented payment processing scripts. So I think I may help you.
25 Aug 2010 by _rubinho_
I'm writing some code in C# for the first time which requires talking to a network attached device using HTTP. Unfortunately the device is broken and so I cannot use the HttpWebRequest/HttpWebResponse classes, so I'm having to do it myself with TcpClient and NetworkStream. I've got the...
29 Oct 2010 by Ganesh Kumar Kaki
Hi Rajesh.Thanks for your post.But actually my problem is i want to access a PC which is in Remote Location. Like Remote Desktop utility in WINDOWS XP Operating System i want to access others PC which is not in my Network.Reply me i need it UrgentThank You.
20 Nov 2010 by jim lahey
Streaming with WCF might be for you:[http://msdn.microsoft.com/en-us/library/ms731913.aspx]
16 Dec 2010 by User 5474275
I apologize to everyone for not getting back sooner.Anyway, as you know error 415 is a media type error. Quite vague error description. They should rather rename it to Content-Type error, this is because error 415 related to the content type in the HTTP Header.If any one who has this error,...
21 Feb 2011 by makman99
I used the Microsoft Detours to hook the send/recv functions of a process and run all data through my application before sending through the target process.
19 Apr 2011 by #realJSOP
Simply don't share them. If they're not shared, they can't be accessed by any other system.
27 Jun 2011 by OriginalGriff
Good luck!Your major problem is going to be synchronizing the sound to the projector output: You will be dealing with umpteen different devices, all of which have their own idea of time. It won't take much for any tiny imbalance to be noticeable - you would be surprised how little we can...
4 Jul 2011 by OriginalGriff
Have you plugged your PC in?Is the router turned on?Are there any other devices on your network?Can they see each other?After that, we might be able help...
7 Jul 2011 by Prerak Patel
Simple Messenger - A C# MSN Messenger-like Chat Application[^]http://code.google.com/p/ipmessenger-dotnet/[^]
9 Aug 2011 by #realJSOP
Google is your friend:http://www.joshgentry.com/networking/subnet.htm[^]If that link doesn't blow up your skirt, this google search phrase is good for over 1.5 MILLION results: "calculate subnet from IP"
14 Oct 2011 by Richard MacCutchan
Just add the message length to the beginning of your message as an integer value (don't forget to convert it via htonl()[^]. You could also send this value independently of your actual text and let the receiver re-assemble it when handling the input messages.
1 Dec 2011 by Richard MacCutchan
This forum is for technical questions, not for explanations of scientific papers.
7 Feb 2012 by Ashish Tyagi 40
I would suggest - C# For rapid development,C++ for better performance.And if you are good with boost(C++) then you can develop repidly in C++ as well.You can also use C++ for chat server and C# for chat client(GUI).
13 Mar 2012 by #realJSOP
More seriously, you would have to either configure the router to doisallow access to a certain URL, or you would have to establish a group policy for the domain and push it out to the workstations. The group policy could be something as simple as a HOSTS file that redirects the URL to localhost...
21 Mar 2012 by fjdiewornncalwe
You may want to start with this article: Howto: (Almost) Everything In Active Directory via C#[^]
30 Jun 2012 by suvam8694
i want to study in detail about the networking concepts in C including sockets, implementing TCP/IP and other protocols.i also want to learn the SSL enabled networking using C. I don't want to use any third party library instead i want to learn the core and the advanced concepts in this...
11 Aug 2012 by Sergey Alexandrovich Kryukov
Start from learning what village people are interested in, what are their problems. The rest of this answer will depends on the result of your learning.Good luck,—SA
31 Aug 2012 by Kashinath Patil
public static bool IsLocalIpAddress(string host){ try { // get host IP addresses IPAddress[] hostIPs = Dns.GetHostAddresses(host); // get local IP addresses IPAddress[] localIPs = Dns.GetHostAddresses(Dns.GetHostName()); // test if any host IP equals to any local IP...
31 Aug 2012 by Mohamed Mitwalli
Hi , It will be faster if you Google it by yourself Google[^]Best RegardsM.Mitwalli
1 Sep 2012 by ridoy
http://www.csh...
18 Sep 2012 by Grant Curell
IP checksum implementation in python
22 Sep 2012 by Sm.Abdullah
hi, I am working on simple Client Server Application, it is just like a chat Messenger. I am using Client Server approach. My application works fine on LAN Local Area Network.but when it try to communicate to sever out side the LAN. Then there is no response to Client. while i know the...
19 Oct 2012 by Ambesha
reach...