Acquire NIC Address

Bringing the internet highway into your project? Building FTP, HTTP, email, chat or other client solutions?

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
gpearson
Posts: 84
Joined: Wed Feb 03, 2010 12:55 pm

Acquire NIC Address

Post by gpearson » Wed Feb 17, 2010 8:59 pm

As I learn RR I am creating a project for a fantasy football league. The server component of this that will store all of the daily/weekly results, I am wanting the ability to grab the IP Address of the NIC on the computer and display it in a text field so that when the admin clicks a button the application would be able to listen for connections on that ip address and port number.

Does anyone have resources on how this can be done
---
Graham Pearson
Goshen, IN USA

We Are Closed Today is your single internet resource for Indiana Area School Closings, Visit http://www.weareclosedtoday.com

RRobert
Posts: 151
Joined: Sat Feb 28, 2009 8:20 pm

Re: Acquire NIC Address

Post by RRobert » Thu Feb 18, 2010 11:03 am

The simplest way is to use ifconfig on Mac OS X and Linux and ipconfig under Windows via the RunRev shell function.

Robert

Post Reply