networking

DD-WRT Router Can't hold a connection after initial setup...

Struggeling with my new DDWRT router (Buffalo WZR-HP-G300NH) configuration. I configured it using one machine while comparing the settings on my existing Linksys WRT54GL on another machine. To the best of my knowledge, I've set it up the same way as my Linksys, but DDWRT has so many other options. After configuring it, I plugged it int...

Listening (waiting) for the commands from the server (IPhone, client-server arhit.)

I'm developin' network game, where players would monitor game news in their client app (Iphones). There would be one server (php based service with mysql) and client with preinstaled my app. Each user will send (may not to send) information about their location to the server (that is easy) and server will write it to the game's database...

Is there a standard way to transmit different types of data at different times over a tcp connection in Java?

This is a conceptual programming question. I'm writing a tcp server/client program in Java. The client program will be receiving multiple data types, and I'm trying to figure out how to properly determine which data type is being sent (otherwise I might try to convert a number to a custom data type or vice versa). I was thinking abo...

Java netty server getting timed out from client connection

We have a netty server running on a specific tcp port. Once in a while, we are getting time out from client connection at this port. But already connected clients have no problem transferring data in the mean time. What could be the problem and what steps can we take to troubleshoot this? The server has very low cpu/ram usage so I don't ...

Need for IP address

Why do we need an IP address when the MAC address is unique? Cant we communicate only with the MAC address? ...

C#/.NET: UnmanagedMemoryStream for networking?

I was considering using UnmanagedMemoryStream rather than MemoryStream for dealing with incoming (and perhaps outgoing?) packets in a network server. What I hope to achieve is less copying of values, and if possible, avoid copying to the heap (too much). For example, for an incoming packet, one could do: fixed (byte* p = &data) // wher...

my static ip problem

hi friends i am trying run a web server on my static ip address but when i open my ip address its opening my dsl router how can i assign that ip to my computer any idea thanks ...

Measuring Dropped packets in Network through wireshark

Monitoring the all network traffic from one port on the switch and captured the all traffic bu using wireshark. Here i found all packet captured in the summary result and it has dropped packet information also. This is some thing lost packets in the network or at the wireshark point? I was in ambiguous...i am testing in ethernet based a...

Odd Behaviour with Lines in TextBox and .AppendText() - C#

Hello all! I'm currently following the great tutorial on Geekpedia to create my own Chat Client and Chat Server. Connecting the clients to the server works fine but I'm experiencing a few issues with the text being displayed in the chat log. The first message that is displayed is in the Server window then the incoming connections are ...

What are best practices of designing and implementing Network Protocols?

For the first time I'm trying to implement some Network Protocol over TCP/IP. I've designed one but I'm not sure if it's efficient. Design So here is my idea: after client opening TCP/IP connection with server, every time it wants to make request, first of all it sends size of request followed by some separator character (new line or s...

Malloc only once for ALL adapters when using GetAdaptersInfo()?

I looked at the GetAdaptersInfo() sample in MSDN: http://msdn.microsoft.com/en-us/library/aa365917%28VS.85%29.aspx and noticed that while the sample attempts to iterate through ALL adapters, it only allocates memory for the first one. Is this a bug? If not, why not? Do all adapters have the same info size? To further clarify my ques...

Manchester Encoding and the Ethernet protocol

Theoretical question here -- the [general] Ethernet protocol uses an 8 byte preamble with an (almost) all 10101010 bit pattern, save for the very last byte. One purpose of this is for sender/receiver synchronization. Since Manchester Encoding can inherently sync the sender and receiver, do you think that the preamble is necessary or re...

when i ping internet addresses like yahoo or Google i get 2 reply packets and 2 lost packets.

i have Airtel broadband and a Tata broadband connection. i have around 50 PCs connecting through a airtel broadband connection. both are dsl connections with my phone line going into dsl modems and a Ethernet cable going from dsl modem directly into switch. currently only airtel connection is connected with static ip on my private lan an...

Haskell Network.Browser HTTPS Connection

Is there a way to make https calls with the Network.Browser package. I'm not seeing it in the documentation on Hackage. If there isn't a way to do it with browse is there another way to fetch https pages? My current test code is import Network.HTTP import Network.URI (parseURI) import Network.HTTP.Proxy import Data.Maybe (fromJust) imp...

Get an IP_ADDRESS_STRING from GetAdaptersAddresses()?

GetAdaptersAddresses() will get you addresses in IP_ADAPTER_UNICAST_ADDRESS format, which is defined as: typedef struct _IP_ADAPTER_UNICAST_ADDRESS { union { struct { ULONG Length; DWORD Flags; } ; } ; struct _IP_ADAPTER_UNICAST_ADDRESS *Next; SOCKET_ADDRESS Address; IP_PREFIX_ORIGIN ...

What's the difference between tagged and untagged port in a VLAN configuration?

What's the difference between tagged and untagged port in a VLAN configuration? Switch model: hp ProCurve 1810G-24 cheers daniel ...

Java netty can only take X number of request per second?

Java netty can only take X number of request per second? With the selector approach is it true that it can be a bottleneck in terms of serving request per second? We find that when the traffic is high, clients are unable to connect through, resulting in a time out. ...

How can I programatically get HBA information (or PowerPath details) from a server?

I'd like to monitor details of my HBA's and not sure how to extract info from my PowerPath console or anything from my QLogic HBA's. Any detail or information would be great. From what I can tell, Microsoft uses something called HBAAPI when installing the Exchange Best Practice tools... ...

Need for both Ciphering and Integrity ?

Why do some scenarios require both ciphering and integrity whereas some scenarios require only ciphering ? What are the factors that decide this in the case of networking domain ? ...

access denied error - c#

I have a text box and a button in a form.i want to save a file into the network path entered in the textbox while clicking the button. i tried the code given below. private void button1_Click(object sender, EventArgs e) { string destinationPath = txtFilePath.Text.ToString(); string sourceFile = @"c:\1.txt"; ...