Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more  

Go Back   Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more > Linux Operating System > Technical > Networks and Clusters
User Name
Password

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 09-05-2005, 02:13 PM   #1 (permalink)
goldfish
Junior Member
 
Join Date: Jul 2005
Posts: 27
Default Find IP address for my linux box on LAN

How do I find out the actual IP address for my linux box on an LAN?

tia
goldfish is offline   Reply With Quote
Sponsored Links
Old 09-06-2005, 05:33 PM   #2 (permalink)
taylor
Junior Member
 
Join Date: Aug 2005
Posts: 28
Default

Hi,

You can see the IP addresses of all your interfaces by doing :

/sbin/ifconfig

If you want to forward external requests to another machine on the lan then you can use nat. For example, using iptables for 2.4 series kernels :

echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A PREROUTING -i eth1 -p tcp --dport 80 -j DNAT --to 192.168.1.1

The above example would take all input arriving on interface eth1 (-i eth1) of protocol tcp (-p tcp) with a destination port of 80 (--dport 80) and re-direct it to IP address 192.168.1.1 . You can make it more or less specfic if you wish.

Hope this helps
taylor is offline   Reply With Quote
Old 09-11-2005, 11:27 AM   #3 (permalink)
beachcomber
Junior Member
 
Join Date: Sep 2005
Posts: 2
Default

Or you can also look in the eth0
Look for eth0 or eth1 if you have 2 and look in the files to see whats running
beachcomber is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Points Per Thread View: 1.00
Points Per Thread: 11.00
Points Per Reply: 5.00



» Sponsors

» Links

» Affiliates
Web Hosting
Marketing Find
Merchant Select
SiteMap Builder
Host Compare
Dedicated Servers

» Links

» Sports Network
Paintball Forum
Football Forum
Hockey Forum
Golf Forum
Boxing Forum
Lacrosse Forum
Baseball Forum
SnowBoarding Forum
Soccer Forum
MMA Forum


All times are GMT -4. The time now is 08:02 PM.



LinkBacks Enabled by vBSEO 3.0.0 RC8
Webmaster Forums