networking

Dns.GetHostEntry behind a proxy

Hi, does anyone know how to resolve an external domain name with Dns.GetHostEntry() behind a proxy? I already tried to indicate the proxy information in my App.config (< defaultProxy >) but it doesn't work. Thanks. ...

Interprocess communication: one server and multiple clients

I have one "server" process running, which will fetch data over the network for other processes running on the same machine as the server process. How should I transfer data from the local server process and the local clients? ...

Networking for Xna (C#) and C++?

Me and some friends were thinking about making an online game with XNA game studio. Our games mainly used Winsock for the networking portion, but our most recent project used RakNet where the server was in C++ and the Client used a small RakNet wrapper I wrote. As far as I know XNA can't really use DLLs, so I was wondering what a good ne...

why i get WinHttpSendRequest gives ERROR_WINHTTP_CANNOT_CONNECT error?

Hi, I am working on a sample which send file to server. To send file to server I am using WinHttpSendRequest() API. In my machine It worked fine. But for some other machine it is not working. It gives the error ERROR_WINHTTP_CANNOT_CONNECT(12029). I checked the Firewall setting; it is same as my machine. Please let me know why I am g...

How do I detect real network availability?

Hi when iPhone connects to a wireless router, and that router is not connected to the internet? i need to display an error message saying "check you internet connection" i tried the Reachability sample code. but no luck, http://developer.apple.com/library/ios/#samplecode/Reachability/Listings/ReadMe_txt.html when i disable the WIFI in ...

C# TcpClient not sending or reading 100% of data?

Hey all. I'm writing a simple client/server application (just for the experience, networking is fairly new to me) where the client sends the server data and the server outputs it to a textbox. It all works fine, except for one small detail... It seems sometimes a connection is made, but the data isn't being sent or read (can't work out w...

adding a route table entry in switch hub or something

It is widely known that a network packet can be sent forcely to a designated port(a physical port in switch hub device) by adding a route table entry. For example, (In Windows Console in host A) c:>route add B mask 255.255.255.255 X Enforces any packet from A to B to go to the host X. However, I recently found that it cannot be done un...

Is http POSTing a file across a network much less efficient than copying?

We're developing a windows service which will act as a sort of 'slave' process. This process basically downloads a pdf, splits it into several pdfs then needs to send that pdf back. We're currently using a http request to retrieve the pdf and a number of POSTs to send the files back. This is so the slave service can be run from pretty m...

LAN Development in XNA

Hi, I'm looking at developing a LAN-Only game as part of my coursework at university, however only own 1 computer. Reading around the internet, it seems to be possible to develop such a game by utilising a vmware image and installing all the appropriate pre-reqs on that, then using NetworkSession.Create(NetworkSessionType.SystemLink...

Using C# to pass server share credentials prior to operations

Hello, my application use a shared directory (Windows) on the network and i want to make that share available on network only to a given user and password. Is there any way to pass authentication prior to any operations on this network resource? *I'm not using a domain. Thank you so much! ...

How to determine if network interface is connected to the Internet (i. e. the computer is online)

Hi, I need a way to determine internet availability programmatically. At now i use Ping to constantly ping some internet site. But it seems Windows 7 though determines internet availability in some other way. If computer is online there is earth icon on the network interface icon in the System Tray. The question is: is there any stand...

Using Hamachi to develop XNA on one PC

Hi all, I'm currently trying to develop a network game for XNA (LAN only as no desire to release), however I only own 1 PC. I've been trying many different things but all seem to have failed. I'm running VMWare Player with a Win7 Prof image (with vs2008 + XNA 3.1 installed) from my main PC (Win 7, everything installed). I've installed...

Windows Virtual PC and dual network cards

Hi, We're running a x86 Windows 7 Host with another x86 Windows 7 guest OS through Windows Virutal PC. The host machine is configured with 2 network cards - one for the host, one for the guest. However, though we can access the guest on the network, it will NOT connect to the internet. There are some special considerations on the netw...

Win32 C/C++ - Detecting if IPv6 is installed

Is there a way to detect if the IPv6 protocol is installed without looping through all available IP addresses and checking for IPv6 addresses? I can't find anything on msdn. ...

How can I debug network requests from my iPhone?

I want to check the network requests an app is making from my iPhone. It's on the same WiFi network as my computer (or if it makes things easier, I can set it up to use an ad-hoc network). I don't want to see every packet, just the URLs which my iPhone is requesting. I don't care about the returned data all that much. A simple solution ...

How to debug Websockets?

I want to monitor the websocket traffic (like to see what version of the protocol the client/server is using) for debugging purposes. How would I go about doing this? Wireshark seems too low level for such a task. Suggestions? ...

Wake On Lan doesn't work after some time, how do I solve this?

Hello there, Last week I installed Ubuntu and tried to get it to boot with Wake On Lan. I rerouted all incoming packets at port 9 to the server. When it's the magic packet the server will boot. All went well until I tried it the next day from a different location. It wouldn't work. So I started googling and did some tests and found out...

How to monitor Ethernet connection status

How can I monitor if Ethernet cables are plugged in or not from .NET for a given Ethernet connection? I would like to enumerate all Ethernet connections and subscribe to any connection status changes. I am not interested in detecting Internet access, only if an Ethernet connection is Connected or Not Connected. Update: I found this blo...

How does Skype manage to connect without setting the required proxy

The situation is as follows: I'm at college and we have to set manual TCP/IP V4 settings, and a proxy to be able to connect to the internet. however.. skype manages to connect and fully work even before i've entered the proxy settings my question is, how does the Skype application do this?. because i'd like to write a program that uses...

determine which IP addressed has been used to open a url in c#

Say, I have 2 or more active network cards on my machine. i am using a c# application from which i am calling an asynchronous service. i want to be able to determine which ipaddress have i used when calling this service. for example, my two active ip's are 192.168.10.5 and 192.168.5.7 and the service ipaddress is 192.168.7.12. ...