network-programming Questions

2

Solved

I am working on a UDP server/client application. For finding out if any of the client is down, the server sends a handshake message to the client. Then, the server waits for the response of clien...
Uncap asked 11/4, 2013 at 4:50

3

Solved

I need to list all available SMB hosts with their network addresses on the local network on a Mac. Any method works (BSD API, (Core)Foundation API or shell command). Details When using the macOS Fi...
Vidovik asked 2/3, 2024 at 17:38

5

Solved

I created a RN project (without Expo) and setup my API services. I'm using dummyapi.io to get dummy post data, which is a HTTPS request. I keep getting "Network Error" from Axios and when...
Florencio asked 14/1, 2022 at 14:25

2

Solved

I have a server net.Conn, and I'd like to peek into it before reading out bytes, to check if it's a plain text protocol the client is trying to use, or SSL/TLS. Checking http://golang.org/pkg/net/,...
Immensity asked 4/10, 2014 at 20:20

2

I've been trying to setup a docker environment using docker compose. One issue that has me stumped is that my docker containers cannot reach my host machine. I setup a container using the followin...
Unfix asked 9/5, 2017 at 20:50

3

Solved

One task of my program is to scan local wi-fi network for any devices/computers in same network. I found solution to get all working devices IPs, but did not managed to get names of them. I did not...
Blossom asked 15/10, 2013 at 8:6

2

Solved

In every paper I have read about crawler proposals, I see that one important component is the DNS Resolver. My question is: Why is it necessary? Can't we just make a request to http://www.some-do...
Hannibal asked 28/10, 2012 at 5:12

9

Solved

I need a quick way to find out if a given port is open with Ruby. I currently am fiddling around with this: require 'socket' def is_port_open?(ip, port) begin TCPSocket.new(ip, port) rescue Er...
Wadi asked 5/2, 2009 at 18:24

13

Which of the following is the best and most portable way to get the hostname of the current computer in Java? Runtime.getRuntime().exec("hostname") vs InetAddress.getLocalHost().getHostName() ...

1

I am trying to use netem tool on my windows subsytem for linux. This is the command I tried tc qdisc add dev eth0 root netem delay 100ms I am getting this error Cannot talk to rtnetlink : Opera...
Protectorate asked 8/4, 2020 at 11:25

2

My client-server app works with Apache MINA at both, client and server sides. Sending data via UDP works OK, but after a minute server closes the connection (or MINA's way - "session") and stops an...
Boehmenist asked 28/1, 2015 at 8:8

3

Solved

When I open the properties on a network connnection on windows, I see this dialog: Connection_Properties http://www.freeimagehosting.net/uploads/ca7a4d82ea.png In this dialog, in the check-listbox...
Carving asked 22/4, 2010 at 8:43

3

Solved

I've tried getting the list of IP's under an ASN number for example AS8167 however I am having no such luck. I have seen that team cymru have an IP to ASN, however that is the opposite of what I ac...
Pris asked 30/11, 2012 at 5:11

8

Solved

I would like to determine the IP address of a printer, using C# (.NET 2.0). I have only the printer share name as set up on the Windows OS, in the format \\PC Name\Printer Name. The printer is a ne...
Perilous asked 24/3, 2009 at 10:45

9

Solved

I have a simple program to check if a port is open, but I want to shorten the timeout length on the socket connection because the default is far too long. I'm not sure how to do this though. Here's...
Gallantry asked 8/4, 2010 at 4:38

6

So I recently installed the WampServer a few months back, with a pre-installed mySQL 5.7. But I wanted to take advantage of the NoSQL features that come with mySQL 8. To update it, I downloaded t...

6

Can you explain me what exactly are SO_SNDBUF and SO_RCVBUF options? OK, for some reason the OS buffers the outgoing/incomming data but I'd like to clarify this subject. What is their role (gene...
Oral asked 23/11, 2010 at 15:7

7

What are the advantages (or limitations) of one over the other for transferring files over the Internet? (I am aware of secure forms of both protocols. I'd like to hear comparisons through persona...
Valero asked 4/4, 2009 at 14:42

2

Solved

I want to create one vm on a private network. I am following this website http://www.linux-kvm.org/page/Networking to help in configuring my qemu. I used the following command to create a vm: sud...
Shulem asked 11/1, 2017 at 10:5

3

Solved

From the linux socket manpage: SO_PRIORITY Set the protocol-defined priority for all packets to be sent on this socket. Linux uses this value to order the networking queues: packets with a h...
Profundity asked 23/6, 2016 at 17:40

20

Solved

I have a script that is to be run by a person that logs in to the server with SSH. Is there a way to find out automatically what IP address the user is connecting from? Of course, I could ask the...
Ute asked 15/6, 2009 at 13:50

2

Solved

I want ask 2 question about docker stats for example NAME CPU % MEM USAGE / LIMIT MEM % NET I/O BLOCK I/O PIDS container_1 1.52% 11.72MiB / 7.388GiB 0.15% 2.99GB / 372MB 9.4MB / 0B 9 in this si...
Damascene asked 12/10, 2017 at 8:20

3

Solved

I have not seen any important TCP/IP server not use SO_REUSEADDR : Apache HTTP Server SO_REUSEADDR usage nginx SO_REUSEADDR usage Very Secure FTPD SO_REUSEADDR usage exim SO_REUSEADDR usage Postf...
Haemolysis asked 5/8, 2011 at 17:24

4

Solved

I am writing a video game, Humm and Strumm, which requires a network component in its game engine. I can deal with differences in endianness easily, but I have hit a wall in attempting to deal with...
Placard asked 27/4, 2010 at 19:27

8

How to force the requests library to use a specific internet protocol version for a get request? Or can this be achieved better with another method in Python? I could but I do not want to use curl…...
Papoose asked 9/10, 2015 at 20:36

© 2022 - 2025 — McMap. All rights reserved.