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

Networking 

16 Mar 2024 by Line Item
I would try running this from a command line, with some adjustments for that to make it a simple command. Get that to work then add to that a little at a time. Maybe then try moving that to PowerShell. Get that to work then add more until you...
21 Jan 2024 by OriginalGriff
This is probably a hangover from the extreme methods used to counter several DDOS attacks last week: your IP has been flagged as a bad agent. You need to ask the admins directly to fix it - only they can access the blacklist. Post your message...
21 Jan 2024 by Gordon Barnett
Hello, It appears you are blocking access to the site from my ISP - exetel.com.au. IP range I am on is 58.96.xxx.xxx Can someone take a look as I am 'down' till this is fixed. Thanks What I have tried: This is being reported in other forums...
1 Oct 2023 by samthelab
Today, I recently received an answer to a question that I didn't ask - on my cell-phone, regarding a question that I was going to ask. It was about obtaining the Network Domain/SSID name in "C" programmatically from/on a cell phone. But I'm...
29 Sep 2023 by Richard MacCutchan
See Native Wifi API Sample - Win32 apps | Microsoft Learn[^]
17 Jul 2023 by Mohammad sajjadi
07/17 13:07:29: Launching 'app' on Pixel 6 Pro API 33. Install successfully finished in 1 s 677 ms. $ adb shell am start -n "com.example.soccergamedevelopmentproject/com.example.soccergamedevelopmentproject.MainActivity" -a...
16 Jul 2023 by Mohammad sajjadi
I'm trying to set a connection between 2 devices. As a matter of fact, I'm writing a game application, and I want to run it in 2 devices. One of these devices is a virtual device, and the other one is my phone number, a physical device. I need to...
24 Apr 2023 by Fatin Fatima Abdullah
I am working on a program for TCP/UDP port scanning. TCP is working fine and well but it seems like I have no idea on how to achieve the UDP port scanning using the AutoIt.Since the UDP port is connectionless I am using UDPOpen function to bind my $PortIP and $PortStartNumberB....
24 Apr 2023 by Member 15987316
May be it help Local $port If $CmdLine[0] == 0 Then MsgBox(0x0,"Err","arg is empty") Exit 1 Else $port = $CmdLine[1] EndIf Func _MyPortExists($port) Local $sRead, $sBuffer, $CMD_PId $CMD_PId = Run(@ComSpec & ' /c netstat -an |...
29 Nov 2022 by Michael Sydney Balloni
This article explores UDP programming, LRU cache development, and .NET packet processing.
26 Sep 2022 by Death Smoke
I'm trying to make a connection between two computers both of them are using tp-link adapter , but i'm not receving anything from client . #include #include using namespace std; int main() { ...
14 Sep 2022 by Death Smoke
The Code dont print the Blankspace when I type it between words in the message getline it only print first word or last letter but if i write between words any character like -./\_ it will print the full message , Example : -Without character: I...
14 Sep 2022 by Rick York
jeron1 gave you the answer. Here are a couple of references you should consult to verify what was stated : operator>> (string) - C++ Reference[^], this one describes the redirection operator and this one : istream::getline - C++ Reference[^]...
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 Jul 2022 by Member 13740197
Hi I calling No-IP service from my code using curl command like below /usr/bin/curl --interface erouter0 --url 'http://username:password@dynupdate.no-ip.com/nic/update?hostname=something.ddns.net&myip=MyIP' Observations: 1. For the first time...
10 Jul 2022 by Member 15702307
AFAIK username:password should be base64 encoded
28 May 2022 by Safin Mahesania
I have a query related to a networks. I am working on a big project creating a network for a university. below is the shortest version of the problem I faced. First take a look at topology and addressing/VLAN table below
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[^]
20 Mar 2022 by ubutu2334
If a network has an address of 172.30.33.0 and a subnet mask of 255.255.240.0, how many subnets is the original network divided into? And how many addresses can be used in a subnet? What I have tried: 172.30.33.0 = 10101100.00011110.0010...
20 Mar 2022 by OriginalGriff
While we are more than willing to help those that are stuck, that doesn't mean that we are here to do it all for you! We can't do all the work, you are either getting paid for this, or it's part of your grades and it wouldn't be at all fair for...
26 Feb 2022 by Rezame
Dear Sir, Thank you for your reply. Yes, you are right. I added that and it works now. I am a beginner in C++. Now I can connect to my website and want to know how I must add my parameter in the above code for sending request to server and...
23 Feb 2022 by Member 13740197
I am working in router development which is Ubuntu machine. In my code im trying to execute a curl command using system function but the system always returning -1 even though curl command got success. I observed this issue coming when my router...
23 Feb 2022 by Richard MacCutchan
A return value of -1 indicates that the exit status of the curl command could not be captured. See system(3) - Linux manual page[^] for full details.
20 Feb 2022 by Utku Ozan ÇANKAYA
Advantages of using a gateway and how I benefit from using it
12 Dec 2021 by Nguyen Van Lap (FGW CT)
We are doing an assignment on building networks in educational institutions but I don't know what kind of servers we should choose because we are newbies. What I have tried: I can't know that because I am a beginer.
12 Dec 2021 by OriginalGriff
Electronic ones are probably helpful. We can't answer that; we have no idea what you are trying to achieve, and no access to yoru original brief. "Servers" could be "cloud", "physical", or "software" and only a careful reading of what exactly...
30 Nov 2021 by Member 11191998
I am trying to connect to an Ethernet RTU controller by tcp connection.When I send a syn packet that I created using winpcap functions the controller send me valid syn-ack packet and when I try to send ack packet(it to I built using winpcap) the PC send a RST packet. thank you for your...
9 Nov 2021 by asaad asaad
I catch my packets on router using packet sniffer, then I want to use c-code to filter these packets according to port number, IP address ... etc. (Not I want to use only c language). What I have tried: I catch the packets using packet sniffer.
9 Nov 2021 by KarstenK
Than it is a very simple packet filter. The first problem is to acquire the packets for sniffing and than tell the decision to the driver and after that you can write a simple function like: BOOL acceptPacketFromPort(int port) { return port ==...
30 Oct 2021 by Karel Donk
An example of building a peer-to-peer chat application for secure and private communication
15 Oct 2021 by Weird Japanese Shows
Hello, I'm currently developing an online game server(and the game itself) but I'm facing a difficulty. If the game becomes popular and there are a million characters created(used and unused. there will always be characters not used by anyone...
15 Oct 2021 by KarstenK
The in memory operation is an excellent idea, but also try to optimize your code. Your string building in the exec statement isnt good. Better is too use one sprint or even better use all information as strings and so avoid type casting. Also use...
15 Oct 2021 by Member 15329613
1. It would be faster to do the update in SQL, rather than pull all records into C++ and rewrite the data to the database. 2. If you are going to stick with C++, do not do SELECT *. Select just the specific field(s) you need. 3. Some games...
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...
3 Sep 2021 by Member 15099244
Dear Experts, I am having many Demo Applications on my IIS Server. I am accessing the websites using localips:portnumber. This uproach of managing my applications is poor as I may forget my port while I am at client side. Can you please help me...
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...
5 May 2021 by ilostmyid2
For some reason, I need to put/inject a packet to an interface. I've made the content of the packet in the local machine. Assume that there's no other machine in the network to send the packet to local machine's network interface. So the local...
27 Apr 2021 by Richard MacCutchan
Please stop reposting the same question.
27 Apr 2021 by Jac0231
I'm wondering if there is a way other than executing cmd commands in my windows form app to enable or configure an ad hoc network in windows 10? I'm looking for a direct way like using windows's own libraries which the cmd command for ad hoc...
27 Apr 2021 by Richard MacCutchan
See How to configure ad hoc network using C# windows form app for windows 10 - C# Discussion Boards[^]. And assuming you are the person who posted that, please do not repost, and please do not create multiple accounts.
15 Apr 2021 by Member 14743579
Here is my updated code which is used to established a multiple connection and send data to device/client from server but my server does not receive a data from client, how to solve this issue please help me to solve this issue. What I have...
14 Apr 2021 by Richard MacCutchan
You were given some suggestions over a week ago at How to connect multiple devices with server using TCP?[^].
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. ;-)
10 Feb 2021 by Umut Comlekcioglu
I developing a software and its will work in Android. Also, for my Android App, I'm developing Windows App too and they all need to connect MSSQL Server.I configure to SQL Server and I can connect SQL Server with Windows App and Android Emulator. But I can't connect my SQL Server with real...
4 Feb 2021 by Mohammad Tavoosi
I have a very simple C# client/server chat application with TCP/IP Protocol that it works on local network but I want to use it on internet network but it seem is not easily in C# and I must to do port forwarding on server router or use SSH...
4 Feb 2021 by OriginalGriff
Have a look here: SignalR - Simple Chat Application in C#[^] - it's a lot simpler than trying to use TCP/IP directly.
17 Jan 2021 by k5054
You need to add a call to setsockopt() to tell the socket to reuse the address: int sockfd; const int one = 1; /* create the socket fd*/ if ( ( sockfd = socket(AF_INET, SOCK_STREAM, 0)
17 Jan 2021 by Member 11778573
Hello, I am attempting to develop a pair of programs (a daemon program and a program that interfaces between the user and the daemon) which uses send() and recv() calls for inter-process communication. The general flow of the program is as...
16 Dec 2020 by Member 15022892
Compare this with yours though its the same code but I changed some variables. Make sure your are testing it on http(port 80) not https(port443) and be mindful of your indents too import netfilterqueue import scapy.all as scapy import re def...
16 Dec 2020 by Member 14056957
[+] Request >> Exception TypeError: "'module' object has no attribute '__getitem__'" in 'netfilterqueue.global_callback' ignored Exception IndexError: IndexError('Layer [TCP] not found',) in 'netfilterqueue.global_callback' ignored These two errors come while executing my python code given: ...
13 Dec 2020 by Mohammad Tavoosi
I want to create some networking apps with C# socket programming and use them over the Internet so I have to use Public IP to access Computers over the internet network. A way to do this is do port forwarding on server side router but my apps...
13 Dec 2020 by RickZeeland
Take a look at SignalR, here is an example on CodeProject: Beginner's Guide to Using SignalR via ASP.NET[^]
23 Nov 2020 by Michael Breeden
I was surprised that I didn't find much about this with Google. I have a service that copies files between machines using UNC. Part of this is a WAN (West to East Coasts), so I have fault tolerant code in it that will retry copy fails to remote...
23 Nov 2020 by RickZeeland
See: GitHub - tjscience/RoboSharp: RoboSharp is a .NET wrapper for the awesome Robocopy windows application.[^]
14 Nov 2020 by Member 13702159
My deployment now looks like that: I take my machine's IP and I must add the IP to the whitelist in Kubernetes. I would like to avoid this action. Could you please tell me how to set up VPN using this OpenVPN? Do I need more than my IP and...
14 Nov 2020 by Gerry Schmitz
IP Whitelisting Alternative | OpenVPN | OpenVPN[^]
2 Nov 2020 by Gerry Schmitz
Looks like you need to get your wallet out. Elastic Load Balancing - Amazon Web Services[^]
2 Nov 2020 by Member 10556393
How to configure Network Load Balancing between two servers? One Server is AWS EC2 Machine and another one is application server. What I have tried: Search in Net, asked network team not getting proper result.
21 Oct 2020 by Member 14686752
I want to get the Interface Metric value of the network card using c#, All are working fine in Windows 10 but when I tried my solution on Windows 7 it is failing, Please find below the code that is running correctly on Windows 10: PowerShell...
21 Oct 2020 by Richard MacCutchan
See powershell - Gather IP address information - Stack Overflow[^]
9 Oct 2020 by User 14926697
I want to connect two OS with each other and I'm using this code: #include #include #include #include #include #include #include #include #include...
9 Oct 2020 by OriginalGriff
Probably it's your compiler / linker command line. Have a look at this, and compare what you use with the solution there: c++ - MinGW linker error: winsock - Stack Overflow[^]
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...
2 Sep 2020 by OriginalGriff
Depends what you want to learn. Have you looked at this: 86 Best TCP-IP Books of All Time - BookAuthority[^]
2 Sep 2020 by Snorri Kristjansson
TCP/IP Protocol Suite (McGraw-Hill Forouzan Networking) 4th Edition by Behrouz A. Forouzan (Author) looks good but are there other books better? What I have tried: I've looked at bestsellers on Amazon but I'm not able to decide. Note that I'm...
19 Jul 2020 by Sandeep Mewara
See with a working demo how SignalR works and how it can be used
13 Jul 2020 by Member 14888563
hi I would change your if statement to: if scapy.Raw in scapy_packet and scapy.TCP in scapy_packet: instead of: if scapy_packet.haslayer(scapy.Raw):
9 Jul 2020 by saransaki08
Hi guys, When I receive data sent from one application to another application I get an error. One application acts as the server and sends data to the client that connected to the server on a particular port.I sent some information via clientsocket and at that time I got this...
9 Jul 2020 by Member 14885591
mesmo colocando 1024 nao funcionou
25 Jun 2020 by Member 1628554
Hi, I used the sniffer application on a PC connected to a 3G USB dongle for internet access. I have found that there are no DNS packets (port 53) associated with either TCP or UDP packets. Are you able to tell me why, I think i'm missing a...
25 Jun 2020 by Dave Kreskowiak
The machine may be caching the DNS resolution results from previous requests. Open a CMD prompt and type ipconfig /displaydns to show what's in the resolver cache.
22 Jun 2020 by Richard MacCutchan
UDP messages are not guaranteed to be received in the correct order, or even received at all. Switch to TCP if you require guaranteed delivery.
22 Jun 2020 by girishmeena
Hello All, I am facing same issue which is mentioned in these questions and I can delete it if the same answer applies to this, however I am not able to find solution for myself through these answers....
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...
11 May 2020 by Richard MacCutchan
This question is far too broad for Quick Answers, which is for specific programming questions. And it is far from clear what you expect this package to do. And finally, as someone new to development it is most unlikely that you have yet acquired...
25 Apr 2020 by WOLF 2018
Ok i found the problem std::string GetData(SOCKET sock) { char buf[1024]; int bytesReceived = recv(sock, buf, 1024, 0); if (bytesReceived == SOCKET_ERROR) std::cout
25 Apr 2020 by WOLF 2018
I am working of a DLL for a test and i keep getting socket errors. i am trying to to connect to a server localhost, when it connects i close the server and i want it to continue to try and connect but as i open the server again it keeps...
25 Apr 2020 by User 11060979
Because IsExit is global (whyever) you need to set it to false each time before the loop, otherwhise IsExit reamains true after calling Networking once: ... // while loop to send and receive data IsExit= false; while (!IsExit) { ... }
21 Feb 2020 by WOLF 2018
i fixed it. it was with the User_Check(data[0], Users) the check i did crashed the client and disconnected it without an error message
21 Feb 2020 by WOLF 2018
look i am trying to make a TCP server for a private chatroom with AES encryption. but the problem i am facing is that when one client joins it works fine. but when two join it become odd like a new client would join even tho they are only two...
20 Feb 2020 by Richard MacCutchan
I do not have time to analyse all your code, but the following looks a little odd: if(tcp != clients[i]) // if not the client we want ... ? { So if the item you find in your list does not match the one you are...
25 Dec 2019 by irfanansari
i have router which is connected from ISP Provided company and further some computer connected by this and it is getting a IP address then they can be access internet but is there possible configuration add sub-net mask and limit of download and upload mean all configuration ? What I have...