Click here to Skip to main content
15,891,863 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 Title

Networking 

27 Jan 2014 by ilostmyid2
hitwo computers are located on a LAN. one of them is Windows (client) and one of them is Ubuntu 12.04 (server). what i want is to shape the traffic between these two while no other traffic from and to client get altered. for example i want to change rate of what i get or send to the server...
15 Aug 2022 by ilostmyid2
I tried my best in the following program. But it doesn't establish the bridge between two network cards. Would you please review it and say what's wrong? Thanks OS: Ubuntu 20.04 // This is a program which is going to make the bridge between two...
10 Mar 2021 by KarstenK
looks like you need some Debugger tutorial. A "bridge" may be not the best word, but establish a connection between two hosts which sounds more than Networking and Socket Programming Tutorial in C. ;-)
15 Sep 2013 by OriginalGriff
We do not do your homework: it is set for a reason. It is there so that you think about what you have been told, and try to understand it. It is also there so that your tutor can identify areas where you are weak, and focus more attention on remedial action.Try it yourself, you may find it...
19 Dec 2013 by Member 10478484
I'm writing an application that has to make a connection on a socket to a set IP and port. During the lifetime of this socket connection, I'm required to listen on a specific port and respond when a message is received on the same port.The application is part of a complex multi threaded...
19 Dec 2013 by CHill60
Without seeing the actual code it's quite difficult to assist. However will this article help Multi-threaded Client/Server Socket Class[^]?
28 Dec 2013 by Albert Holguin
This sort of sounds like you may be accidentally using the same socket on different ports. Check to make sure each one has his own socket and they're not somehow using the same socket identifier. Also, make sure that your listening thread isn't terminating early for one reason or another.As...
20 Mar 2015 by Michael Haephrati
A C++ client for uploading documents to your Google Docs account
1 Jun 2011 by SimpleData
Hi,I am trying to send a big file over a TCP connection using NetworkStream and TCPClient. Both the client and the server is written in C#.There is no problem while transferring small files around the size of 300KB. My buffer size is 2KB and here is how the protocol works.-Server...
1 Jun 2011 by Sergey Alexandrovich Kryukov
If you really want to keep to pure client-server paradigm, server cannot request anything. Server is purely passive. If you want to implement some inversion of control, it's fine but don't call it client and server. You application does not need it.— Client: I'm sending a file: name is...
4 Aug 2011 by Member 8015046
Hi I am currently a CS student who finished their freshman year. The current languages I am familiar with are C#, VB, Java, and Python. I know some query language and used a couple of SQL databases before. I am also familiar with IIS.I have looked up am undergraduate internship for next...
4 Aug 2011 by Espen Harlinn
The GNU tool chain is the primary development tools for linux, and it's available for most modern variants of unix - and quite a number of old ones too.You can run Lnux under VirtualBox[^] for windows. It supports 64-bit virtual machines under a 64-bit OS.Microsofts tools are primarily...
4 Aug 2011 by Emilio Garavaglia
I have to partially disagree about C vs C++ transition.That's NOT easy: it SEEMS easy, because C++ retain about 90% of C.But it adds 400% more.This ASCII Art can give you an idea of the concept: C programmers leave here .
17 Sep 2013 by Adrijan Seferi
To whom it belongs 127.127.127.127 ip adress ?
17 Sep 2013 by Ron Beyer
You.Its a loop-back address. Its on your computer. Hack away.The Loopback Addresses[^]
15 Dec 2015 by Member 10657083
I've just recently started playing around with winsock. I have however ran into a bit of a snag. How would one using the code below keep the client running while it accepts multiple transmissions from the server. I've tried to fix this myself however I am uncertain on how to do so.int...
15 Dec 2015 by CPallini
Multithreading: usually blocking I/O calls are handled in separate threads.
15 Dec 2015 by Richard MacCutchan
Create a loop that continues to sit on a recv call. Terminate the loop only when you receive a quit call from the server. However, your code is not very logical. The usual sequence would be:connectLOOP: send a message to the server receive a response if not "quit" THEN GOTO...
14 Apr 2010 by akshvedh.singh
Hello, I gotto make a mac filtering module.For this i need to fetch the mac/ip addresses of the incoming request packets(WLAN).I have to program this in windows.Can anyone please suggest me how to go about?The understanding that i gained through research says to fetch the mac address from...
14 Apr 2010 by Michel Godfroid
There is no reliable way of doing this at the application level. Ip is on level 3, and MAC is on level 2. Level 2 is implemented in the driver (or in the firmware)). Even if you succeed in getting the MAC address at session establishment, there is no guarantee that this is the mac address of the...
22 Mar 2011 by Sandeep Mewara
Why to repost[^]? You were already replied there. Use comment feature to interact with the answerer. Use 'Improve Question' link to edit/update the question. Please follow it there and update the question with the code there.
16 Jan 2012 by amertarekt
I want to make my website on my home computer can be accessed all over the world from any computer at first i make my home computer to have fixed local ip and fixed public ip to be sure that they will not change any time second i put my website on the IIS and make it can be accessed in...
11 Oct 2013 by Member 10277889
What are the two types of services that the Internet provides to its applications?plz give me appropriate answer....i m hvng my exams
11 Oct 2013 by Mehdi Gholam
Exams are to judge your ability not someone else.
25 Nov 2014 by ali sedighian
HelloI want To See Code Of Advanced Ip Scanner Or A Project(If Not One,Several Projects) Like It That I Can Do These Things:1.Find Out Manufacturer Of An IP Device.2.Operating System Of An IP Device.3.Can Access To Share Folder Of An IP Device.4.If It Has ftp I can Access...
31 Dec 2013 by kaushik4study
Hi alli wrote a code in sample application. char szHostName[255]; int iEc = -1; addrinfo* pAdInfo = NULL; // get the local hostname if( gethostname(szHostName, 255) == SOCKET_ERROR ) { return ; } CString sTmp(szHostName); ::AfxMessageBox(sTmp); iEc =...
31 Dec 2013 by Jochen Arndt
Pass an addrinfo structure to specify the type (IPv4 or IPv6). See the getaddrinfo()[^] function and the addrinfo[^] structure. When passing no addrinfo structure or setting the ai_family member to AF_UNSPEC, the returned family type is IPv6 when it is installed (always with Vista and later).
22 May 2020 by shashank89
Question:The following is a dump of a TCP header in hexadecimal format.05320017 00000001 00000000 500207FF 00000000a. What is the source port number?b. What is the destination port number?c. What is the sequence number?d. What is the acknowledgment number?e. What is the...
17 May 2014 by Member 10769622
Source port = 1330 = 0x0532Dest port = 0x0017seq num = 0x00000001ack = 0x00000000length = 0x50type = 0x02 look up the flag bits to see what 0x02 issize = 0x07ff
8 Sep 2020 by Patrice T
Quote: 1. What is the sequence number? 2. What is the destination port number? 3. What is the source port number? 4. What is the length of the TCP header? 5. What is the acknowledgement number? What about doing basic research on internet before...
6 May 2016 by Sentell
I'm planning on connecting my Android project(using Eclipse) to another computer which is the server. Questions are: How do I connect it to another computer?I'm told that i can use Wi-Fi or Lan cable. But I'm sure I need some computer configs. What are those? Is it possible...
6 May 2016 by Richard MacCutchan
Assuming that your server and Android system are both connect to the same network it should be easy. Check the MySQL documentation for information on the required connection string, or take a look at MySQL connection strings - ConnectionStrings.com[^].However, you will probably need to learn...
9 Feb 2019 by zvx
An introduction to writing IOCP network servers
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
12 Aug 2012 by ridoy
Try to provide better service for the local people through your technology.First of all you need to concentrate on which field you are interested to work for your people.Under networking,you can co-operate them within a single network that they can share their problem,solution or economical help...
28 Mar 2019 by Gabriel9999
I have installed the an application which will work over the network. I can not connect this application from other computers. I need to open some port on windows firewall. How can I find this application listening port? What I have tried: I have installed the an application which will work...
26 Mar 2019 by OriginalGriff
We can't tell you - we have no idea what the software is, how it was written, or even what port(s) it might want to use. Go back to where you got the software from, and ask them - they are the only ones who might have any idea.
26 Mar 2019 by User 11060979
With the windows command line tool netstat you can list all open ports and also the process which opened the port. Example: netstat -a -b Use netstat -? for help.
28 Mar 2019 by TheRealSteveJudge
I would like to recommend TCPView TCPView for Windows - Windows Sysinternals | Microsoft Docs[^]
10 Jun 2010 by eagle_chen
After getting my local IP address, I want set my IP to be the gateway. But there's something wrong the code, as follow:#include#include#include#include#include#pragma comment(lib"ws2_32.lib")// this function is to get local...
10 Jun 2010 by Aescleal
From your code you're executing:route -p add 0.0.0.0 mask 0.0.0.0 ipthrough a command prompt. From the comments it looks like to expect to see:route -p add 0.0.0.0 mask 0.0.0.0 192.168.0.1executed.Return the IP address of the computer from CheckIP and then format the string...
7 Nov 2013 by mg9893
I am making a mobile tracking application. I have a gps/gprs in my mobile phone. I want to make an application which will be installed in my phone, which will send the location,time using the gps/gprs installed at regular intervals, to the ip address, port of my pc. I have tried making a...
2 May 2012 by Amith SR
Hi all,how do i establish communication between android based cell phone and a remote server via internet? which Architecture is best?what Protocols should i use?purpose is to send and receive data (files) and notification from server to the mobile phone
8 May 2012 by Ganesan Senthilvel
At service layer (between client and server), the best choice would be REST-Services, which consumes less data than XML based services. In general, TCP or UDP are not always best choice, as network connection is unreliable on mobile phones, and may change at any given time.
14 Feb 2015 by Kumar Pankaj Verma
I am little bit confused between name server & DNS. Already read many links and comparisons but not getting a clear picture in my mind for whole flow ( From Request to response ).1. What is role of name server in flow of getting IP from FQDN?2. I want to see an example with dummy IP / name...
14 Feb 2015 by Richard MacCutchan
See http://en.wikipedia.org/wiki/Name_server[^]. As to "I want to see an example with dummy IP / name servers which will explain me the full work of the dns including name servers.", that's not a programming question, nor would it be a Quick Answer.
4 Apr 2013 by Sandeep Mewara
Another homework question of the day? Same post by another member in 2 min: IP address assignment to server[^]It does not work like this here.Here is what is expected of enquirers:1. TRY first what you want to do! You may find that it's not that hard.2. Formulate what was done by you...
4 Dec 2010 by h_seldon
A Win32 API non-blocking sockets implementation, client side.
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...
14 Jan 2011 by Lionberg
I would suggest you to create your own socketPacket class.Here is an example from my old poject:public class SocketPacket { internal byte[] DataBuffer; public PackHeader Header; public Guid SocketID { get; set; } ...
21 Jul 2016 by Vyacheslav Voronenko
Article illustrates "infrastructure as a code" concept for automating Amazon VPC creation.
12 Jan 2015 by alit56
I'm using MFC CSocket class to communicate using UDP. The procedure is very simple: as soon as the packet is received, the program sends a response to the sender, using the same socket. Everything works fine, but looking at the screen of WireShark, I noticed a strange thing: every time the...
12 Jan 2015 by Richard MacCutchan
https://www.google.com/search?q=ARP+with+UDP[^].
19 May 2012 by Waleed_Hassan
hi, i am facing some port problem. i have broadband connection. i have connected like this.phone line -> Belkin N1 wireless -through wire lan -> linksys E1200 -> WIFI(My laptop)i want to open my port 26000 and 3426. But i can't open it.I have tried to disable the firewall in...
18 Jun 2019 by Grigorii Mordkovich
Hello everyone. I got really interested in the sphere of computer networking and I was wondering what the top books, courses, articles, any other resources are to decently grasp the matter. By computer networking I am referring to all kinds of networking e.g. internet, wired communication...
18 Jun 2019 by Maciej Los
Several time similar questions have been asked here on QA. The answer stay still the same: buy a book and search an internet. There's no other way. I've seen tons of books with high mark, but when i have start them reading, i was disappointed. You know, every author have own style of writing....
13 Apr 2013 by Prahlad Yeri
I'm writing a program that downloads stuff from the internet. While the program is working fine, I want to get one critical part reviewed. I use System.Diagnostics.StopWatch object to measure the time taken for the ns (NetworkStream) object to read the bytes in buffer. I then divide the number...
13 Apr 2013 by OriginalGriff
You aren't really timing the data transfer speed - you are timing the transfer of data from a buffered stream to a memory block. The difference is that if the stream is already pre filled with more bytes than your buffer can hold, then the time you get is only that taken to copy the stream data...
5 May 2022 by Member 13740197
I am using a Linux machine which is in dslite mode. To block fragmented IP Packets I am updating the below kernel files. echo > /proc/sys/net/netfilter/nf_conntrack_frag6_low_thresh echo > /proc/sys/net/netfilter/nf_conntrack_frag6_high_thresh ...
5 May 2022 by OriginalGriff
This is a software development site which helps people with writing software, not a Linux support site. Try here: Linux.org[^]
13 Feb 2015 by Member 10075517
I have monitored the network traffic using C#.Net:what i want now is to Block a suspicious user by blocking IP that is used to perform a suspicious act.I want to know that how can i block traffic coming from a particular IP,or how can i drop or block packets using C#.Net.I do not...
13 Feb 2015 by Sergey Alexandrovich Kryukov
You could block anything, but only if your process is put in the middle of the traffic somewhere. If your application could hook itself in the middle by itself, without explicit user's consent, don't you understand that would mean another system vulnerability?One way of getting into the HTTP...
12 May 2013 by ayesha hassan
I had been working on a Server Client aplication where Server is going to service(sendto + receivefrom)'x' number of Clients at a time. For this purpose, I have created 'x' number of threads on Server side so that each thread is dadicated to one single client. Inside each thread there is 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...
24 May 2011 by Member 7312992
I want to develop a Bluetooth Ad-hoc networking protocol. I think i need to read on ad-hoc network programming and bluetooth programming. Can someone please give me some reference, knowledge or ideas. I have decided to develop using visual C#. any ideas about the development...
24 May 2011 by S Houghtelin
Is not an easy technology to jump into from the ground up. Sounds like you have a very ambitious project and I wish you luck and success.There are a lot of resources here. These are the guys who come up with the standards for Bluetooth.https://www.bluetooth.org/apps/content/[^]
3 Jan 2018 by Member 13605994
Boost.Asio or Libuv, which is better for large-scale Linux Servers for enterprise?(by c++) The database will be PostgreSQL. And the client should be app on iPhone and Android. ps. Is golang very popular and effecient right now for Server developing? will golang work good with PostgreSQL and...
3 Jan 2018 by CPallini
See, for instance: c++ - How does libuv compare to Boost/ASIO? - Stack Overflow[^].
19 Sep 2013 by Ghalib Mirza
Before asking this question i wanna told you that i have been googling since 2 week but not satisfied with my queries.I have completed an application in c# (for Single user)now, i want to run it on different computers with different users login accessing a single DB.my Queries are.How...
19 Sep 2013 by OriginalGriff
In practice, yes, you will need a hub, router or switch - this acts as the "core" of a modern network and allows higher speeds (much, much higher speeds) than under the older "one-wire-to-everybody" multi drop coaxial design. Modern ADSL or Cable modems generally provide 4 or so wired and a...
18 Oct 2013 by Mojtaba Eng
web site links and link file manager for automatically manage and filtering links to avoid vast of time.
30 Oct 2021 by Karel Donk
An example of building a peer-to-peer chat application for secure and private communication
29 Jan 2011 by abhi5306
i want to build an http proxy in C which prefers specific class of sites say .edu sites over sites like social sites while processing requests from clients thus providing preferential access.how should i incorporate this feature in my proxy!
13 Feb 2011 by abhi5307
simply,do a url parsing of the url of the request page and by help of a lookup table this can be implemented
6 Mar 2014 by AndrewCharlz
Hi, I would like to build a new vpn incomming using winform application and when user ends the application i would like to remove the incomming connection.***********Building Vpn incomming and removing them agin********************************Is there any way for...
4 Oct 2016 by DaveAuld
It only took a year, but after a lot of blood sweat and tears, it works!
20 Oct 2012 by Sidhant03
I wanted some links through which i can learn networking using C# and come up with a networking software. Something like a Network Scanner. Its a request for all the professionals to share their experiences. ThanksThe Knowledge what you all guys have will be more useful for the Project i am...
19 Oct 2012 by Sumit_Kumar_Sinha
http://www.google.co.in/webhp?source=search_app#http://www.google.co.in/blank.html[^]
19 Oct 2012 by Ambesha
reach...
21 Sep 2011 by manishaable
what if i do not know the size of receive buffer in "recv" function . When i m in a while loop the size of receive buffer differs but in "recv" function i have to mention the size before hand, which gives wrong buffer.
21 Sep 2011 by CPallini
From MSDN[^] (assuming you are using connection oriented Windows Sockets):For connection-oriented sockets (type SOCK_STREAM for example), calling recv will return as much data as is currently available—up to the size of the buffer specified.
21 Sep 2011 by Richard MacCutchan
The status returned from recv() will tell you if more data is available, so you just keep reading until you have all the data that is waiting. See here[^] for full information on this function.
17 Oct 2011 by Kozlov_Sergey
Take Network Library to work with sockets. It is easy to find.