Help - InetAddress.getHostName() returns the ip address

Hi,
After updating two windows XP computers witht the latest windows updates the InetAddress.getHostName() stoped returning the remote computers name and instead returns the ip address. This is how it worked :
rx = a custom DataPacket class
public InetAddress from;
System.out.println("From: "+ (rx.from.getHostName() + "/" + rx.from.getHostAddress()) + " " + receivedMessage + "\r\n");
printed - From: AUTOTEST1/192.1.3.60 test message
now it prints this - From: 192.1.3.223/192.1.3.223 test message
Is there an alternate way of getting a computers host name or is there a work around i could implement?
I need the computers host names as this is a fault logging program and without the computer name the users will not know who they are sending the mesage to as it displays ip addresses and not the computer name
Thanks,
sjs1985

getCanonicalHostName() still returns the ip address instead of the host name, thanx 4 trying to help me.
It seems like it is not possible to receive the host name on a fully updated Windows XP computer using the InetAddress class anymore.
I will have to do it the long way and send a message containing the computer name on start up which would then be added to a list of computernames/ip addresses

Similar Messages

  • Import/Export pdf help - about to return the program :(

    I bought the program because I was told I can import a pdf and export it as a pdf/x-2002. I have read through threads and troubleshooting tutorials and I have not seen anything on how to do this. Please help! I'm about to return the program.

    You can place PDFs into InDesign, and InDesign can export PDF/X3-2002, but if converting the format (without any editing) is your only goal, you may want Acrobat Pro instead. If you do need to edit the files, you should get the native files; PDF is meant as an end product, not a working file.

  • Help me to return the primary key after insert the row

    Hi
    I am using JDBC, with oracle database. i have welformed normalization tables .i am inserting parent table with dynamic sequence number as primary key .after inserting i need inserted row primary key .how to get the inserted row primary key with out using select statement
    please help me
    Thanks in advance
    Edited by: 849614 on Apr 4, 2011 5:41 AM
    Edited by: 849614 on Apr 4, 2011 5:54 AM

    Hello
    If I undestand you, I think you should do this:
    Connection conexion = dataSource.getConnection();
    int idCenter=-1;
    String query = "Begin Insert into CENTER (NAME_CENTER) values (?) returning ID_CENTER into ?; end";
    callableStatement = conexion.prepareCall(query.toString());     
         callableStatement.setString(1, "Center name");               
         callableStatement.registerOutParameter(2, java.sql.Types.INTEGER);
              callableStatement.executeUpdate();
              idCenter=callableStatement.getInt(2);
    This way, you have in idCenter the primary key of the line that has just been inserted.
    Edited by: cris on 05-abr-2011 5:28

  • InetAddress.getHostName under Linux

    Hello,
    anyone here know why InetAddress.getHostName sometimes returns <Computer-Name> only and sometimes <Computer-Name>.<Domain-Name>? I just migrated a java project to linux, and on my computer InetAddress.getHostName returns <Computer-Name>.<Domain-Name>. A colleague of mine is already running under Linux and he gets <Computer-Name>. We both have the same Domain-Name, and we have compared network settings and haven't found any differences.
    I have tried to google, but I haven't found anything. Any know the reason for this behaviour?

    After juggling around a bit with the network settings, turning IPv6 on and off, switching between static IP and DHCP (computer-name and domain name remained untouched), the InetAddress.getHostName suddenly returned <computer-name> only. I tried to retrace my configuration changes, and tested InetAddress.getHostName and it only returned <computer-name> without the <domain-name> extension. Did I miss something? Do anyone know when InetAddress.getHostName returns <computer-name> and when it returns <computer-name>.<domain-name>?

  • Obtaining the IP Address of a NIC

    Hi,
    I want to communicate to an Ether I/O 24 device over UDP.  I am using a DHCP server to automatically give me an IP address for it.  How can I get the IP address of this device in LabVIEW 8.6?  I have done some searching and I can't seem to find exaclty what I want.  The VB .exe that came with the device has a function called scan for modules and it returns the IP address with the MAC address.  The PC I am using has two NICs and the module is on subnet 255.255.0.0
    Any help appreciated.

    This is usually done by proprietary UDP broadcasts to the devices which recognize the specific packet format and answer with a packet that specifies their own IP address and other information. There is no generic way to find out the IP address of a network device.
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • I am trying to change the email address associated with my existing account to free up my university email address for use in obtaining Creative Cloud.

    I am trying to change the email address associated with my existing account to free up my university email address for use in obtaining Creative Cloud.  Every time I go to the account settings of my existing account (which currently uses my university email, as I set it up years ago and had no idea it'd eventually cause problems), I enter a different email to use for that account but I continuously receive an error message saying "account changes cannot be saved."  It makes me think that it's because the email isn't verified (funny, it actually is verified since it has been the alternate email on the old account for years), but when I click the "send verification email" nothing happens (that is, no email is sent to that other email address).
    Anyway, my university is now requiring that faculty create new accounts using our university email addresses in order to register/use Creative Cloud.  Am I able to delete my old account, or can anyone help me actually change the email address associated with my old account without getting a "changes can't be saved" error?

    This is an open forum, not Adobe support... you need Adobe support to help
    Adobe contact information - http://helpx.adobe.com/contact.html
    -Select your product and what you need help with
    -Click on the blue box "Still need help? Contact us"
    or
    Make sure that EVERY DETAIL is the same in every place you enter your information
    -right down to how you spell and punctuate the parts of your name and address
    Change/Verify Account https://forums.adobe.com/thread/1465499 may help
    -Credit card https://helpx.adobe.com/utilities/credit-card.html
    -email address https://forums.adobe.com/thread/1446019
    -http://helpx.adobe.com/x-productkb/global/didn-t-receive-expected-email.html

  • How can I programmatically get the Bluetooth address of an iPhone

    I want to  determine the Bluetooth MAC address for an iPhone or iPad from within an app on said device. But I didn't find any API that will return the Bluetooth Address or name .

    You can use the VI name to refer to a vi in memory. (note that all VIs in
    memory must have a unique name, thus LV can make a reference needing only
    the name.)
    To refer to a vi not in memory, LV needs a full path. The open VI reference
    is polymorphic, it accepts strings and paths (as you already noticed).
    "MattI" wrote in message
    news:[email protected]..
    > This is awesome!
    > Looking at the diagram, I am somewhat surprised that Open VI Reference
    > works using just the VI names returned by Property
    > Node:Application:All VIs In Memory when they are wired to the path
    > input to Open VI Reference, but I guess it uses the (relative)
    > built-in path info that we users can't see to look up t
    he VI which is
    > in memory, and then returns the full path.

  • I have lost the URL box on the top of the page and I can't seem to get it back -- I don't want to reset everything -- only return the URL box on the top -- how can I do that?

    I am not sure what to add -- how can I return the URL address box on the top of the page ... along with the buttons to go to the previous page has disappeared and I can't make them come back ...

    Make sure that toolbars like the "Navigation Toolbar" and the "Bookmarks Toolbar" are visible: "View > Toolbars"
    * If items are missing then open the Customize window via "View > Toolbars > Customize" or via "Firefox > Options > Toolbar Layout"
    * If a missing item is in the toolbar palette then drag it back from the Customize window on the toolbar
    * If you do not see an item on a toolbar and in the toolbar palette then click the "Restore Default Set" button to restore the default toolbar set up.

  • Setting the From Address for Reply in Mail

    I am having trouble setting the default “From” address for replies in Mail. When I click on “Reply” the new window opens with a default mail address I do not wish to use. This can be changes by going into the drop down box and setting a different one. This is time consuming and it is easy to send from an inappropriate address.
    “Help” menu says that the default address ( top one in the drop down box) can be changed and gives these instructions:
    Set the From address
    Your messages are sent from the account of the currently selected mailbox. If you have multiple email accounts, you can specify a different account to use for sending all messages, or select an account just for the message you’re writing.
    To specify the account to use for sending all messages, choose Mail > Preferences, click Composing, and then choose an account from the “Send new messages from” pop-up menu.
    To specify an account just for the message you’re writing, click the From pop-up menu, and then choose an email address.&#8232;To change the order in which addresses are listed in the pop-up menu, reorder the addresses in the “Email address” field in the Account Information pane of Mail account preferences.
    When I open the Mail Account Preferences and go to Account Information there is no list of addresses in the “Email address” just the one for the particular account highlighted in the left column eg. “[email protected]” or “[email protected]” .
    I tried to move the order of the accounts in the left hand box but nothing wants to move. Clicking and holding to push one account over another seems not to work.
    Anyone got any ideas on how to fix this?
    NB: This is about "Reply". Default for "New Message" is setting fine.

    i found out how to do this finally!
    1) set up google gmail account to forward your emails to (from the [email protected])
    2) go to your gmail account
    3) go to settings (cog in right hand corner)
    4) go to 'accounts and import'
    5) go to 'send mail as'
    6) click 'Add another email address you own' - add your [email protected] address
    7) google will send a verification email with code to that email address.
    8) enter code
    9) go back to gmail account  >'send mail as' and select 'make default'
    10) close mac 'mail' program and reopen it.
    as long as you have gmail account selected as the primary account in MAIL - mail will now come throught as being sent from that  [email protected] address!!

  • E-mail error:  Cannot Send Mail:  The sender address was invalid

    I can receive e-mail but cannot send it. Everything goes to my outbox. I did not change any settings. Nothing has changed that I know of. For months I could send e-mail -- now I cannot. I even e-mailed myself, and it says the sender address is invalid. Can anyone help? Thanks!

    The "Recipient addresses are invalid" message is misleading.
    Most ISP's don't allow you to send email through their SMTP server unless you are A) on their network (e.g. connected via wi-fi to a cable connection provided by your ISP) or B) you authenticate to their SMTP server.
    On Blueyonder here in the UK (my ISP), you can send via their SMTP server from the iPhone over 3G as long as you authenticate to it. I setup my Mac mail to authenticate on outbound email sent via smtp.blueyonder.co.uk and it works fine. I then synced the mail settings to my iPhone and it works fine (although a little slow to send).
    Alternatively your cellular provider usually runs their own SMTP server to which you will also have to authenticate, and you can send through it. For the iPhone in the UK O2 are the exclusive provider, and they have the smtp.02.co.uk gateway.

  • How to get InetAddress.getHostName() to skip non valid ips.

    im trying to build a network mapper that will scan all ip addresses up to 192.168.0.256 indexing the last 3 digits from 0 to 257. It takes less than a second to grab the host name of ip addresses that are alive, but for the rest that are down, it takes 10-20 seconds before returning the ip addresses. How can I send a packet to see if the host is up before asking for the hostName. I tried creating a socket to connect to various ports but even that takes 10-20 seconds for downed hosts. Thanks in advance.

    You want to do it fast?
    You can't, that isn't how sockets work. Sometimes it takes minutes to connect.
    If you are scanning local addresses and it takes that long, then something is wrong with your intranet and you need to talk to your sys admin.
    If you are scanning internet addresses then that is how long they take (assuming that something is not wrong with your internal network.)
    You can use a tentative approval process and threads to allow some processing to proceed. That, of course, depends on what you are doing.

  • Migrating to "The Cloud" - "The SMTP address has no mailbox associated with it."

    We have a front office app that can receive data from Exchange via EWS Push Notifications.  Last week, they moved my mailbox to "The Cloud". Now my mail resources all have "office365.com" in their paths. I'm a very early
    adopter, trying to understand how to extend the app to work with this architecture before they move everyone else over.
    In the past our app was an EWS 1.1 system talking to Exchange 2007 SP1 servers.  That's the ExchangeVersion I've always had set in EWS. Nobody has ever talked to me about upgrading any of our Exchange boxes.  Impersonation was
    not supported in 2007, so we've been using a dedicated service account with full access to specified mailboxes. At the moment, I'd be happy if I could just connect to my own mailbox with my own credentials.
    Our old system has 4 CAS servers. You can reach a mailbox through any of them.  For the new mailboxes, we've added two new CAS servers. I'm told these particular servers are Exchange 2010 SP3.  I'm also told the cloud mailboxes are in an Exchange
    2013 environment.
    I've upgraded my EWS library to 2.2. I've tried ExchangeVersion values for 2007 and 2010 SP2 (there is no value for SP3). I'm not using autodiscover; I just put the name of one of the new CAS servers into the code for now.
    My SMTP address is [email protected]. Our internal domain is usa.bigcompany.net, and I commonly login to resources (including my workstation) as USA\smith_j. I was using that ID
    for Exchange, but since my mailbox got moved I now login to my mailbox as
    [email protected].  We were previously building credentials for EWS with username (smith_j), domain (USA) and password.  Because of the changes, it seems that the right username to pass should
    now be [email protected], along with just the password.
    The problem is that no matter what I send, the server returns "The SMTP address has no mailbox associated with it."  I've tried a lot of permutations, and for hours that's all I've gotten.  Trying to reduce this to the most basic level,
    what should I be doing in order to reach my own mailbox in office365.com, using my own account?  Is there any trick to this?
    BTW, if Microsoft is using Exchange 2013 and my CAS server is 2010 SP3 which ExchangeVersion should I be using to do this?

    This is very good. Using the office365.com URL, I have been able to create a subscription.  Of course, the office365.com server will not be able to make callbacks through our firewall, but it does clearly show that our CAS server is not getting
    the job done.  This is progress!
    I asked, and was told we're using Exchange 2010 SP 3 on the CAS because we already had licenses for that.
    So I'm back to the question of whether this can be done by an on-premises CAS (or a cluster of them), or if we must go through Microsoft's servers to reach the mailboxes.
    And again, thank you!

  • HT201407 hi..I cant activate my Iphone 5. I bought this from someone who cant remember her apple password and even the email address that she used to set up the account.What am I gonna do now....How can I activate my Iphone. what are my options...pls help

    hi..I cant activate my Iphone 5. I bought this from someone who cant remember her apple password and even the email address that she used to set up the account.What am I gonna do now....How can I activate my Iphone. what are my options...pls help me.thank you

    Activation Lock in iOS 7  >  http://support.apple.com/kb/HT5818
    hannibalfromlemery wrote:
    .I cant activate my Iphone 5. I bought this from someone
    The Apple ID and Password that was Originally used to Activate the iDevice is required.
    If you cannot get this information from the seller
    Removing a device from a previous owner’s account
    You need to return the Device for a refund, as you will not be able to re-activate it.

  • Do I need to return the old router from Verizon after I transferred to a new address?

    Hello,
    I was trying to return the old router that I had from my previous address. (They gave me a new one when I moved to the new house)
    But I didn't receive the return label. Where can I obtain it, and what address do I need to send it to?
    I tried calling the return department but I was on hold forever.
    I googled and see some people said that they won't want it back, but some people said they do.
    Please help..
    Thanks,
    Sylvia

    fat10000y wrote:
    Hello,
    I was trying to return the old router that I had from my previous address. (They gave me a new one when I moved to the new house)
    But I didn't receive the return label. Where can I obtain it, and what address do I need to send it to?
    I tried calling the return department but I was on hold forever.
    I googled and see some people said that they won't want it back, but some people said they do.
    Please help..
    Thanks,
    Sylvia
    As already said it depends on the model that you have. If you have an Actiontec they will proabably want it back, but if its an old Westell they won't.

  • Printing #10 Envelope - Return Address "off the page" & Address Very High

    I'm having trouble printing a #10 envelope.
    I have an Okidata B410d printer that Pages seems to subtitle a "Generic PCL Laser Printer."
    I went -- File / Open From Template Chooser / Word Processing / Envelopes / Classic Envelope
    I fill in the fields and the page attributes shows my printer, #10 Envelope and a landscape orientation.
    But when I feed through the bypass tray -- following the little icons telling me face down, flap left, ... -- the result prints the address two lines from the top of the paper and no sign of the return address field (if it existed it would be an inch off the paper to the top if you follow.
    So I figure there might be some way to change the setup / margins / headers / ...
    I managed to get something sorta acceptable by changing the default header from 0.95 cm to 4.2 cm -- it wouldn't let me go any more. The result had the return field hugging the top of the paper and the main address starting maybe 1 1/2" from the top. the envelope looks funny by I had to get something in the mail today.
    Now I'd like to make this right.
    Any advice?
    Thanks

    Who knows what I've done but after much trial and error (and more than a few of those pages cut to match a #10 envelope I seem to have something I can work with.
    I guess, as you said, there is some funny business between my printer and Pages.
    I'll detail the steps as much so I can retrieve if necessary. What I did:
    * Found a template that used a floating text box for the return rather than a header.
    * Changed the page size from the #10 default of 24.13 cm wide x 10.48 cm high to 24.13 cm wide x 24.0 cm high to "fool" it to working.
    * Left side margins unchanged
    * Set top margin to 11.5 cm and bottom to 0.0 cm
    * Dragged the return address floating text box so it is centred top to bottom on the envelope (a look I like)
    * Finished output has return address flush left, centred top to bottom and the address filed aligned with top line of address and return address fileds the same.
    * Saved as a template in my templates.
    * Tested that I could retrieve the template, type in info and print okay.
    Like I said ... it ain't elegant but now I can print out a proper looking #10 through the bypass feed of my Oki printer.
    Thanks for your help.

Maybe you are looking for

  • File Save Error on Checkout

    Has anyone else received an error message which says "File Save Error" when attempting to check out a document in the Solution Manager blueprint document store?  We have a document which can be opened in display or change mode, and exported, but when

  • GoLive on MacBook Pro

    I have been running GoLive on my Powerbooks since v.4.0 with no problems. Now I have an Intel Macbook Pro and updated the OS to Leopard and GoLive remains dormant when launched i.e. the icon appears in the Dock and jumps around for a while then nothi

  • Information Broadcasting - scheduling BI reports

    Hi I have a requirement for information broadcasting for few reports generated on different infoproviders. The reports should be scheduled only on weekdays i.e., Monday to Friday and no users should have the authority either to view or modify the bro

  • Error searching number of items in folders

    Trying to find empty folders, but even looking for less than 2 still give results with more! Need a fix!

  • BEx Web Application Designer (WAD) not loading all web items

    Hello, I have a rather complex web template with about 20 charts, and 40 drop down boxes and it works great. The issue I have is when I am in development I usually have to open & close the template about 10-15 times untill all of my web items appear