Click here to Skip to main content
15,891,907 members
Home / Discussions / C#
   

C#

 
AnswerRe: Beginner c# question Pin
Luc Pattyn14-May-11 18:39
sitebuilderLuc Pattyn14-May-11 18:39 
GeneralRe: Beginner c# question Pin
Roger Wright14-May-11 20:11
professionalRoger Wright14-May-11 20:11 
GeneralRe: Beginner c# question Pin
Richard MacCutchan14-May-11 21:32
mveRichard MacCutchan14-May-11 21:32 
AnswerRe: Beginner c# question Pin
PIEBALDconsult14-May-11 18:52
mvePIEBALDconsult14-May-11 18:52 
GeneralRe: Beginner c# question Pin
jschell16-May-11 8:37
jschell16-May-11 8:37 
AnswerRe: Beginner c# question Pin
jschell16-May-11 8:39
jschell16-May-11 8:39 
Questionhow to disable and enable network access with simple c# code Pin
MohammedMahmoud14-May-11 10:41
MohammedMahmoud14-May-11 10:41 
AnswerRe: how to disable and enable network access with simple c# code Pin
jschell14-May-11 11:31
jschell14-May-11 11:31 
MohammedMahmoud wrote:
can i disable and enable it or can i control internet access with my pro ?


That probably depends on exactly what you mean.

From the technical standpoint you do not "have" internet access. What you have is the ability for your IP traffic and probably more specifically TCP requests to reach other computers (of which those compose the internet.)

And denying access to that depends on your exact network setup. So for example if you have a typical home setup with a desktop and and cable modem then you would want to configure the cable modem to stop allowing traffic to and from external IP sources. That would leave local traffic still working but the internet would not be accessible.

However to do that you must interact with the cable modem box and there is no specific fixed way to do that.

Conversely if you are talking about creating a firewall via C# then that is a different solution as well.

MohammedMahmoud wrote:
if you can , i don't want to use API methods


Then no.

The term "C#" is used to refer to both the language and the .Net API. And like most or perhaps all languages you cannot not do any real work in the language without using 'libraries' that come with the language. For C# that is the .Net API.

Myself when I want to disable network access, which is not the same as internet access, I use Process to run the 'ipconfig' command with the '/release/' option. Of course it is a good idea to set it back up again.
GeneralRe: how to disable and enable network access with simple c# code Pin
MohammedMahmoud14-May-11 11:44
MohammedMahmoud14-May-11 11:44 
GeneralRe: how to disable and enable network access with simple c# code Pin
jschell16-May-11 8:29
jschell16-May-11 8:29 
AnswerRe: how to disable and enable network access with simple c# code Pin
Luc Pattyn14-May-11 12:11
sitebuilderLuc Pattyn14-May-11 12:11 
GeneralRe: how to disable and enable network access with simple c# code Pin
dybs17-May-11 16:11
dybs17-May-11 16:11 
AnswerRe: how to disable and enable network access with simple c# code Pin
Richard MacCutchan14-May-11 21:37
mveRichard MacCutchan14-May-11 21:37 
QuestionHow can my hosted asp.net website access my local machine database Pin
akosidandan14-May-11 2:15
akosidandan14-May-11 2:15 
AnswerRe: How can my hosted asp.net website access my local machine database Pin
Luc Pattyn14-May-11 2:45
sitebuilderLuc Pattyn14-May-11 2:45 
GeneralRe: How can my hosted asp.net website access my local machine database Pin
akosidandan14-May-11 3:28
akosidandan14-May-11 3:28 
AnswerRe: How can my hosted asp.net website access my local machine database Pin
Luc Pattyn14-May-11 3:39
sitebuilderLuc Pattyn14-May-11 3:39 
GeneralRe: How can my hosted asp.net website access my local machine database Pin
akosidandan15-May-11 2:34
akosidandan15-May-11 2:34 
AnswerRe: How can my hosted asp.net website access my local machine database Pin
Luc Pattyn15-May-11 3:08
sitebuilderLuc Pattyn15-May-11 3:08 
GeneralRe: How can my hosted asp.net website access my local machine database Pin
akosidandan15-May-11 4:32
akosidandan15-May-11 4:32 
AnswerRe: How can my hosted asp.net website access my local machine database Pin
Luc Pattyn15-May-11 4:38
sitebuilderLuc Pattyn15-May-11 4:38 
GeneralRe: How can my hosted asp.net website access my local machine database Pin
akosidandan15-May-11 4:57
akosidandan15-May-11 4:57 
AnswerRe: How can my hosted asp.net website access my local machine database Pin
Expert Coming14-May-11 5:16
Expert Coming14-May-11 5:16 
GeneralRe: How can my hosted asp.net website access my local machine database Pin
akosidandan15-May-11 2:45
akosidandan15-May-11 2:45 
Questionhow to switch off the parallel port Pin
aeman14-May-11 1:18
aeman14-May-11 1:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.