tcpip

Change the settings of a single NIC using WMI (C#)?

Hi. I have read this article about using WMI to change the settings of NICs ( Article) But I can't figure out how to change the settings of a single NIC (based on MACaddress, ID or whatever) instead of all NICs !? Anyone ? ...

How do I extract the network protocol from the source code of the server?

I'm trying to write a chat client for a popular network. The original client is proprietary, and is about 15 GB larger than I would like. (To be fair, others call it a game.) There is absolutely no documentation available for the protocol on the internet, and most search results only come back with the client's scripting interface. I ca...

networkStream.CanRead true but Buffer returning no value

I have a do while loop that reads a buffer from a NetworkStream object the while condition is networkStream.CanRead so as long as it can read it should continue reading from the buffer. Only problem is when I read from the buffer and convert to string, there is nothing in it . i.e. its empty. Why would that happen? This is an ASP.net (...

How can I recreate an error where Network.CanRead is true and nothing is being sent

Related Question: http://stackoverflow.com/questions/1746342/networkstream-canread-true-but-buffer-returning-no-value I want to recreate a TCP server that doesn't send any data on the network stream (or that's how it seems when the bytes are converted to string) but the NetworkStream object .CanRead property still remains true If I don...

Maintaining many socket connections with a single thread

Many tutorials on socket communication I see seem to use 1 thread per socket. But on a server used for online gaming, you might have 10k concurrent users - 10k threads isn't probably a wonderful idea. I came across a tool (SmartFox) which claims to use a single thread for monitoring all socket connections, potentially thousands of them. ...

What is the cost of many TIME_WAIT on the server side?

Let's assume there is a client that makes a lot of short-living connections to a server. If the client closes the connection, there will be many ports in TIME_WAIT state on the client side. Since the client runs out of local ports, it becomes impossible to make a new connection attempt quickly. If the server closes the connection, I w...

C# TCP/IP Client having an IO Exception.

The IO Exception: "Unable to read data from the transport connection: An established connection was aborted by the software in your host machine." The code has been copied from a tutorial and I'm sure that this error has something to do with my own machine. All of my firewalls, ESET and Windows, are off. The clients connect via port 555...

Is transactions over machine boundary (via tcp-ip) possible?

Hi, Theoretically, can one define a protocol where one machine does some remote calls on another machine (or more than one), and where in any part of the process, if any of the machines (or operations) fails, or the communication drops, everything is rolled back? (just like databases can) I ask this, since on the hardware level, one a...

How to get IP when connected to Wifi on BlackBerry?

Hi, I'm trying to my application to retrieve the IP address when it's connected to the Wifi network but I'm not too sure how to get that done. I've looked at RadioInfo and there's a function getIPAddress(int apnId). Is this the right one? I've also looked at WLANInfo but that one doesn't seem to have any IP related functions. Anyone c...

How to tamper with source IP address on Windows

Hi folks: We meet a testing scenario which needs to tamper with source IP address of a Http request to simulate clients coming from different countries. Do you know any tool help on this? Last but not least, our web site is built with ASP.NET. Thanks. ...

Any particular services that has to run ? (win32_networkadapterconfiguration)

Hi. I'm having problems with a script that changes the TCP/IP settings of my NICs. The script works as it should on most PCs, but on some it don't. I can't figure why it wont work because both the working systems and the non working systems have .NET 3.5 SP1 installed... The weird thing is that I have no problems getting the current TCP...

How can I verify that a TCP packet has received an ACK in C#?

After sending some tcp data with the blocking/non-blocking methods such as: Socket.Send() or Socket.SendAsync() How can I know that my data has received an ACK message? Can .NET know if TCP data has been successfully sent? ...

Question about configuring sql server 2005.

When configuring a SQL 2005 Server in preparation for connectivity to a SharePoint Server 2007 farm, Microsoft recommends that Local and Remote Connections use both TCP/IP and named pipes. Where is this setting found? ...

IPWorks alternative

I have previosly used IPWorks .NET suite of controls (or atleast a few of them). And since I only use the basic controls Ipport, Telnetport and IPdeamon I would like to find an alternative. So is there any OpenSource or cheaper controls out there? Dont get me wrong, if I would use more of their controls I would buy a new licence becaus...

C# send structure objects through socket

i have done a bit of reading in client/server programming in c#. i am familiar enough with this process to ask the following question: how do i transmit structure objects through tcp/ip instead of just strings? my app is a networked game with chat capabilities. so instead of just transmitting text, i would like to imploy a data structu...

How does a TCP/IP packet reach to a specific server socket?

I understand that when a TCP client connects to a server, it automatically uses a unused local port unless specified explicitly. On the server side, we have a listening socket which creates a new socket whenever a new connection is accepted. But all server sockets use same local port (I checked this with netstat). My question is how doe...

How to create a local-server that the web-browser control can use

For my newest windows-application I want to create an interface that is web-based using the web-browser control, and I want to make Ajax work on it. Since all the content will be loaded by the web-browser control itself I want to create a web-server that would work on a localhost port and serve my content to the web-browser when it acces...

Bind TCP server to specific adaptor

How can I specify which adaptor to begin listening on? I have an application running on a PC which happens to have 2 network adaptors running on different subnets (one network for Business LAN infrastructure, one for TCP cameras) I have a class which opens up a TCP server and listens on a specific port for connections coming in from cl...

Filtering HTTPS traffic?

Is it possible to filter HTTPs traffic? For example via a TDI filter? Or perhaps you need to use a proxy? This product seems to do filtering of HTTPS traffic and I'd like to know how it does it, as well as if this is the only way. How about via the Windows Filtering Platform for Vista and up? ...

SSL Client For Row Tcp/Ip in iphone

i want to make a client of SSL Server Socket in iphone but i cannot find any API in iPhone. i have valid certificate file with password ...