|
thanks
my program is like chat between two PCs i did it in LAN and the IPs are 123.0.0.1 and 123.0.0.2 for internet what is the IP should i use?
|
|
|
|
|
You have to have the two computers figure out eachother's IP addresses somehow. Typically, this is done by having a server negotiate between them (the server tells each computer what the IP is of the other computer). Since most computers have dynamic IP addresses, that's about the only way to do it. However, if one of your computers is a "server" with a static IP, you can have the other computer connect to that computer, at which point it can tell the server what it's IP address is.
If you just want the IP address of each computer for testing purposes, you can visit http://www.whatismyip.com/ on each computer to get that information. If they are on the same network, you may have problems because they may appear to have the same IP address. I'm not sure how you'd handle that.
|
|
|
|
|
|
I'm not familiar with that (just did a Google search), but it looks like UPnP is meant to discover devices on a given network. Don't think that'd work over the Internet.
|
|
|
|
|
It shouldn't, but he never specified which IP he wants to know where, there are many valid reasons to want to know the WAN IP of the local computer
|
|
|
|
|
thanks a lot
the two computers have dinamic IP but for small time i should have the same IP for that time i want my program works
|
|
|
|
|
sanforjackass wrote: how can i do it through internet
Consider studying ASP.NET. It should not be difficult if you can do a client-server application.
sanforjackass wrote: what IP should i use
A computer recognized IP should work!! Wamuti: Any man can be an island, but islands to need water around them!
Edmund Burke: No one could make a greater mistake than he who did nothing because he could do only a little.
|
|
|
|
|
I'm trying to see the data that my WebBrowser posting back to the server.
I'm navigating to http://www.finaid.org/calculators/costprojector.phtml[^] (in my WebBrowser), filling in the few calculator boxes, then clicking calculate.
I have a breakpoint at the WebBrowser_Navigating event and checked the memory for both my WebBrowser and the event's WebBrowserNavigatingEventArgs but have been unable to find my test data. I see that the (WebBrowserNavigatingEventArgs) e.Url from the WebBrowser_Navigating event is attempting to open "http://www.finaid.org/calculators/scripts/costprojector.cgi" but I don't see the calculator parameters anywhere (the post content or request data).
Does anyone know where I can see this data or be able to point me in the right direction?
Thank you all in advance.
Matt
|
|
|
|
|
Fiddler2 allows you to see requests/responses.
|
|
|
|
|
Thank you! Fiddler looks very promising!
I am still wondering how this can be done programmatically in .NET. Does anyone have any ideas?
Thank you again,
Matt
|
|
|
|
|
This page shows how to to monitor network traffic. It basically monitors all traffic then says to filter out based on protocol (e.g., HTTP).
|
|
|
|
|
You can use FiddlerCore[^] to build applications based on the Fiddler.
|
|
|
|
|
I want to use FFTW in C#, but I can not get it work. anyone knows it?
there are lot of FFT implemented in C# but only supports with a data length of 2^n, anyone knows some good
FFT algorithm supports arbitray length?
thanks!!
|
|
|
|
|
Message Closed
modified 23-Nov-14 7:12am.
|
|
|
|
|
thanks, but the link you give me does not work.
|
|
|
|
|
Take a look at ILNumerics[^] As long as you have the FFTW libraries in the same directory, all you need is the line
ILMath.FFT = new ILFFTW3FFT(); and ILNumerics will use FFTW.
DybsThe shout of progress is not "Eureka!" it's "Strange... that's not what i expected". - peterchen
|
|
|
|
|
|
I am trying to package SQL Express with my application and am having some trouble with the installation. I keep getting an error in the error log that says "credentials not valid" in reference to the supplied account (Which is NT Authority\System). Which is an issue I have researched and found no solid answer for. Maybe because it is Windows 7, I am not sure.
Anyways, rather than supplying the account via command line can I supply it the same way it is supplied in the SQL Express setup, with a drop down list?
If so, does anyone have a pointer to code for something like this? I am not sure how to get the information from AD to begin with (a combobox with a LDAP datasource?). And then, what that information should like like in code? (e.g. cboAcct.text?)
Right now the code looks like this:
strCommandLine.Append(" /Timestamp=" + timeStamp);
strCommandLine.Append(" /Action=Install");
strCommandLine.Append(" /AddCurrentUserAsSQLAdmin");
strCommandLine.Append(" /Features=SQL,SSMS");
strCommandLine.Append(" /InstanceName=pcExpress");
strCommandLine.Append(" /q");
strCommandLine.Append(" /SQLSVCACCOUNT=NT AUTHORITY\\SYSTEM");
strCommandLine.Append(" /SQLSYSADMINACCOUNTS=BUILTIN\\ADMINISTRATORS");
strCommandLine.Append(" /SQLSVCSTARTUPTYPE=Automatic");
strCommandLine.Append(" /AGTSVCACCOUNT=NT AUTHORITY\\SYSTEM");
strCommandLine.Append(" /AGTSVCSTARTUPTYPE=Automatic");
strCommandLine.Append(" /RSSVCACCOUNT=NT AUTHORITY\\SYSTEM");
strCommandLine.Append(" /RSSVCSTARTUPTYPE=Automatic");
strCommandLine.Append(" /ASSVCACCOUNT=NT AUTHORITY\\SYSTEM");
strCommandLine.Append(" /ASSVCSTARTUPTYPE=Disabled");
strCommandLine.Append(" /ASSYSADMINACCOUNTS=BUILTIN\\ADMINISTRATORS");
strCommandLine.Append(" /ISSVCACCOUNT=NT AUTHORITY\\SYSTEM");
strCommandLine.Append(" /ISSVCSTARTUPTYPE=Disabled");
Any help would be appreciated.
|
|
|
|
|
Have you looked over this[^] ? I know the language. I've read a book. - _Madmatt
|
|
|
|
|
I have looked at that, at great length I might add. The problem is when packaging the application I can't use a <domain\useracct> because I have no idea if the machine will be standalone, or on a domain, nor will I have any idea of what the proper user name might be. Some of the examples I have seen site NT AUTHORITY\Network Service as a possible account to use. This works fine in the GUI installation, but I am having trouble getting it to run in the unattended install.
|
|
|
|
|
You may need to create a custom action for the installer to ask for the proper information then I know the language. I've read a book. - _Madmatt
|
|
|
|
|
That was my thought process. The installer itself is not a setup project, but rather a small executable program that wraps the installer with a custom class. It runs the SQL setup in a shell and waits for the process to finish and then launches the setup MSI. That setup has a custom action that collects information and runs a SQL script.
So my idea was to embed a form in the installer wrapper application to prompt for username information for the SQL account, but the average user would be dumbfounded. I guess the bigger issue here is whether anyone has gotten an unattended SQL install to work, and if so using what user for the SQL service account?
|
|
|
|
|
I am trying to figure out how to get a path string to the public directory in Windows 7. On my system the path is C:\Users\Public. Since someone may move this directory to another location, I would like to be able to locate it through code instead of hard coding a path string.
I have looked into using "Environment.GetFolderPath(Environment.SpecialFolder.#####)" but I can't find a SpecialFolder enumeration for the public directory. Does anyone have any suggestions?
Thanks for considering my question,
CraigCraig
|
|
|
|
|
I don't know about .NET 4.0, but there is no enum value that returns the path to the Public folder in any version of .NET up to and including 3.5.
You'll have to resolve the Public environment variable to get that path.
string PublicFolderPath = Environment.GetEnvironmentVariable(@"Public");
|
|
|
|
|
Dave,
Thanks for taking the time to help me. It confirms what I suspected about using that enumeration. Your suggestion will work fine.
CraigCraig
|
|
|
|