|
hello
is there any c# code
can change internet ip?
|
|
|
|
|
Which IP do you want to change?
|
|
|
|
|
Um...probably not.
Internet IP addresses are assigned by the ISP, so you can't just "change them" to a different one as that may be in use by someone else, may be on a different ISP, and so forth. Plus, IP addresses apply to your point of connection to the internet - your router usually - not the individual device connected, and are common to all users sharing the same connection. Changing the IP address would effectively disconnect all of them from whatever they were working with.
You could perhaps make use of a Proxy Server which strips out your IP address and substitutes its own, but how successful that would be depends on exactly what you are trying to do, and which Proxy you used.
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
Looks like someone is trying to hide identity
You can use free proxy sites available on the internet, but even they will record your IP and will maintain a log without telling you.
If you want to learn how things work. You can set up a proxy server of your own. Your webpage requests will go via proxy. Enterprise level organisations use proxies to save their identity and apply security to their networks.
|
|
|
|
|
I am working on a project in which audio speech is converting into text format and displaying on lable. i want to pause and resume the thread by pause and resume button. please help , if any body know about that. i used manual reset event, but i freez window form when i press pause button. plz help1
|
|
|
|
|
How have you set up your thread? There are numerous ways of creating a thread, so we will need to know what you have done before we can answer this.
|
|
|
|
|
Did you create a worker thread for the conversion or do you use the UI thread for that?
If the brain were so simple we could understand it, we would be so simple we couldn't. — Lyall Watson
|
|
|
|
|
It looks like you are making you main thread sleep when you pause processing, and you end up hanging your UI.
You need to have a separate thread for running your audio to text conversion code so that, you can pause that thread as an when required. (Hint: see System.ComponentModel.BackgroundWorker documentation)
Please explain how your code works, may be then we will be able to help you better.
|
|
|
|
|
Hi,
Which is the best way to put together an URL in .NET 2 ?
very old technology, I know. I wish I didn't have to use .NET 2.
Something like this:
http://www.website.com/MyFunctionName?MyIdOne=99&MyIdTwo=77&MyBoolOne=true&MyBoolTwo
Thanks
|
|
|
|
|
Member 11713942 wrote: very old technology, I know You sound like someone forced to program in VB6.
I believe them things are called "query strings"; their values can be enumerated using the QueryString[^] property.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
|
You're welcome
|
|
|
|
|
Remember the URL is just a string, you can create strings using many techniques, string concatenation or string format is one of them.
Apart from what other user has said, Query Strings (which is correct answer, indeed this is a query string generated as a response to HTTP GET form submission), I would add the method to create them using string.Format() function (do not concatenate strings like this). string.Format() [^] can be of a great use in such scenarios where you can pass the values for the query string key/value pairs.
The sh*t I complain about
It's like there ain't a cloud in the sky and it's raining out - Eminem
~! Firewall !~
|
|
|
|
|
making a joystick to display Real joystick's parameter using (add user control)
We can put user control background image and draw on it
|
|
|
|
|
This is not a good question - we cannot work out from that little what you are trying to do.
Remember that we can't see your screen, access your HDD, or read your mind.
So please explain in better detail exactly what you are trying to do, what you have tried, and what help you need.
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
hi
how to read from specific cell in excell using C# WinForm ?
for example, i need to read the value of cell B7 and D11
Regardless of the Excell version (2007...2010...2013...)
thanks
|
|
|
|
|
|
Hi,
Which is the best way to deserialize XML into objects in .NET 2 ?
(without namespaces & schema info)
Thanks
|
|
|
|
|
.NET 2 is a very old framework, why use it in very first place?
Anyways, System.Xml [^] namespace can be used in .NET 2.0 and can work with XML data in your applications. You can use it, or read more on that on MSDN (link attached).
Also, instead of XML I would recommend that you use JSON, it has a very compact size and structure and is widely used now a days for networking and APIs for HTTP use.
The sh*t I complain about
It's like there ain't a cloud in the sky and it's raining out - Eminem
~! Firewall !~
|
|
|
|
|
I Need Fresh Project.. need better way too.
|
|
|
|
|
Saneesh kunjunni wrote: I Need Fresh Project.. need better way too. Also, you need a better way to explain your question, if you can call it one at all, if you want people to understand and be able to provide help..
If the brain were so simple we could understand it, we would be so simple we couldn't. — Lyall Watson
|
|
|
|
|
Print Document using Dot metric printer from Website and Desktop in C#
|
|
|
|
|
Are you talking about a dot matrix printer? If not, what is a dot metric printer?
What do you mean by print document from website in C#? If I want to print a web page I select "print" in my browser's menu.
What have you tried and what is the specific problem that you need help with?
If the brain were so simple we could understand it, we would be so simple we couldn't. — Lyall Watson
|
|
|
|
|
|
I'm trying to send Unicode, so i changed my client and server Send and Receive methods in this way:
for the Server:
public string Receive(Socket client)
{
int len;
byte[] data = new byte[1024];
StringBuilder sb = new StringBuilder();
while ((len = client.Receive(data)) == data.Length)
{
sb.Append(Encoding.Unicode.GetString(data).Substring(0, len));
}
sb.Append(Encoding.Unicode.GetString(data).Substring(0, len));
return sb.ToString();
}
public void Send(Socket client, string prompt)
{
client.Send(Encoding.Unicode.GetBytes(prompt));
}
for the Client
public string Receive()
{
int len;
byte[] data = new byte[1024];
StringBuilder sb = new StringBuilder();
while ((len = client.Receive(data)) == data.Length)
{
sb.Append(Encoding.Unicode.GetString(data).Substring(0, len));
}
sb.Append(Encoding.Unicode.GetString(data).Substring(0, len));
return sb.ToString();
}
public void Send(string prompt)
{
client.Send(Encoding.Unicode.GetBytes(prompt));
}
As you can see, both programs have the same Send and Receive methods with the only difference that the methods of the server has a parameter in more (Socket client), just because the server starts a different tread for each one client who ask for connection, in the way to permise to the server to accepts connection by different clients at the same time ( however, I think this has nothing to do with my issue ).
I just want to point out that everything works properly if instead of use Encoding.Unicode i use Encoding.ASCII
Now in my server program i switch the received command in this way:
string command = myServer.Receive(client);
string[] cmd = command.Split(' ');
if (cmd.Length == 1)
{
if (cmd[0] == "cd")
{
message = myServer.CurrentPath;
myServer.Send(client, message);
}
else
{
message = "Command not found";
myServer.Send(client, message);
}
}
but happens that when i send the command from the client to the server i retrieve back from the server the message:
"Command not found"
What and where is my error and how can I solve it?
I'm not a great programmer and if by chance I guessed a few lines of code do not be fooled, it's just because I'm working on this program for a long time. So if you want give more than good advice and you want help me with a few lines of code do not feel restrained by the fear of offending me, on the contrary I will appreciate it very much.
Thanks to all who help me.
|
|
|
|