User Profile
Collapse
-
thx for answer Icecrack but this doesnt help, i know what multicast is and how it works, i was just wondering if it works across internet(not just LAN). Well, i have tried it and it doesn't. -
ok, i probably wasn't clear with my question, the question is - does multicast works just over lan or over internet too? How does my local router knows who else is in my multicast group on the internet, does it use IGMP to search for every possible multicast user or what? thx.Leave a comment:
-
my router/(dsl modem) is netopia 2240n
it seems that windows xp somehow supports multicast and does all the work instead of the router.
i really dont undestand how multicast works, mulitcast addresses are in range 224.0.0.0-239.255.255.255 , but are those public addresses or they work only on private networks(lan)?Leave a comment:
-
Multicast
Hello, i was reading an article on multicasting on Microsoft TechNet and it says that if i want to implement multicast on my network i need this:
i am using multicast on my LAN and it works without router. That is my question - how can multicast work without router? It may seem like a stupid question but i really need an answer...thx... -
You need to forward ports only for the server(incoming connection).
Client does not need to forward port because of the way NAT in your router works.
When client(outcomin g connection) start the connection, it sends some packets over the router, NAT(in the router) remembers clients IP and port and puts it in temporary table. That way when packets(incomin g) come for client, the router knows on which IP to send it because of the...Leave a comment:
-
I send SOAP messages to UPnP device(router) and then wait for the answer. UPnP is actually very simple protocol. UPnP standard is made by UPnP forum.
First you must understand UPnP(first three chapters are most important for good start):
https://www.sane.nl/sane2006/program...-papers/R6.pdf
This is the link for official UPnP documentation:
http://www.upnp.org/resources/upnpresources.z ip
(UPnP-DeviceArchitect ure-v1.0.pdf...Leave a comment:
-
UPnP
Hello,
I am using UPnP in c# to communicate with my router. So far i have managed to do this:
1. Get router info(xml)
2. Get external(public ) IP address
3. Add and delete port mapping
Is there any way to see which ports are forwarded? I think it is possible with eventing but my router doesnt support it. I tried with queryStateVaria ble action but with no success. I am not using NAT traversal. -
Network accessibility
Hello,
I am trying to check if some ports on my computer are forwarded properly(i am behind a router).The normal method for this is to create a server on your computer and send a request to some free web proxy to connect back to you. So if connection is established, port is forwarder properly. This works ok but i takes around 5-10 seconds. The question is: why cant i check if port is forwarded properly simply by trying to connect to... -
Hi, this sample takes two number from textBox1 and textBox2, adds them, and outputs them to textBox3:
Code:Int32 number1 = Convert.ToInt32(textBox1.Text); Int32 number2 = Convert.ToInt32(textBox2.Text); Int32 number3 = number1 + number2; textBox3.Text = number3.ToString();
Leave a comment:
-
I was right, asp/php script is necessary:
c# code:
Code:WebClient webClient = new WebClient(); byte []responseBytes=webClient.UploadFile("http://www.etfos.hr/~dhuis/Upload.php", @"c:\data2.dat"); String response = Encoding.Default.GetString(responseBytes); MessageBox.Show(response);
Code:<?php $uploadDir = 'Upload/'; $uploadFile
Leave a comment:
-
Thanks for your answer but i believe you are wrong, the uri is correct. "http://www.etfos.hr/~dhuis/test.txt" means that i want to put the file in
"http://www.etfos.hr/~dhuis/" and name it "test.txt". I believe i should have the receiving script on my web server, i will try to make one and post it if i succeed...Leave a comment:
-
Do i have to make some asp/php code to recieve it on my server? I thought http will do it for me like ftp does?Leave a comment:
-
-
WebClient.UploadFile problem
Hi, i am using WebClient.Uploa dFile to upload a file on my web page, code:
Code:WebClient webClient = new WebClient(); webClient.Credentials = new NetworkCredential(userName, pass); webClient.UploadFile("http://www.etfos.hr/~dhuis/test.txt", @"c:\test.txt");
my web page is http://www.etfos.hr/~dhuis... -
-
I didnt do release build, i didnt even know that it exists until now. I will try.
It is not MFC app. Even default simple window program doesnt work. The error i get on other computers is Error executing program and nothing else. I have been using VS 6.0 for about five years and never had any problems. C# programs work great only this dont.Leave a comment:
-
Visual studio 2008 problem
Hi,
I made native win32 application in VS 2008, the problem is that it works only on my computer. Which files do i have to distribute with exe file? I distribute it with
msvcr80.dll and msvcr90.dll and Microsoft.VC80. CRT.manifest and Microsoft.VC90. CRT.manifest and APP_NAME.interm ediate.manifest and it still doesnt work?
PS: If i convert the VS 6.0 project into VS 2008 project then it works with only exe. -
ok i figured it out, once again, the solution was hiding in the MSDN. It turns out that "\" is a special char for regex.replace so i cant use it. If i want to match "\" i must use "\\" like this:
Code:String buffer=richTextBox.Text; buffer = Regex.Replace(buffer, @"\\n", "!"); MessageBox.Show(buffer);
Leave a comment:
-
Code:String buffer=richTextBox.Text; buffer = Regex.Replace(buffer, @"\n", "!"); //buffer=buffer.Replace(@"\n", "!"); MessageBox.Show(buffer);
Code:buffer = Regex.Replace("a\nb", @"\n", "!");
Leave a comment:
-
Regex & \n
Hi,
I want to replace "\n" with "!" in c#, i tried this:
Code:String buffer=richTextBox.Text; buffer=buffer.Replace(@"\n", "!");
Code:String buffer=richTextBox.Text; buffer = Regex.Replace(buffer, @"\n", "!");
No activity results to display
Show More
Leave a comment: