tcpip

Writing a filter for incoming connections

I'm using C++/boost::asio under Win7. I'm trying to "sniff" trafic over a given TCP/IP port. Hence, I'd like to listen on that port, receive messages, analyze them, but also immidately allow them to flow further, as if I never intercepted them. I want them to sink into the program that normally listens and connects on that port. Imagine...

IPv4 remote address in WCF

Related to http://stackoverflow.com/questions/391142/how-to-get-the-ip-address-of-a-wcf-remote-endpoint I am using this code to retrieve the remote IP address when a workflow method is invoked: private static string GetRemoteIP() { var oc = OperationContext.Current; var mp = oc.IncomingMessageProperties; var remp = mp[RemoteEndpo...

How to assure a UDP server does not lose incoming data?

There is a data feed server receives feed from various clients by means of UDP,because the clients are pumping data so fast,the receiving buffer is very easily to get full if the server spends time on processing the received data,so Will it help that if the feed server just multicasts all data it received to the other servers on LAN w...

How do I implement port redirecting/mapping on windows?

I am programming a web proxy that is installed on client machines (same machine as the web browser). I would like for all traffic that is web traffic to get redirected into my proxy server. I am using a windows operating system (XP, Windows 2003, Windows 2008, Vista, Windows 7). What would I need to do, to redirect all internet traff...

Network Connectivity Issues with the .NET License Compiler (LC.EXE)

I've recently moved my dev environment (VS.NET 2008 SP1 on VMWare) over to a new network, using a more restrictive firewall. During subsequent builds, the license compiler (lc.exe) took a long time to complete (several minutes). I assume it was timing out because it was not able to connect through the firewall, but I can see no evidence ...

Modify destination port in TCP/IP headers of all outgoing packets

Used SSH Tunnel to route the traffic addressed to server1:port1 to server2:port2. Now,the problem is that i want to redirect all TCP/IP packets from desktop addressed to server1:port1 to server2:port2. using "hosts" file on windows, i mapped server1 ip as ipaddress of server2. [local DNS mapping] http://server2:port2 //gives the desir...

Should I set up a socket connection on my computer?

I want to learn everything about XML sockets and server-side stuff, but right now I'm just trying to get my stuff to work. Should I set up a socket connection on my computer? I'm trying to use Flash with an old arcade game. The instructions on Adobe livedocs seems easy. I don't know if I'm approaching this correctly. I need a XML socket...

Connecting to SQL Server 2000 through TCP/IP on localhost failed.

I have tried to connect to SQL Server 2000 through TCP/IP. I followed these steps and enabled SQL Server 2000 on port 1433. Then I used the command to test whether the port is opened up: telnet localhost 1433 But I found the following error: Connecting To localhost...Could not open connection to the host, on port 1433: Connect fa...

How host name is broadcasted in a subnet

Hello. I'm working with Microchip's TCP/IP stack and the host name of my device is not being broadcasted, although I can access it using its DHCP assigned IP. So the question is, what is the protocol that a network device uses to broadcast its host name, so that when I see a list of devices in a network I can identify it by name? ...

Designing a network protocol for realtime data / mobile devices

I'm faced with a following dilemma: Design a new network protocol which would be used between a server (Java software) and desktop and mobile clients. The mobile clients include J2ME, Android and maybe in the future even iPhone. The data stream is a realtime, constant stream with also more infrequent parts. The clients show waveforms o...

Can 2 WCF service processes listen the same port?

I know 2 processes can't listen the same port, but as it happens with HTTP requests in the port 80, I know Windows can receive the packets and reroute to the appropriate services. I just don't know if it also happens with other ports and protocols (net.tcp for instance). ...

Ruby server and Flash client

I want a Flash file to load external movies. Later, I want to add tags to the XML document to control the movies. I have a policy server file "to open a port for Flash client. I also have a file to load, but I don't have a Flash client built to receive the file. Ultimately, I can control Flash from a Ruby server and talk to it with an X...

Reverse WCF that will connect to a non .net tcpip application

Hi, I am new to .net and am trying to use c# as the basis of my .net learning. I have a project where I need a service to connect to mutliple tcpip applications that are a 3rd party application written in vb6. Someone has mentioned using WCF as the base, but i'm not sure how it would make an outbound connection (instead of receiving inco...

Sending data over tcpip using Microchip's PIC18F

All of the examples in the TCPIP Demo App are built using a custom program that designs a webpage that triggers callbacks when the webpage is changed. Is it possible to get a value from a sensor every X seconds and send the data out over an HTTP POST? ...

.NET application trying to access crl.verisign.net

I have a number of internal .NET applications from our vendor that take forever to startup. Some of their services take up to 1.5 minutes to start. Upon further investigation, I noticed that under Process Explorer's TCP/IP tab, I see the application trying to make outbound connections to crl.verisign.net. Unfortunately, most of our pr...

Question about TCP/IP port binding

Hello, I would like to know whether a server application will always answer on the same port? I have read somewhere that in order to keep listening on the "listening" port, the server will use different port. Could anybody provide me with more details? Thanks! ...

What are some tips for buffer usage and tuning in custom TCP services?

I've been researching a number of networking libraries and frameworks lately such as libevent, libev, Facebook Tornado, and Concurrence (Python). One thing I notice in their implementations is the use of application-level per-client read/write buffers (e.g. IOStream in Tornado) -- even HAProxy has such buffers. In addition to these a...

How can I simulate TCP/IP errors?

On a multi-tier application, I need to simulate various TCP/IP errors to test some reconnection code. Does anyone know of any tools (Windows based) I can use for this purpose? Thanks. ...

What is the state of C10K-like event-based server development in TCL?

TCL is a nice simple programming language, but does not seem to get the credit and/or respect it deserves [1]. I learned it back in 1995 in college and promptly forgot about it only to stumble upon it again recently. I am mostly interested TCL for developing TCP-based network services as well as for web development. It has been ment...

Erlang's maximum number of simultaneous open ports?

Does the erlang TCP/IP library have some limitations? I've done some searching but can't find any definitive answers. I have set the ERL_MAX_PORTS environment variable to 12000 and configured Yaws to use unlimited connections. I've written a simple client application that connects to an appmod I've written for Yaws and am testing the n...