Sponsored Content
Special Forums IP Networking How to get IP of computer assigned by DHCP? Post 302883346 by corrado33 on Monday 13th of January 2014 11:27:47 AM
Old 01-13-2014
How to get IP of computer assigned by DHCP?

I have a computer at work with no control over the network settings. We have to pay for a static IP so that won't happen. I'm running an SSH server so I can connect back and analyze data when I'm sitting in boring classes.

I want to know how to get the IP of this machine when I'm on the same network.

Previously what I would do is either grab it before I leave the office, or I set up a script in mail that would email me the IP address if I sent a very specific e-mail to myself.

I'm not very good with networking, and to make matters worse, I'm on an iPad with no true access to a console.

No, this is not illegal, I'm friends with the IT guy on the floor, and he says it's perfectly fine. However, I don't think running a network scan would go unnoticed.

So, what is the best way to do this? My e-mail script only works if the computer isn't asleep, and it especially doesn't work if I forget what to e-mail myself.

Any help?

I could potentially connect to my home server, VPN into the network, then run a bash script that looks for my server but... I don't think that's a great idea.
 

10 More Discussions You Might Find Interesting

1. AIX

Re: User assigned to privileged group

Hi! I need to know what is the risk involved if a user with UID >100 is attached to a group with gid =1 .i.e., a user is attached to a priviliged group in AIX . Kindly let me know what security implication can arise in this case? Early reply in this regard will be highly appreciated. (1 Reply)
Discussion started by: faraz82
1 Replies

2. UNIX for Dummies Questions & Answers

What does $? mean when assigned to a variable?

If i write this statement in a Korn Shell script RCODE=$? what possibly does it eman? (3 Replies)
Discussion started by: ranjita.c
3 Replies

3. Solaris

Unix terminal re-assigned with wrong IP address from window's DHCP

Hi all, I have this problem that puzzles me, i have setup all the right DHCP configuration in Windows Server. The reservation IP address in windows for this specific unix terminal. However, when i rebooted the unix terminal the IP which was already assigned for this box somehow change to a total... (0 Replies)
Discussion started by: tlee
0 Replies

4. Shell Programming and Scripting

how to remove the assigned value from the string

Hi I have the following assignment in my ksh script: PX_LIST="4119 2390 2294 2776 2897 4099" Is there any sed/awk command which would allow the to remove certain number from this string. Let's say I need to remove PX=2390 from PX_LIST, so the output after deletion will be" PX_LIST="4119 2294... (5 Replies)
Discussion started by: aoussenko
5 Replies

5. Shell Programming and Scripting

Check if a variable has a value assigned?

Hi, I want to check if a variable has a value assigned to it or not. I can do following - cat $Var > File1 if then echo "$Var has value" else echo "$Var is null" fi But I have to check for 3 Variables and I want to wrap it up in couple of unix statements. Any... (3 Replies)
Discussion started by: sumeet
3 Replies

6. Red Hat

Which IPs from the range are assigned to DHCP enabled clients

Hi All dhcpd.conf has a range of IPs sa for example( 192.168.1.201 192.168.1.220) So this is the range of IP addresses the server will issue to DHCP enabled PC clients booting up on the network How do i know which IPs are being used or which IPs from the range are assigned to dhcp enabled... (11 Replies)
Discussion started by: tannu
11 Replies

7. Shell Programming and Scripting

Curly braces assigned to variables

Hi, Im pretty new to Unix. I came across a script which was using PLSQL inside a script and there was an unusual thing mentioned. there was a variable assigned as P_CUR=${1} and one more as V_TAGFILE="$1" Couldnt find the difference. Also the variables were used in PLSQL... (1 Reply)
Discussion started by: njks68
1 Replies

8. Shell Programming and Scripting

[Bash] Variable won't get assigned value

I am making of a script that will go through a couple of for loops and create file names based on the values in that loop, however the variable that combines everything is not getting assigned properly: #! /bin/bash for imod in K33_j1b_WS9_6 do for emod in mb2A mb2C mb3A mb3C mb4A... (1 Reply)
Discussion started by: badinsults
1 Replies

9. UNIX for Dummies Questions & Answers

How do you check if a variable has been assigned?

I am trying to check whether a variable has been assigned on the command line or not. Here is what I did: #!/usr/bin/bash if( $variable == '\0') { print "variable was not assigned" exit } else NF = 2 {print $1, ""} exit fi awk -f question1.awk variable = 58 letters.txt. So... (3 Replies)
Discussion started by: Fred63528
3 Replies

10. IP Networking

Get DHCP relay interfaces IP address using DHCP

Hi All , please view the set up below: ------------------------------------------------------------------- | DHCP Server |-----------| ROUTER & |-----------| Clients | | 192.168.99.1 | - -<eth1>| DHCP-RELAY|<eth2>-- | 192.168.88.X | ... (2 Replies)
Discussion started by: gdangoor
2 Replies
CVSCONNECT(1)															     CVSCONNECT(1)

NAME
cvsconnect - CVS connection minimizer SYNOPSIS
cvsconnect cvsroot [command-to-run ...] DESCRIPTION
CVSconnect enables you to do multiple CVS operations on single network connection. CVSconnect sets up special environment using $CVSRSH/$CVSROOT for the command line CVS client. In the environment, the command line CVS client reuses a network connection. CVSconnect is especially designed to use with CVSsuck. And CVSconnect (or similar) will be integrated to a future version of CVSsuck. However, it is planned that CVSsuck directly connects to a cvs server without cvs command. EXAMPLES
cvsconnect $HOME/.cvsroot BUGS
o The global option -z for compression cannot be used. If you use SSH via ext method, you can use compression by SSH instead. o CVS client must be run at a time. Running two or more clients at a same time will make a trouble. (will be fixed in future release.) o Some static variables in a CVS server may confuse you. It's a CVS bug. Report it to CVS developer :-). o Command line CVS client must request `Root' first. Don't mind. There is no implementation which violates this assumption, however I know. At least, CVS-1.10 and CVS-1.11 should work. NOTES
o When CVS command is failed, CVSconnect automatically re-run the command with reconnected connection when CVS command is failed. Especially the failure is caused by a long running CVS-1.10 server. Since CVS-1.10 doesn't close some file descriptors, a long running CVS server will exceed a limit of file descriptors. o /bin/sh should be POSIX sh because this script uses ${parameter#pattern}, etc. If your /bin/sh is ancient Bourne shell, use ksh or bash. SEE ALSO
cvs(1), cvssuck(1). AUTHOR
This manpage is written by Piotr Roszatycki <dexter@debian.org> for Debian distribution and can be freely redistributed. Debian 2011-08-30 CVSCONNECT(1)
All times are GMT -4. The time now is 03:45 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy