tcpip

Is there any way to overcome the router port forwarding on tcp/ip application

I need to connect to computer over tcp/ip i have the external ip but without port forwarding I can't connect to the server . Is there any way to configure the server to accepts connection on the external ip and port define by the server without configuring the router ? (how does emule does it ? or other peer to peer application ) ...

Adding SSL support to existing TCP & UDP code?

Here's my question. Right now I have a Linux server application (written using C++ - gcc) that communicates with a Windows C++ client application (Visual Studio 9, Qt 4.5.) What is the very easiest way to add SSL support to both sides in order to secure the communication, without completely gutting the existing protocol? It's a VOIP...

Web Service Port No Question.

I am working on a web service project using gsoap. I am new to web services and have some basic questions. What should be the port no. of my web service? Currently this web service is a stand alone service listening to a hard-coded port no. of 22050. Client connects to this port and everything works fine. Is this approach OK? What are t...

Coding a server that is *not* 'thread per client'

Using .NET what is the basic algorithm of a server that is not 'thread per client' based? Edit I'm looking for a basic 3, 4 maybe 5 line algorithm/psuedocode/pattern that describes the general process the server is using. Something opposite to this: open a server socket // this uses the port the clients know about while(running) ...

How is the Protocol Attribute set for IP Fragments?

I am testing a network device driver's ability to cope with corrupted packets. The specific case I want to test is a when a large TCP packet is fragmented along the path because of smaller MTU in the way. What most interests me about the IP Fragmentation of the large TCP packet is, is the protocol attribute of the IP Fragment packet set...

How does a system's TCP/IP stack differentiate between multiple programs connecting to the same address and port?

Suppose two web browsers are running on the same computer and are accessing the same website (in other words, accessing the same IP address on the same port). How does the operating system recognize which packets are from/for which program? Does each program have a unique id field in the TCP header? If so, what is the field called? ...

Experiences with (free) embedded TCP / IP stacks?

Does anyone have especially good (or bad) experiences with any of the following embedded TCP / IP stacks? uIP lwIP Bentham's TCP/IP Lean implementation The TCP/IP stack from this book My needs are for a solid, easy-to-port stack. Code size isn't terribly important, performance is relatively important, but ease of use & porting is ve...

Measuring the HTTP response time back to the client using only the server

I need to measure how long it takes to send a web response to a client - from the server-side only. I know there are ajaxian and client-side ways of doing this but I am limited to a server-side only way of measuring the time to the client. Is it possible to roughly approximate this using the ACK sent back from the client browser after t...

What's the packet-level difference between an XMLHttpRequest and a regular HTTP request?

I'm wondering: if I were a a router, packet inspector, firewall, or other packet-sniffing device (which I'm glad I'm not) would I be able to tell the difference between a traditional HTTP request and an XMLHttpRequest? Less theoretically, is it possible that some ISP or (let's say) cell phone data provider could restrict XMLHttpRequest t...

tcpip.sys problem

I had a problem with this file, to be precise it was infected with a Patched.BG virus(Nod32 says so). I accidently delete it, but I can still connect to Internet. So my questions are: do I need this file, if I do, is it for security reasons only and is there any place on Internet where I can download it brand new, this file only? ...

tcp\ip server tracking database changes

I have a tcp\server ( .NET 3.5 ) that notifies connected clients about aah interesting events. These events occur because an aspx website is writing stuff to a database( SQL 2005 ) What would be a good way for this server to monitor the database so to speak can the db push info to the server in any way? any suggestions thoughts welcome ...

PostgreSQL socket connection

Is it possible to send data on a socket over a TCP?IP connection from a PostgreSQL stored procedure or trigger? If you know of any useful examples pleas tell me. If you know of something similar for other data base systems it would also be helpful. Thanks in advance. ...

Setting TCP Retransmission Timeout in C

I have an small server/client test program I am running over a radio link using TCP/IP and I noticed with wireshark that I am getting a lot of retransmits due to high latency. How do I increase the window my program waits for an ACK before attempting retransmission? Update on OS: The server is running Linux, the Client is on Windows ...

Determining IP address and port of an incoming TCP/IP connection in Erlang

I would like to fetch the IP address and port number of an incoming TCP/IP connection. Unfortunately gen_tcp's accept and recv functions only give back a socket, while gen_udp's recv function also gives back the address information. Is there a straightforward way to collect address information belonging to a socket in Erlang? ...

Get Device IP with Bonjour

Hi All I am using Java 6 update 14 for development and NetBeans 6.7. I am creating a sample client to detect particular type of service using Bonjour. I face a certain challenge where I want to get the IP address of the device. But the ResolveListener.serviceResolved(...) function, provides only Hostname and Port. The FullName also doe...

Which .Net component should be used for tcp/ip sockets communication?

We need to talk to another system that wants to communicate to us via raw tcp/ip socket communication. What would be the appropriate .Net object, if any, to use for this? If you know of a 3rd party component, open source component, etc., that you think is better to use, please feel free to mention that as well. ...

tco/ip,osi model,socket programming, networking

Hi experts, can anybody give me the names of best books(writer names also) on 1.tcp/ip 2.osi model 3.socket programming and a good book of networking? ...

Single or multi-threaded with TCPListener class?

We're creating a c# app that needs to communicate with one other system via TCP/IP sockets. We expect to receive about 1-2 incoming transactions per second, each message averaging around 10k in size (text and 1 image). We'll then do some processing (could take anywhere from 100 milliseconds to 3 seconds, depending on a few variables), ...

VB.Net - Networking method for client/server game

Hi All, My first question so go easy on me :) I've been developing for years and have written WAY too many apps (mostly web apps) using web services - I'm happy with SOAP/WSDL/etc... I also used to write TCP/IP client-server apps back in the day using good old winsock. I'm a bit bored and looking for a new project to expand my skills ...

How to access c# sockets server from telnet or SSH?

I've created a very simple sockets server in C# that, when given a number, returns the number doubled. I'm using TCPListener. This server currently works with a simple Winform client I put together, using TCPClient. I tried to connect to the server with Absolute Telnet while it was running. It connects, however the telnet program doe...