Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

IP Office IP Copier - Selfmade Java Tool for convenience 8

Status
Not open for further replies.

Alfalis

Technical User
Oct 15, 2012
250
DE
Hi everyone,

I want to share a little program of mine I wrote.
Basically it's designed to make my day-to-day live as an IPO technician more comfortable.

ipcopierexample.png

What it is:
A little Java application showing you a list of all the IPOs you need to administrate at work.

What you can do:
Click the customers name to copy the IP of the IPO (hence the name IP Copier) into your clipboard.
Hover over the customers name to see the IP in a little tooltip.
Use the ping button to.. well you know ;)
The config button will configure the lan interface of your computer according to the customers network and IPO.
And finally (of course) you can edit the config.txt to add/remove customers and change settings.

Why I wrote IPC:
Because of my bad memory and my laziness ;D
Whenever I wanted to connect to one of our customers IPO first I had to look into an excel sheet containing all our customers informations including the IP of the IPO, set up my lan interface accordingly and finally type the IP into Manager (because 255x4 doesn't work if you're not in the same subnet plus using the broadcast address is fairly slow). So I started working on a very early and simple version of IPC with only one feature: Copy the IP by clicking the customers name..
After I had another few hours of spare time I added the ping and the config feature, making IPC even more convenient :)


So far I tested it on XP 32bit and Win7 64bit but as it's written in Java I'm sure it will work under almost every operating system.

Download @ Dropbox (13KB)

Please feel free to give me any feedback you can including questions, bug reports and new ideas!


thx and have fun
Alfalis

ptc.png


ACSS
 
I downloaded it and will give it a whirl later today (should I not forget)

but I feel old, I barely know what Java does besides being able to really screw up your PC and you wrote a program.

Have a star for the effort and the sharing part of it.



Joe W.

FHandw, ACSS (SME), ACIS (SME)



“Quality is never an accident; it is always the result of high intention, sincere effort, intelligent direction and skillful execution; it represents the wise choice of many alternatives.”
 
Can't get the "Config" bit working though.... not sure if the password is even going in as the cursor doesn't move, but I tried local admin, domain admin, domain user with admin rights etc :)



"No problem monkey socks
 
You need the administrator of your local machine (should be "Administrator") and no, the cursor won't move in the cmd window ;)

Basically what the config button does is start cmd as admin (which is why you have to enter your local admins pw once, from there on it will be saved and you won't have to enter it again) and enter the "netsh interface ipv4 set address........" command with the data you put into the config.txt.

Make sure you set the correct name of your computer \\ correct local admin name and use the right password.


Have you tried logging into your computer as local admin? This would be one way to make sure you got the right password.. :)



ptc.png


ACSS
 
Version 1.1 @ Dropbox
- Added a neat little button I'm sure you'll appreciate + (semi)professional changelog :)

By the way: Is there any way of editing your old posts/threads? I haven't found one yet so I thought I might just ask you guys.


Have a great one :)
Alfalis

ptc.png


ACSS
 
no way of editing your old stuff.
works only in private forums and if you are the forum admin


Seems it doesn't like me or Windows 8

have it set to

>Ethernet
>>Laptop-i5\\Joe
#############################################
LAN-Port
192.168.42.1
192.168.42.69 255.255.255.0 192.168.42.1
#############################################
WAN-Port
192.168.43.1
192.168.43.69 255.255.255.0 192.168.43.1
#############################################

it opens but if I click on any of the options, it just vanishes and the IP address is still the same.
Not to worry, I know I am the oddball because I like Win8 :)

Joe W.

FHandw, ACSS (SME), ACIS (SME)



“Quality is never an accident; it is always the result of high intention, sincere effort, intelligent direction and skillful execution; it represents the wise choice of many alternatives.”
 
Hello!

Saying there's nothing in the Drop Box.

Could you please upload it again?
 
