|
So my Windows Server 2008 server with the local ip 192.168.100.1 and public ip 200.124.34.250 and with many open doors. I would like to communicate with this server from another computer of an ip 192.168.0.1 network.
|
|
|
|
|
OK, that doesn't say a whole lot. But, the suggestion I had before still stands. On your server-end you have to setup port forwarding so the router forwards the appropriate ports for your application that's listening on the server. On the client-side you don't have to do anything.
|
|
|
|
|
Getting access my server from outside of my network even used this example to transfer files, released the door and yes.
https://code.msdn.microsoft.com/windowsdesktop/Fixed-size-large-file-dfc3f45d
Now my biggest interest would connect another client outside my network and use my server as a repeater 192.168.100.1 . Example
PC 1: 192.168.10.20 - BRAZIL
PC 2: 192.168.50.50 - ARGENTINA
Thanks for listening.
|
|
|
|
|
Repeater for what?? This is the part you're not explaining. You're implying that your server is going to be transferring traffic to another server somewhere else. OK, so where is this other server? Is it behind a NAT like your server is? If so, it's going to have to have to setup port forwarding too, just like if it was expecting a client to connect to it.
As a matter of fact, your intermediate server has to be a server to an actual client and it also has to be a client to another normal server.
|
|
|
|
|
No , I was an alternative to turn the server on a repeater if I can create a p2p or other method to connect the two computers ( PC server " 192.168.0.2 ") and ( pc client " 192.168.10.5 " ) behind the nat would a better solution .
|
|
|
|
|
That made no sense at all, but in any case, the answer doesn't change.
|
|
|
|
|
I have problem with my code. I don't know how to fix. I just want to get all title and gig_url from JSON url and write it to my arraylist. It showed error at: var obj = JObject.Parse(jsons);
modified 13-May-16 6:15am.
|
|
|
|
|
The response returned from the server is compressed. The HttpWebRequest class supports automatically decompressing the response, but that property is not available from the WebClient class.
There are several workarounds suggested in this StackOverflow thread[^]. For example:
class MyWebClient : WebClient
{
protected override WebRequest GetWebRequest(Uri address)
{
var request = base.GetWebRequest(address);
var http = request as HttpWebRequest;
if (http != null) http.AutomaticDecompression = DecompressionMethods.Deflate | DecompressionMethods.GZip;
return request;
}
}
...
using (var webClient = new MyWebClient())
{
...
}
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
i have 2Dim Array, and have to store the Array-Values with the methode "uploadData"
I get this ErrorMsg.
"Cannot convert source type object[,] to target type object[][]"
Can you tell me, whats wrong with this Code. Can i convert this Array to Target-Array?
Regards Nicole
The Code:
object[][] data = new object[2][]
{
{"Seiten","Kategorie","Kategorie_Domain","Kategorie_Pagename"},
{"Text1","Text2","Text3","Text4"}
};
dataImport.uploadData = (data); <= UploadData is awaiting Array-Format [][]
modified 12-May-16 10:58am.
|
|
|
|
|
Quote: whats wrong with this Code You forgot to share the code 
|
|
|
|
|
You can't convert a 2D array directly to a jagged array: they are very different.
A 2D array (say 3 columns of 5 rows of integers) is a block of memory 15 integers long, that is accessed via a row and column address:
myArray[2, 4] => integer at [myArray + (4 * 3 * sizeof(int32)) + 2]
A jagged array is something else: it's a 1D array of references to 1D arrays. So if ther are the same size:
myJaggedArray[2][4] => Get the array at [myJaggedArray + (2 * sizeof(Reference))], then use it in [subArray + (4 * sizeof(int32))] to fetch the value.
You can't "magically" convert between them, because there are memory allocations that need to be done, and bounds checking that changes between them: a jagged array doesn't have to have all it's rows with the same number of columns.
If you want to convert you will have to write the code to allocate the new 1D array, allocate each of the row arrays yourself, and manually fill the appropriate cells.
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
Converting from autocad dwg file to both PDF and Image
modified 12-May-16 6:25am.
|
|
|
|
|
What have you tried?
Where are you stuck?
What help do you need?
We aren't a code writing service: we expect you to do the work, but we'll help when you get stuck...
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
|
.Net framework 4.0 and upper require reboot after installation on windows checked on windows 7 both 64 and 32 bit.
My requirement is, I don't want to restart client PC after install .net framework 4.0.
Is there is any solution for this??
|
|
|
|
|
No
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
It is not new for 4.x...
In any case read this:
Reducing System Restarts During .NET Framework 4.5 Installations[^]
If you integrate the framework installation into your own setup (using the chain installer mentioned there) you can say the end user (via UI), that some applications have to be closed to prevent restart, and provide better UX...
Skipper: We'll fix it.
Alex: Fix it? How you gonna fix this?
Skipper: Grit, spit and a whole lotta duct tape.
|
|
|
|
|
MSDN says "The .NET Framework setup will require a reboot when one of the files it needs to install is in use during installation. There are a handful of files that are shared by all versions of the .NET Framework, so if there is an earlier version of the .NET Framework installed on the system than the one that is currently being installed, and a managed application is running and holding one of the shared files in use, then a reboot could be required at the end of installation."
here are details[^]
Find More .Net development tips at : .NET Tips
The only reason people get lost in thought is because it's unfamiliar territory.
|
|
|
|
|
I have Created one windows form Application in Visual Studio 2012 on Windows 7 64bit.
I used ClickOnce to build setup and Publish it on LocalHost(using IIS7). I also Used Certificate to solve Publisher Issue.
Now, when I install setup on another Machine(available in LAN), it display Unknown publisher. If I Install Certificate(setup -> Properties -> Digital Signature -> Certificate) then it display Publisher Name.
Is their any other way to install certificate automatically before setup screen(with Publisher name) popup?
Or is their any other way to define publisher name in setup.
I have used this Video tutorial to make ClickOnce setup trusted publishers.
modified 12-May-16 7:08am.
|
|
|
|
|
|
I am talking about ClickOnce.
In that question, it's all about setup using InstallShield or Wix. I also tried it but not getting success to set publisher name. So do you have any suggestion to set publisher name? Please read question Again. I am using Clickonce and able to display Publisher Name in my machine. But when I install it in another machine it still display Unknown Publisher.
|
|
|
|
|
Wrong forum. You may have written your application in C# but your question has nothing to do with C#.
This space for rent
|
|
|
|
|
Yes. Pete O'Hanlon,you are right. I have written my code in C#. But question is about Setup and publisher name of windows form project.
|
|
|
|
|
I know what the question is. How about looking at what the forum is called and then asking yourself if this is really the right place to ask this question.
This space for rent
|
|
|
|
|
So do you have any suggestion to solve Digital Signature (Unknown publisher) issue?
|
|
|
|