[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

How To Find TCP Info?

Posted on 1998-12-02
10
Medium Priority
?
276 Views
Last Modified: 2013-12-26
I need to get the following at runtime:

      This machine's IP address
      TCP subnet mask
      List of DNS servers
      Domain name
      Network gateway IP address

I know all of this exists in the TCP control panel, but am wondering the "standard" way to get it.  As a side note, I am using PP.  I don't know if PP has a class that gives direct access to this info?  In any event, I need either a PP solution or a non-PP one that I will code into my PP application.

Thanks
0
Comment
Question by:staggart
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 4
10 Comments
 
LVL 2

Expert Comment

by:roov
ID: 1291627
and for extra credit, how would you check if the modem has an open connection?
0
 

Author Comment

by:staggart
ID: 1291628
????
0
 
LVL 2

Expert Comment

by:roov
ID: 1291629
I meant, that while the question is answered, another very interesting aspect is how to detemine whether the network is available.
Simply trying to connect and failing is not good enough since MacTCP might try to connect using the modem, which might not be the desired behviour.
0
Moving data to the cloud? Find out if you’re ready

Before moving to the cloud, it is important to carefully define your db needs, plan for the migration & understand prod. environment. This wp explains how to define what you need from a cloud provider, plan for the migration & what putting a cloud solution into practice entails.

 

Author Comment

by:staggart
ID: 1291630
Go to:

http://developer.apple.com/technotes/tn/tn1119.html

It will answer your question.

0
 
LVL 2

Expert Comment

by:roov
ID: 1291631
Thanks.
Actually, it was <http://developer.apple.com/technotes/tn/tn1145.html> which seems to also have the answer to your questions - it says the following:
"...Network Setup library (introduced with Mac OS 8.5) to read the TCP/IP preferences..."

Go there , and may the force be with you...
0
 

Author Comment

by:staggart
ID: 1291632
Not acceptable - I can't rely on 8.5 being available to all my users.

Thanks anyway.

0
 

Author Comment

by:staggart
ID: 1291633
Actually, I have figured out how to get everything except the list of DNS servers.  This stuff seems to be buried somewhere.  I can get the primary DNS, but the secondary, et. al. never show up.
0
 
LVL 2

Expert Comment

by:roov
ID: 1291634
How early can you go? Is OS 8 reasonable? If so, the Network Services Library was available as "Subwoofer", and probably still is...
0
 
LVL 1

Accepted Solution

by:
The_Raven earned 400 total points
ID: 1291635
Is PP PowerPlant?

If so, CW Pro #4 has the classes you need to do this.  
0
 

Author Comment

by:staggart
ID: 1291636
This questions is over two months old!!!  If i had that much time to get answers to such questions, I would have a nice, slack job!  Unfortunatley, I don't, and I have already moved on to a different project (after figuring this out).

This just proves to me that the Mac really is dying - people don't even get around to reading, much less answering real-world questions.  At least not on ths forum.

Thanks, anyway.

0

Featured Post

Survive A High-Traffic Event with Percona

Your application or website rely on your database to deliver information about products and services to your customers. You can’t afford to have your database lose performance, lose availability or become unresponsive – even for just a few minutes.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Suggested Courses

649 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question