@Westi: Oh right I think I forgot to mention that this behavior is meant to be. The thing is the whole program was based on the idea of getting the IP as fast and convenient as possible which is why I set it to close IPC as soon as you clicked the companies name (open IPC, click the IPO you want to connect to and that's it - all you have to do now is copy the IP into manager and connect). Try and see if you have the IP in your clipboard after IPC closes.

Now with the new features trying to connect to an IPO would work like this (at least it does for me xD):
- connect your lan cable
- hit the ping button
- if the ping won't work hit the config button to set up your connection -> ping should now work
- click the companies name which will close IPC and copy the IP to your clipboard
- paste into manager and you're good to go ;)

Let me know if everything works :)

ptc.png


ACSS
 
@driven0: Sry my bad, it's back up!

But please note that there is a newer version (v1.1) available which you can find here or in my previous post :)

ptc.png


ACSS
 
Star given to you. Thanks for creating this; I don't have enough IPOs for it to make a huge difference (6) but the future it could come in handy.

Thanks again!
 
Thanks driven :)

You can of course use IPC for everything else you might need to ping or connect to, not just IPOs (servers, other PBXs or maybe even your home router - just be creative [smile])

ptc.png


ACSS
 
clipboard works, darn could have tried that.

but the IP address of my LAN port is not changed, big deal it is mostly DHCP on sites anyways.

Thanks a bundle this is nicer than the excel sheet by far

Joe W.

FHandw, ACSS (SME), ACIS (SME)



“Quality is never an accident; it is always the result of high intention, sincere effort, intelligent direction and skillful execution; it represents the wise choice of many alternatives.”
 
Westi, please run cmd as administrator and try
"netsh interface ipv4 set address name="Ethernet" static 192.168.42.1 255.255.255.0 192.168.42.1"
or
"netsh interface ipv4 set address name="Ethernet" source=dhcp"

Does this change your lan settings?
And please close the connections properties after using these commands and reopen them from your network connections overview - at least on Windows 7 64bit the properties won't show the updated settings until you reopen the properties


Waiting for your feedback ;)

ptc.png


ACSS
 
the first one worked, LOL
midst downloading the new R9.0 firmware

but the DHCP reset button doesn't work must be something with my user password or the user name


Joe W.

FHandw, ACSS (SME), ACIS (SME)



“Quality is never an accident; it is always the result of high intention, sincere effort, intelligent direction and skillful execution; it represents the wise choice of many alternatives.”
 
Ok Westi so far so good. Seems the commands IPC uses are working with Win8.
Let me guess you are using WLAN right now and there is no ethernet cable connected to your pc/laptop? ;)

For some reason setting your connection to dhcp using cmd without a cable connected the settings sometimes won't change (ask Microsoft, I have no idea why..) I added a little note in v1.1 regarding this issue, you can find it in "Free IP-Config" under the DHCP button.

As the commands seem to work with your PC and Win8 but IPC doesn't I guess there is in fact something not quite working with your local account "Joe". Could you please check if it works with the local admin account "Administrator"?

ptc.png


ACSS
 
my Administrator account has not even been setup yet, I will create a password for it and try

but no I am not using the wireless connection :) I changed that before when I started downloading the firmware.

Joe W.

FHandw, ACSS (SME), ACIS (SME)



“Quality is never an accident; it is always the result of high intention, sincere effort, intelligent direction and skillful execution; it represents the wise choice of many alternatives.”
 
Administrator account was disabled but that didn't work either.

I don't want to occupy you here with this, it is already a big improvement over what it was.


Joe W.

FHandw, ACSS (SME), ACIS (SME)



“Quality is never an accident; it is always the result of high intention, sincere effort, intelligent direction and skillful execution; it represents the wise choice of many alternatives.”
 
Hmm... So the commands work with your machine Westi but IPC won't.. That's strange as all that IPC does in that regard is open up cmd, use the runas and savecred commands to practically restart itself only this time as local admin and use the netsh commands we just tested.. Could you please open up cmd (not as admin this time) and try

runas /user:Laptop-i5\Joe /savecred "netsh interface ipv4 set address name="Ethernet" static 192.168.42.1 255.255.255.0 192.168.42.1"

You should see a little pause ("trying to start netsh .... as Laptop-i5\Joe") and then a second cmd window popping up for a short time. After the second window has disappeared your lan settings should have changed. This is to make sure your account works for this kind of settings. If you try another account for the first time you might have to enter your password.

ptc.png


ACSS
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top