Inet Address and I.P address confusion

Hi,
I have an I.P address which I recieve from user input in four seperate variables each of type int. The reason I'm doing it this way is for increment purposes. Now the first initial IP address I want to ping to see if it's alive or dead. Then the program will increment the I.P address to check the next available IP address to see of that's alive or dead. Stupid University coursework Grrr :(.
What I was thinking (in theory anyway) is to convert all the digits from all four variables into the one I.P address and get that as an Inet Address object. From there I can use the object easier to Ping. Then I will clear that Inet Address object and increment variable four by 1 to create the next available IP address and then convert the new four variables into a Inet Address onject and ping that object and so on and so on.
Just wondering if in theory I'm on the right tracks or does this make no sense whatso ever? I'm still confused over it but kind of an idea. I'm sort of doing the projects as we learn the language and even though I read lots of tutorials on using Inet address I'm a bit stumped by this project. Any help really appreciate.
Thanks,
No longer a JavaNewbie but far from advanced!

>
Just wondering if in theory I'm on the right tracks or
does this make no sense whatso ever?Yes. Remember that it rolls on 255.
I would also strongly suggest that you get in writing that you are supposed to be creating a port scanner.
People have been fired from their jobs and others expelled from their university when they were given an assignment that the security staff at the institution considered to be a security problem. And their superiors refused to back up the assignment (possibly because the axe would have gone their way.)

