networking

How do I forward from one local port to another local port on OS X?

I have a MySQL instance running locally on port 3306, but for some legacy apps I also want to make it available on port 3305 (don't ask). Is there an easy way to do this on OS X, so that if I try to connect on either 3305 or 3306 they will both go to the MySQL server on 3306? ...

Looking for OSS for OSI Layer 2 Traffic Generator

I am looking for layer 2 traffic generator [open source]. Some OSS using winpcap or libpcap. Thanks a lot. ...

What is the best way to send HTTP requests from Windows Powershell?

What is the best way to send HTTP requests from Windows Powershell? ...

Can't see win2k8 server by hostname, but can see it by IP

On my home network I have an installation of Windows Server 2008 and for some reason, the windows vista workstations on the network can connect to the server via remote desktop only via the server's IP address, not the hostname. Same for connecting to an instance of SQL Server 2008 that's on the server, only works by IP, not by hostname...

Need of Formula for Accurate Bandwith for 1 Gigabit NIC Card

I am Need of Formula to Accurately Calculate Bandwith for 1 Gig Nic Card. What i am doing is send Layer 2 Packets @ 1Gbps but my software is showing 6oo Mbps. The whole experiment is Back to Back. No switch No Router. Here is what i did. // LinkSpeed = 1Gb UINT nBandwidth = LinkSpeed/100;//Mbps nBandwidth = nBandwidth/8; //Bytes/...

How can I make my server have open connections to multiple clients at the same time?

I want to write my own little chat server in C on a MacOS machine. Now I want to connect to all clients, that are online and let the connection open, to be able to receive and send messages. The problem is that I only know, how to have one socket connection at a time open. So only one client can connect so far and chatting like that is k...

Is it possible to create a Java UDP Socket to listen on all addresses?

I would like to have a single DatagramSocket to listen for both unicast and broadcast messages. Is this possible? ...

How to UDP Broadcast from Linux Kernel?

I'm developing a experimental Linux Kernel module, so... How to UDP Broadcast from Linux Kernel? ...

How to check if a computer is responding from C#

What is the easiest way to check if a computer is alive and responding (say in ping/NetBios)? I'd like a deterministic method that I can time-limit. One solution is simple access the share (File.GetDirectories(@"\compname")) in a separate thread, and kill the thread if it takes too long. ...

Linux: retrieve per-interface sent/received packet counters (ethernet, ipv4, ipv6)

On Linux, how can I (programmatically) retrieve the following counters on a per-interface basis: Sent/received ethernet frames, Sent/received IPv4 packets, Sent/received IPv6 packets. ...

Frameworks for network protocol fuzzing?

Can anyone recommend any programmer-friendly (i.e. extensible) frameworks or systems for performing network level packet fuzzing? I'm looking for such a system where I can program in additional packet formats and various ways of breaking those packets in a protocol-dependent manner. I know how to Google. I'm looking for specific recom...

Ensuring Network Redundancy: How to switch from default ISP to backup ISP without downtime

Here is the situation. This small company I'm working with wants to have a redundant internet access. They run bunch of services from their office - a website, POP+SMTP server and use VPN for accessing network shares from home. They have 2 independent internet connections from 2 ISP's (one is a local cable provider, and another one is a ...

Where is the Don't Fragment Bit of the IP Flags used?

I am curious to know where the "Don't Fragment" [DF] Bit of the IP Flags is used. As fragmentation is invisible to higher layers and they don't care too. I am also looking for an example. Thanks a lot in advance. ...

configure ip alias and route, deal with network unavailable

I need to write a script to set ip address/mask/broadcast as an alias on eth0:0 plus set the default gateway. This solution works: ifconfig eth0:0 <ip> netmask <mask> up ip route replace default via <ip> but sometimes the second call gets an error "network unavailable". Adding a sleep between them fixes it, but is unreliable. What i...

How do I find out which computer is the domain controller in Windows programmatically?

I am looking for a way to determine what the Name/IP Address of the domain controller is for a given domain that a client computer is connected to. At our company we have a lot of small little networks that we use for testing and most of them have their own little domains. As an example, one of the domains is named "TESTLAB". I have a...

What is the Significance of Pseudo Header used in UDP/TCP

I just wanted to know why Pseudo header is preceded to UDP. Why Pseudo header is used. whats the logic behind it. ...

Identifying active network interface in .NET

In a .NET application, how can I identify which network interface is used to communicate to a given IP address? I am running on workstations with multiple network interfaces, IPv4 and v6, and I need to get the address of the "correct" interface used for traffic to my given database server. ...

What is the necessity of IP-in-IP?

There is even a standard for IP in IP encapsulation. What is the use case here? I can understand stuff like TCP over DNS, where IP might be unavailable, but if you can do IP in IP, couldn't you simply do regular IP? ...

Why Does RTP use UDP instead of TCP?

I wanted to know why UDP is used in RTP rather than TCP ?. Major VoIP Tools used only UDP as i hacked some of the VoIP OSS. ...

How to know if the local Area Connection is available

Dear all i'm using Win XP and i want to know if the local area is available or not ?!? and if i'm using another OS would that affect on my code ??! thnx in advance ...