Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Does anyone know if an hardware ethernet on/off switch exists to buy? Or if it would be possible to build one?

I currently have an issue in my software development environment that can only be resolved by pulling the ethernet cable out of my my machine. I know it does not make much sense, but it is the fastest solution I have to solving this issue (see my open question on StackOverflow)

http://stackoverflow.com/questions/967710/crystal-reports-9-database-connection-issue

What I am looking for is some type of dongle that would sit between my ethernet cable and my machine. I envision a simple on/off switch on it. Does this exist? If not, would I be able to build one? Is there some physical limitation to doing this?

I am really looking for a hardware solution here. As far as a software solution is concerned, I have exhausted most of the possibilities (firewalls, turning off network connection, etc) and most have either not worked or caused some other issues.

SOLUTION:

I took the advice of @tom-wijsman and implemented a software solution. I created a small C# application that adds and deletes an entry in the HOSTS file. This entry will point our database server to a nonexistent IP address. Its kind of a hack, but it solves our problem.

share|improve this question
    
I've never heard of one, but theoretically, it would just require that the switch remove the connection to the copper conductors in the RJ 45 plug. I don't know how easy that would be to build, but it is certainly plausible. –  MaQleod Aug 31 '11 at 15:17
5  
Why not just disable the adapter in the OS instead of pulling the plug? –  Ƭᴇcʜιᴇ007 Aug 31 '11 at 17:05
1  
@Jon: If it's trying to contact a database, can't you add the IP/Server the database is on to the hosts files with the IP 0.0.0.0? Kind of a nasty workaround, but you wouldn't have to plug the cable every time. It might also be interesting to see what Wireshark has to say... –  Tom Wijsman Aug 31 '11 at 17:52
    
@techie007: Unfortunately, disabling the adapter via the OS does not solve my problem. I have tried that many times. When I do that, the software I am running knows that I do not have a network connection and will not let me continue. When I pull the plug, the software does not know the connection is gone. –  Jon Sep 6 '11 at 14:42
    
@tom-wijsman: I could possibly do that... But I would probably have to do it once and then reverse it every time this issue came up. I was looking for a much quicker solution. Its possible that I could script the addition/deletion of the entry in the hosts file. I will look into this further. Either way... I was looking for a hardware solution here. –  Jon Sep 6 '11 at 14:45

5 Answers 5

up vote 2 down vote accepted

You could try something like this. While not an on/off switch it would do the same thing:

enter image description here

I imagine what you could do, is place the cat-5 into the switch and then switch to the other port when you need to turn it off.

Note: while this looks like a RJ-11 it says it's a RJ-45 (Cat-5) switch. I would triple check to make sure.

share|improve this answer
1  
Wow, I remember having one of those back in the day! I always wondered if they really needed all that volume, or if the box contained mostly air. –  Pops Sep 2 '11 at 19:11
    
I've popped open one of those... was a KVM with a big switch like that. The switch itself extended almost to the back of the case, and the rest was wires and air. Lots of free space in there. –  Ryan Gooler Sep 2 '11 at 19:46
    
you could just take it apart and mount the necessary parts to something smaller. But seems like a lot of trouble for a quick fix. –  KronoS Sep 2 '11 at 22:19

I saw an Ethernet On/Off Switch for sale on Amazon.com for $24.99. It looks like just what you are looking for. Here's the link: http://www.amazon.com/Ethernot-10101-Ethernet-Off-Switch/dp/B00ES404P0/ref=sr_1_65?s=electronics&ie=UTF8&qid=1377743998&sr=1-65&keywords=Ethernet+on%2Foff+switch. I hope this was helpful.

bossofme

share|improve this answer
1  
Your answer does not appear to be spam, but as product recommendation questions are off topic (see help center), we discourage providing product recommendations in answers. –  DragonLord Aug 29 '13 at 3:56

Or you can simply build a "lag switch".
Like this.
Just use a switch which can hold all the cables. There you go.

share|improve this answer
1  
So that's how all those teenage gamers get behind me randomly. I don't think you need to get a switch that would handle all wired. The orange effectively does the same thing that the OP wants. –  KronoS Sep 3 '11 at 17:37
    
@KronoS: Uhm. If you use a lag switch you would continue your momentum till a point you are standing still, you continue to move from where you stood still. It does not give you any advantage over other players. People that get behind you is more likely for another reason, starting to listen to footsteps in your headset is a good start to catch those that want to sneak by or leave their camping spot... –  Tom Wijsman Sep 6 '11 at 19:34

Low tech solution: Use a small extra network switch and just pull the plug or use a switched socket-outlet for its wall-wart.

share|improve this answer

I have never heard or seen of such a device. in lieu of a better answer:

Depending on your operating system, it may be easiest to write a small script to enable/disable the port.

If however you want hardware, All I can recommend is you use a 1-2 meter ethernet cable from your computer to your desk (or wherever convenient), and plug it in to a ethernet coupler.

enter image description here

(Non cross over, but, in most cases it won't make a difference)

Then plug the cable that was in your machine in to this.

This should make it a lot easier than what you are currently doing (unless you are using a laptop!)

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.