Questions tagged [networking]

For most programming questions use [network-programming] tag. Non-programming networking questions are off topic and should be asked on Network Engineering, Super User or Server Fault instead. This tag is only appropriate for questions concerning unique networking needs in support of software development.

DO NOT USE - Removed as part of The great stack overflow tag question cleanup of 2012. The linked page has now been removed.

Most questions here should be tagged or are not on topic for SO

A computer network, often simply referred to as a network, is a collection of computers and devices interconnected by communications channels that facilitate communications among users and allows users to share resources. Networks may be classified according to a wide variety of characteristics. A computer network allows sharing of resources and information among interconnected devices.

38405 questions
3215
votes
34 answers

How do I find out which process is listening on a TCP or UDP port on Windows?

How do I find out which process is listening on a TCP or UDP port on Windows?
readonly
  • 343,444
  • 107
  • 203
  • 205
1114
votes
38 answers

What is the difference between a port and a socket?

This was a question raised by one of the software engineers in my organisation. I'm interested in the broadest definition.
Richard Dorman
  • 23,170
  • 16
  • 45
  • 49
879
votes
37 answers

How can I connect to Android with ADB over TCP?

I am attempting to debug an application on a Motorola Droid, but I am having some difficulty connecting to the device via USB. My development server is a Windows 7 64-bit VM running in Hyper-V, and so I cannot connect directly via USB in the guest…
JDM
  • 9,797
  • 4
  • 22
  • 22
732
votes
14 answers

What is the quickest way to HTTP GET in Python?

What is the quickest way to HTTP GET in Python if I know the content will be a string? I am searching the documentation for a quick one-liner like: contents = url.get("http://example.com/foo/bar") But all I can find using Google are httplib and…
Frank Krueger
  • 69,552
  • 46
  • 163
  • 208
715
votes
49 answers

Finding local IP addresses using Python's stdlib

How can I find local IP addresses (i.e. 192.168.x.x or 10.0.x.x) in Python platform independently and using only the standard library?
UnkwnTech
  • 88,102
  • 65
  • 184
  • 229
596
votes
10 answers

Comparison of Android networking libraries: OkHTTP, Retrofit, and Volley

Two-part question from an iOS developer learning Android, working on an Android project that will make a variety of requests from JSON to image to streaming download of audio and video: On iOS I have used the AFNetworking project extensively. Is…
Alfie Hanssen
  • 16,964
  • 12
  • 68
  • 74
574
votes
21 answers

Is it possible to disable the network in iOS Simulator?

I am trying to debug some inconsistent behaviour I am seeing in an application that gets its primary data from the Internet. I don't see the issues in the simulator, just on the device, so I'd like to reproduce the network and connectivity…
Paul Hammond
  • 6,226
  • 3
  • 17
  • 10
385
votes
22 answers

Artificially create a connection timeout error

I've had a bug in our software that occurs when I receive a connection timeout. These errors are very rare (usually when my connection gets dropped by our internal network). How can I generate this kind of effect artificially so I can test our…
Mark Ingram
  • 71,849
  • 51
  • 176
  • 230
376
votes
28 answers

Get local IP address

In the internet there are several places that show you how to get an IP address. And a lot of them look like this example: String strHostName = string.Empty; // Getting Ip address of local machine... // First get the host name of local…
Tono Nam
  • 34,064
  • 78
  • 298
  • 470
352
votes
3 answers

How to get a list of all valid IP addresses in a local network?

Is there a way to get a list of all valid IP addresses in a local network? I mean all IP addresses that each user is using in the network.
M.J.Ahmadi
  • 3,931
  • 4
  • 17
  • 24
350
votes
18 answers

Command line for looking at specific port

Is there a way to examine the status of a specific port from the Windows command line? I know I can use netstat to examine all ports but netstat is slow and looking at a specific port probably isn't.
user1580018
  • 3,509
  • 3
  • 14
  • 3
339
votes
24 answers

When is it appropriate to use UDP instead of TCP?

Since TCP guarantees packet delivery and thus can be considered "reliable", whereas UDP doesn't guarantee anything and packets can be lost. What would be the advantage of transmitting data using UDP in an application rather than over a TCP stream?…
Jeff L
  • 6,108
  • 3
  • 23
  • 29
338
votes
13 answers

Best architectural approaches for building iOS networking applications (REST clients)

I'm an iOS developer with some experience and this question is really interesting to me. I saw a lot of different resources and materials on this topic, but nevertheless I'm still confused. What is the best architecture for an iOS networked…
MainstreamDeveloper00
  • 8,436
  • 15
  • 56
  • 102
338
votes
15 answers

How do I get Flask to run on port 80?

I have a Flask server running through port 5000, and it's fine. I can access it at http://example.com:5000 But is it possible to simply access it at http://example.com? I'm assuming that means I have to change the port from 5000 to 80. But when I…
quantumtremor
  • 3,787
  • 2
  • 17
  • 20
329
votes
5 answers

What is the difference between active and passive FTP?

Can someone tell me what is the difference between active and passive FTP? Which one is preferable?
karthik
  • 4,485
  • 8
  • 30
  • 45
1
2 3
99 100