Similar Messages

  • [SOLVED] rpc.nfsd: unable to resolve ANYADDR:nfs to inet address

    rpc.nfsd: unable to resolve ANYADDR:nfs to inet address: Name or service not known
    rpc.nfsd: unable to set any sockets for nfsd
    my server nfs show this with nfs-utils 1.2.1-2 but it works.
    But the message is still bothering me, I followed everything that's in the wiki for NFSv4 and I had to update this message...
    What's wrong?
    tnx
    Last edited by ugaciaka (2010-01-11 13:28:34)

    I have same problem and i'm using networkmanager (notebook, wifi). My DAEMONS section on rc.conf:
    DAEMONS=(... networkmanager alsa kdm cups bluetooth rpcbind nfs-common nfs-server netfs autofs ...)
    When i try automatically connect on boot, i have same problem (but network work now without X starts, after console login).
    When i try
    [stepan@stepan-nb ~]$ sudo /etc/rc.d/nfs-server restart
    :: Stopping rpc.mountd daemon [FAIL]
    :: Stopping rpc.nfsd daemon [DONE]
    :: Unexporting all directories [DONE]
    :: Mounting nfsd filesystem [DONE]
    :: Exporting all directories [DONE]
    :: Starting rpc.nfsd daemon [DONE]
    :: Starting rpc.mountd daemon [DONE]
    after boot and login, everything works, but on boot nfs-server init script fails to start.
    Last edited by Tapan (2010-01-06 19:22:25)

  • Why does firefox hang up and say it "got confused", when I try to switch from using facebook as myself to using facebook as a page I manage?

    firefox hangs up and says it "got confused", when I try to switch from using facebook as myself to using facebook as a page I manage.

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    * Don't make any changes on the Safe mode start window.
    * https://support.mozilla.com/kb/Safe+Mode
    If it does work in Safe-mode then disable all extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
    * Use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
    * Close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")
    In Firefox 4 you can use one of these to start in <u>[[Safe mode]]</u>:
    * Help > Restart with Add-ons Disabled
    * Hold down the Shift key while double clicking the Firefox desktop shortcut (Windows)
    * https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • I want to set up a separate cloud/itunes account for my husband.  Right now we share and it is causing confusion.

    I want to set up a separate cloud/itunes account for my husband.  Right now we share and it is causing confusion.We both have the iPhone4

    The way I set up my 3 iPhones is to create separate "iCloud" ID's for each user, but then use the SAME iTunes Apple ID for the iTunes store. You'll most likely lose your contacts, Calendars etc. unless you have them saved on a computer. You'll need to delete your current Account under iCloud, then create a new "iCloud" Apple ID ([email protected]) for at least one device if not both (one for yourself and one for your husband). Once you have those set up for your iCloud, then Goto Settings, Store, then change that ID to your old "iTunes" Apple ID, that way you can still both use your previously purchased Music/Apps etc.
    You can then change your computers to use the new iCloud ID's and it should upload the data back to the cloud. Just be warned that it might wipe out any saved Contacts/Calendars etc. if you don't have them on a computer as well.
    There is a Help article on how to do this as well, but i can't seem to find the link.

  • I recently buy an apple iphone 4s.the problem is that when i started music player on my iphone the speaker is not outputting the sound.and when i lock the phone at the same time the sound starts.thos problem is from last 3 days.and i am really confused???

    i recently buy an apple iphone 4s.the problem is that when i started music player on my iphone the speaker is not outputting the sound.and when i lock the phone at the same time the sound starts.thos problem is from last 3 days.and i am really confused???

    Basic troubleshooting from the User's Guide is reset, restart, restore (first from backup then as new).  Try each of these in order until the issue is resolved.
    If the issue continues, take the device to Apple for evaluation and possible replacement.

  • Mail address confusion between .mac and .me

    When I reply to a mail sent to my .mac address Mail automatically adds my .me account to the cc: box.   This is a pain as I send it to myself and others get 2 emails from me?
    Please hlep with a fix for this.

    I am having the same problems and really need a solution....

  • Modbus address confusion

    In my application i have to talk to a servomotor encoder drive with modbus protocol. I've used modbus protocol programming before where i'm aware of the addresses of holding reg, control regs of range 30000 and 40000.
    For this particular drive they've not mentioned anyparameter in terms of holding reg parameter or control reg parameter and also the addresses are like the following.
    address
    00xx H    -   Monitor parameters
    01xx H    -   basic parameters
    02xx H    -   Extension parameters
    03xx H    -   Communication parameters
    04xx H    -   Diagnosis parameters
    my confusion is how do I translate these addresses 4 digit hex number to a 5digit address in the range 30000 and 40000. The manual of the hardware does not say anything about this
    Thanks...
    Pallavi

    it seems very simple q to ask..... it turned out all the regs are holding regs and the corresponding addresses were the decimal equivalent.
    01xx H = 256 + decimal
    Thanks...
    Pallavi

  • 6to4 Addresses vs Regular IPv6 Addresses - Confusion

    Hi All, (Apologies if this question appears twice. Apparently I had an interface problem)
    I'm finishing up my studies on the IPv6 portion of the CCNA material, and my book seems to completly ignore the fact that 6to4 addresses seem to look different than how the rest of the chapter portrays IPv6 addressing. I've done google searches, and unfortunately I don't have anyone at work who is versed enough in this who will know, so I'm hoping someone can help.
    1. A normal IPv6 address:  2001:0db8:3c4d:0012:0000:0000:1234:56ab
       The same address in shorthand:  2001:db8:3c4d:12::1234:56ab
       A /64 of this space with autoconfiguration:  2001:db8:3c4d:12::/64 eui-64
       All of these addresses have, or will have 8 octets if written in long-hand, in other words - a valid IPv6 address.
    Here's my problem:  The addresses in the 6to4 section look like this:
       ipv6 address 2001:db8:2:2::1/64
    The book fails to mention what the "1" before the /64 is for, but I am assuming that it is an identifier and not part of the IPv6 address due to the " :: "   However, if this is the case, I only see 4 octets, and no eui-64 command, directing that the other 4 will be populated by the MAC padded.  And the "ipv6 address" syntax leads me to believe that this is a host address, and not a block/space statement (i.e. "ip address 192.168.0.1. 255.255.255.0," as opposed to "network 192.168.0.0 255.255.255.0)."
    If someone could shed some light on this, it would be most appreciated, as it is very confusing.

    Also, 6to4 IPv6 addresses have the IPv4 address of the 6to4 gateway embeded in them as well.  That is why they have a whole reseved block of 2002:/16.  Any gateway can algorithmically extract the IPv4 address for forwarding.
    2002:0b0c:0205:5/48 for example, would be correlated to IPv4 address 11.12.2.5 (which is the decimal of the IPv4 address 0b0c:2025 shown in hex)
    Earl Carter wrote a nice blog article on the general topic of IPv6 addresses at http://blogs.cisco.com/security/ipv6-addressing/
    And the commonutiy has settled on calling the 16-bit numbers between the colons "hextets."  In IPv4, each 8-bit portion between dotrs is called an "octet."  The truly pedantic will object taht a hextet should be 6 dits, bit "hextet" is easier to say than "hexadecitet." :-)
    Anotehr trivia point:  The letters in an IPv6 address should awalys be lower case.
    More arcana can be found at http://tools.ietf.org/html/draft-hartmann-6man-addresspartnaming-01, which is on track to become an RFC.

  • En1 IP address confusion

    Hi, I'm relatively new to the world of Airport, and having done some configuring of my network today, there's some confusion about the IP address of my Airport (en1) card:
    Terminal > ipconfig getifaddr en1 : 169.254.61.91
    IP Widget : 10.0.2.1
    Network Utility App: 10.0.2.1
    NetStat Widget oddly reports:
    IP: 10.0.2.1",
    "169.254.61.91
    Does anyone know why both those IPs are associated with en1? What have I done? (this relates to my internal Airport card)
    Thanks,
    Rich

    The problem I have only involves Airport (en1).
    What is the problem? Is it just that the numbers are strange? or is it that you have connection problems?
    I checked all of these numbers on my iBook connected wirelessly. I am using a standard 802.11g router for the connection. In my case, the same local IP address was displayed in Network Preferences, Network Utility, Terminal, and NetStat. My correct public IP address is also shown by NetStat.
    I asked earlier if you were using a computer to share the network from Ethernet to wireless. If you are, I'm guessing that your findings are somehow related to that.
    Doesn't 169.x.x.x mean something isn't configured properly?
    Yes it means that there was an error communicating with the DHCP server.
    2. Am I better off configuring Airport's TCP/IP manually?
    No
    3. What is the difference between en1's local and public IP addresses?
    The local IP address is the address assigned to it by the wireless base station.
    The public IP address is the one assigned by your ISP to your connection and is used by the router.

  • Mac Mail address confusion

    I have two accounts in Mac mail, let's call them Amail and Zmail. And only one SMTP outgoing mail server, namely, my ISP's server (which is different from the mail servers for both those two acounts).
    From account Zmail I send a message and copy me in on it. Apprently the From on it gets changed from my Zmail address that was on the outgoing message to my AMail address. At least that's what I see on the copy sent to me, and because of the change my message is being rejected by a recipient who requires e-mail address registration, where I'm registered with my Zmail address.
    What Preference or other setting will fix this?

    Csound1 wrote:
    2 smtp servers, each with the correct credentials for 1 account.
    So it simply won't do to send outgoing messages through the same smtp server? I thought I could do that when I was still using Thunderbird as my e-mail client under OS X rather than Mac Mail.

  • HT201342 email address confusion

    I'm using a me.com address in addition to gmail (and rarely used Hotmail and aol)
    Why on earth would I now need an @icloud address, giving me TWO Apple addresses?

    There is no advantage.
    Apple renamed their service from MobileMe to iCloud, so it is logical to change the email address to match.
    You can ignore the new address if it is not required, your previous @me email will continue to function.

  • ICloud email address confusion!

    OK…here goes. I'll try my best to explain my situation. First, I just started (trying) to use iCloud when I got my new MacBook Air a few days ago. (I'm not new to Apple, just a new computer.) I've been using Reminders app on my iPod Touch 5, but had iCloud turned off and Reminders worked perfectly, meaning it alerts me to things I need to be reminded of.
    So I get this new MBA and decide to use iCloud to sync between the two. When I turned iCloud on it asked for Apple ID. I entered the same Apple ID/Password I've been using for years. It said it was "Invalid". I try again and again with the same entries. No joy. (However, I'm still able to access this forum, the App Store, and the Mac App Store using that old ID/Password.)
    I finally gave in and just turned on iCloud using the ID it "suggested" which had an iCloud.com suffix. However, when I go into "Account Details" on iCloud my actual Apple ID shows up (the one it just said was invalid) with my actual "gmail.com" suffix!!! Great! Now iCloud works on my MBA, but nothing syncs to my iPod Touch. I tried deleting the account as suggested on this forum. Didn't help. I tried a hard reset. Didn't help. So, I manually entered the same entries into my iPod Touch that I have on my MBA. Now…they are gone! Reminders on my MBA and at iCloud.com are a match, but nothing else is syncing. I've checked the boxes for Mail, Calenders & Reminders, Notes, and Documents. Only Reminders matches up with iCloud.com.
    I've got a theory it has something to do with the email addresses not matching up. I don't want to change my Apple iD as I don't want to lose the "history". My Apple ID on my iPod Touch has an "@me.com" suffix.
    I still have the free 5 GB of storage available. I'm considering just turning off iCloud on my iPod Touch again and using Reminders as a stand alone app and not worring about syncing. But, I'd still like for the other apps besides Reminders to work on my MBA. My understanding is iCloud is "beta". Should I just wait and see if Apple get's iCloud perfected? Or am I missing something obvious?

    Thank you, Mr. Churchhill!
    Once I found the "Manage My Accounts" page I saw that I had a 2nd Apple ID that I didn't really know about. The key was that I needed to add this account, which was [email protected], to my Apple "Mail" app. I then deleted my iCloud account on my iPod Touch then created a new one using the [email protected] address as my "Account" name and Apple ID for iCloud. iCloud immediately populated my Reminders, Notes, Contacts, etc.. Everything is properly synced and I'm a happy camper.
    This is the 2nd problem solved today on these forums. I'm so thankful you are all here and willing to share brain cells.

  • Lesson 2-4: address confusion

    On the slide at around 7:45 there is graph and part of it is labeled "Address" and refereed to as a "registry" or "what we want to read from the device". Isn't this a I2c device's address?

    Yes - the first part of the protocol is the I2C device address.
    The address is written to the bus with the desired action bit (Read/Write). Angela means to say that we are using this address to write a command to a register on the BMP device.  The command starts the temperature and pressure process. After a delay, you can then read an uncompensated temperature value from the device.  So I think she is getting ahead of herself and will describe this more in lesson 2-6.
    Tom

  • My Ical is all screwed up now that I've upgraded my Mac Desktop.  There are no borders with the days of the week and it's all running into each other.  Help Pleeease!!  I have a busy schedule and this is so confusing. How do I get my old Ical back?

    I'm trying to figure out how to change my ICal back to the way it was before I upgrated my Desktop Mac computer.  I used to have a perfect calendar and since I upgraded, there are no side borders to the days when I'm on the "month" view.  It all looks like it is one big day running into eachother.  I hope it's an easy fix. If anyone knows what I'm trying to explain, please help me!!

    Configure the Extreme connected to the Hughes Net modem as your router. In other words in AirPort Utility, Network tab > Router Mode should be set to "DHCP and NAT". It will provide IP addresses to all the devices on your network.
    All other AirPort devices on your network should be configured as bridges: Router Mode "Off".
    You may want to configure static IP addresses for any equipment that is likely to be permanently installed. For them, there is no reason to have the Extreme issue an IP address, and they can keep the same one forever.
    The Microcell may be able to connect to the Express's LAN port such devices that have to handle voice or other real time audio or video streaming are generally best installed using a strictly wired connection. The same applies to the Sony TV and AppleTV. Keep them on a wired LAN served by the Extreme, avoiding any reliance on a wireless link if at all possible.
    The way to implement a complex network like yours is to add one device at a time. Ensure it connects reliably, then add another. You have a lot of work to do.
    WDS can be implemented even with new Extremes but its performance is likely to be so unacceptable that it would be nothing more than an exercise in frustration for you.

  • I can't remember my secret questions answer and I am so confused I tried all the ways but it's not Woking can anyone please help to find out how

    I really appreciate your help, it's really urgent need?

    The Three Best Alternatives for Security Questions and Rescue Mail
        1. Use Apple's Express Lane.
              Go to https://expresslane.apple.com ; click 'See all products and services' at the
              bottom of the page. In the next page click 'More Products and Services, then
              'Apple ID'. In the next page select 'Other Apple ID Topics' then 'Forgotten Apple
              ID security questions' and click 'Continue'. Please be patient waiting for the return
              phone call. It will come in time depending on how heavily the servers are being hit.
         2.  Call Apple Support in your country: Customer Service: Contacting Apple for support or
              Apple ID- Contacting Apple for help with Apple ID account security. Ask to speak to
              Account Security.
         3.  Rescue email address and how to reset Apple ID security questions.
    How to Manage your Apple ID: Manage My Apple ID

Maybe you are looking for