networking

java.net.SocketException: Connection reset

I am getting the following error trying to read from a socket. I'm doing a readInt() on that InputStream, and I am getting this error. Perusing the documentation this suggests that the client part of the connection closed the connection. In this scenario, I am the server. I have access to the client log files and it is not closing the c...

What are the Basics of Networking/Sys-administration Should a Programmer Know?

Like: Learning the basic troubleshooting skills Learning how to configure a network Understanding different types of networks etc. I was configuring a home network between my Windows and Ubuntu machine and I had a tough time doing it. I later figured out that both of them should be configured with the same subnet mask. I don't what t...

Using network services when disconnected in Mac OS X

From time to time am I working in a completely disconnected environment with a Macbook Pro. For testing purposes I need to run a local DNS server in a VMWare session. I've configured the lookup system to use the DNS server (/etc/resolve.conf and through the network configuration panel, which is using configd underneath), and commands lik...

Best way to open a socket in Python

I want to open a TCP client socket in Python. Do I have to go through all the low-level BSD create-socket-handle / connect-socket stuff or is there a simpler one-line way ? What I'm looking for is something similar to fsockopen in PHP. ...

How do you go about setting up a virtual IP address?

... say for CentOS? ...

How Does Listening to a Multicast Hurt Me?

I'm receiving a recovery feed from an exchange for recovering data missed from their primary feed. The exchange strongly recommends listening to the recovery feed only when data is needed, and leaving the multicast once I have recovered the data I need. My question is, if I am using asio, and not reading from the NIC when I don't need ...

How do you direct traffic to/from a particular site to a specific NIC?

In Windows XP: How do you direct traffic to/from a particular site to a specific NIC? For Instance: How do I say, all connections to stackoverflow.com should use my wireless connection, while all other sites will use my ethernet? ...

Which programming/computer networking skills will help me work in Healthcare IT sector ?

Hello guys i am a medical doctor. I wish to work in Healthcare IT sector 3 years down the line in my career. I am a self learner when it comes to learning computer skills, using various online courses (like Berkely) and Keystone Courses. I have recently learned c and C++. I had given a start to Lisp but didn't go much deep. Now i was...

How Many Network Connections Can a Computer Support?

When writing a custom server, what are the best practices or techniques to determine maximum number of users that can connect to the server at any given time? I would assume that the capabilities of the computer hardware, network capacity, and server protocol would all be important factors. Also, would you consider it to be a good prac...

KVM and Linux wireless bridging?

I'm using KVM to run a Windows virtual machine on my Linux box. Networking is accomplished through a tap device, hooked into a bridged Ethernet device, which allows the Windows VM to basically appear like a separate physical computer on my network. This is pretty nice. However, my understanding is that most, if not all, wireless drivers...

Erlang Multicast

How do you use gen_udp in Erlang to do multicasting? I know its in the code, there is just no documentation behind it. Sending out data is obvious and simple. I was wondering on how to add memberships. Not only adding memberships at start-up, but adding memberships while running would be useful too. ...

Network Map Algorithm that Detects Unmanaged Layer 2 Switches?

I've inherited a network spread out over a warehouse/front office consisting of approximately 50 desktop PCs, various servers, network printers, and routers/switches. The "intelligent" routers live in the server room. As the company has grown, we've annexed additional space and not very elegantly run various lengths of CAT5 thru the cei...

Map 192.168.0.10 to 127.0.0.1 on windows

Hello everybody! I need to access a svn repository from home, that runs under the IP 192.168.0.10 in the work network. I can establish a SSH tunnel to my localhost. Now I have to map 192.168.0.10 in a way, that instead 127.0.0.1 is accessed. Does anybody know a way to do this under Windows? Thanks in advance! ...

Compare Quagga to XORP

What do you think of Quagga compared to XORP as a dynamic software routing engine? What are the technical merits of each engine comparatively? Additionally, what do most people think of them from a programming view. Who has manipulated networks using these enginers? I was wondering from an OSPF, routing, BGP protocol user's perpspective....

private IP address ranges

What are the private IP address ranges? ...

How to programmatically enable/disable network interfaces? (Windows XP)

I need to enable/disable completely network interfaces from a script in Windows XP. I'm looking for a python solution, but any general way (eg WMI, some command-line à la netsh, some windows call) is welcome and will be adjusted. Thanks. ...

Virtual network interface in Mac OS X

I know that you can make a virtual network interface in Windows (see here), and in Linux it is also pretty easy with ip-aliases, but does something similar exist for Mac OS X? I've been looking for loopback adapters, virtual interfaces and couldn't find a good solution. You can create a new interface in the networking panel, based on a...

How do I get a list of the active IP-addresses, MAC-addresses and NetBIOS names on the LAN?

How do I get a list of the active IP-addresses, MAC-addresses and NetBIOS names on the LAN? I'd like to get NetBIOS name, IP and MAC addresses for every host on the LAN, preferably not having to walk to every single PC and take note of the stuff myself. How to do that with Windows Script Host/PowerShell/whatever? ...

Java: Best Place to Begin Learning Basic Networking

I am trying to write a simple networked chat program in Java. I have almost no networking experience. I was wondering what resources I should begin looking at (beside here of course). Sticking with the core Java API would be best for now. ...

programmatically find number of hosts in a Netmask

How do you programmatically find the number of hosts that a netmask supports. Eg, If you have a /30 , how do you find how many IP's are in it without using a lookup table? Preferably would be able to work with the "/" notation, rather than 255.xxx.xxx.xxx notation. ...