How to retrieve available (server)-IP addresses on a LAN

Is there a method to get all/the available (server)-IP-address(es) on a LAN from the host program?
As far as I understood the samples (e.g. in tcpex.llb) the host (or it's operator) has to know the IP-address of the server to start communication. However it would ease the usage of a host-program if all/the available server(s) could be selected e.g. from a list-box.
I posted this question already yesterday with some additional explanations however couldn't find it in my "posted questions"-list. So I try again.

You don't tell us enought about the type of "servers" you mean. Are these all LabVIEW programs? In this case it should be relatively easy for them to keep each other updated at regular interval, e.g. via UDP multicasts.
Alternatively, your servers can announce themselves via a UDP packet to the subnet broadcast address and to a specific port.
If these are servers with code not under your control, you need to probe them. This is not such a big deal on your private LAN and I don't think it will trigger IDS systems. Keep a short list of all possible server IPs, then try to connect at the specified port at regular intervals using a short timeout.
Are you communicating with TCP or UDP?
In the absence of firewall code, you can have 3 possible responses for TCP:
(1) No response --> The server computer is down (or there is a stealth personal firewall running). You get a TCP timeout error.
(2) Active rejections (TCP RST packet) --> The server computer is up, but the server program is not running. Nothing is listening on the target port. You'll get an error.
(3) Accepted connection (SYN-ACK) packet. --> The server is up and listening for connections. The threeway handshake can be completed. No error.
UDP is a bit trickier, because it is connectionless. Many UDP services are one-way. For example a syslog server just receives packets, it never acknowledges anything.
It is easy to tell if the server computer is up, but the service is not listening. In this case you get an ICMP(3,3) response and an immediate error.
If the service is listening, you either get nothing or a specific response, depending on the type of server. If you are waiting for return traffic, you'll get a timeout error in UDP read either way.
(If you just want to check if the server computer is actually up, probe it on a unlikely high port that virtually guarantees an ICMP(3,3) response in the absence of a personal firewall program.)
LabVIEW Champion . Do more with less code and in less time .

Similar Messages

  • How to retrieve the server IP address

    Hi Experts,
    In my scenario, if some problem occur, then the XSLT mapping sends a mail to some one,subject is 'PRD', if we execute this from production or quality or development server.
    But now i want to know this mail from which server, so i want to change the subject line as 'PRD' if it is only from production system otherwise 'OTH', how to achieve this ? No hard code allow at any where.
    I have one thought, if we find the server ip address then we can recognize, but how to get the server IP address ? Is it possible ?
    Thanks
    Ramesh

    Hi,
    My source is some WSDL file, this is more than 15000 characters so i am unable to send the full file.
    <wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
         <wsdl:types>
              <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
                   <xsd:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="http://www.w3.org/2001/xml.xsd" />
                   <xsd:element name="Pip3A4PurchaseOrderRequest" type="Pip3A4PurchaseOrderRequest" />
                   <xsd:complexType name="Pip3A4PurchaseOrderRequest">
                        <xsd:sequence>
                             <xsd:element name="fromRole" type="fromRole" />
                             <xsd:element name="GlobalDocumentFunctionCode" type="xsd:string" />
                             <xsd:element name="PurchaseOrder" type="PurchaseOrder" />
                             <xsd:element name="thisDocumentGenerationDateTime" type="thisDocumentGenerationDateTime" />
                             <xsd:element name="thisDocumentIdentifier" type="thisDocumentIdentifier" />
                             <xsd:element name="toRole" type="toRole" />
                        </xsd:sequence>
                   </xsd:complexType>
                   <xsd:complexType name="fromRole">
                        <xsd:sequence>
                             <xsd:element name="PartnerRoleDescription" type="PartnerRoleDescription" />
                        </xsd:sequence>
                   </xsd:complexType>
                   <xsd:complexType name="PartnerRoleDescription">
                        <xsd:sequence>
                             <xsd:element name="ContactInformation" type="ContactInformation" minOccurs="0" />
                             <xsd:element name="GlobalPartnerRoleClassificationCode" type="xsd:string" />
                             <xsd:element name="PartnerDescription" type="PartnerDescription" />
                        </xsd:sequence>
                   </xsd:complexType>
                   <xsd:complexType name="ContactInformation">
                        <xsd:sequence>
                             <xsd:element name="contactName" type="contactName" minOccurs="0" />
                             <xsd:element name="EmailAddress" type="xsd:string" minOccurs="0" />
                             <xsd:element name="facsimileNumber" type="facsimileNumber" minOccurs="0" />
                             <xsd:element name="telephoneNumber" type="telephoneNumber" minOccurs="0" />
                             <xsd:element name="PhysicalAddress" type="PhysicalAddress" minOccurs="0" />
                        </xsd:sequence>
                   </xsd:complexType>
                   <xsd:complexType name="contactName">
                        <xsd:sequence>
                             <xsd:element name="FreeFormText" type="FreeFormText" />
                        </xsd:sequence>
                   </xsd:complexType>
                   <xsd:complexType name="FreeFormText">
                        <xsd:simpleContent>
                             <xsd:extension base="xsd:string">
                                  <xsd:attribute ref="xml:lang" />
                             </xsd:extension>
                        </xsd:simpleContent>
                   </xsd:complexType>
                   <xsd:complexType name="facsimileNumber">
                        <xsd:sequence>
                             <xsd:element name="CommunicationsNumber" type="xsd:string" />
                        </xsd:sequence>
                   </xsd:complexType>
                   <xsd:complexType name="telephoneNumber">
                        <xsd:sequence>
                             <xsd:element name="CommunicationsNumber" type="xsd:string" />
                        </xsd:sequence>
                   </xsd:complexType>
                   <xsd:complexType name="PartnerDescription">
                        <xsd:sequence>
                             <xsd:element name="BusinessDescription" type="BusinessDescription" />
                             <xsd:element name="GlobalPartnerClassificationCode" type="xsd:string" minOccurs="0" />
                             <xsd:element name="PhysicalAddress" type="PhysicalAddress" minOccurs="0" />
                             <xsd:element name="ContactInformation" type="ContactInformation" minOccurs="0" />
                        </xsd:sequence>
                   </xsd:complexType>
                   <xsd:complexType name="BusinessDescription">
                        <xsd:sequence>
                             <xsd:element name="GlobalBusinessIdentifier" type="xsd:string" minOccurs="0" />
                             <xsd:element name="GlobalSupplyChainCode" type="xsd:string" minOccurs="0" />
                             <xsd:element name="businessName" type="businessName" minOccurs="0" />
                             <xsd:element name="NationalBusinessTaxIdentifier" type="NationalBusinessTaxIdentifier" minOccurs="0" />
                        </xsd:sequence>
                   </xsd:complexType>
                   <xsd:complexType name="PurchaseOrder">
                        <xsd:sequence>
                             <xsd:element name="AccountDescription" type="AccountDescription" minOccurs="0" />
                             <xsd:element name="comments" type="comments" minOccurs="0" />
                             <xsd:element name="ContractInformation" type="ContractInformation" minOccurs="0" maxOccurs="unbounded" />
                             <xsd:element name="DocumentReference" type="DocumentReference" minOccurs="0" maxOccurs="unbounded" />
                             <xsd:element name="FinancingTerms" type="FinancingTerms" minOccurs="0" maxOccurs="unbounded" />
                             <xsd:element name="generalServicesAdministrationNumber" type="generalServicesAdministrationNumber" minOccurs="0" />
                             <xsd:element name="GlobalGovernmentPriorityRatingCode" type="xsd:string" minOccurs="0" />
                             <xsd:element name="GlobalPurchaseOrderFillPriorityCode" type="xsd:string" minOccurs="0" />
                             <xsd:element name="GlobalPurchaseOrderTypeCode" type="xsd:string" maxOccurs="unbounded" />
                             <xsd:element name="governmentContractIdentifier" type="governmentContractIdentifier" minOccurs="0" />
                             <xsd:element name="installAt" type="installAt" minOccurs="0" />
                             <xsd:element name="isDropShip" type="isDropShip" />
                             <xsd:element name="OrderShippingInformation" type="OrderShippingInformation" minOccurs="0" />
                             <xsd:element name="ProductLineItem" type="ProductLineItem" maxOccurs="unbounded" />
                             <xsd:element name="proprietaryInformation" type="proprietaryInformation" minOccurs="0" />
                             <xsd:element name="requestedEvent" type="requestedEvent" minOccurs="0" />
                             <xsd:element name="requestedShipFrom" type="requestedShipFrom" minOccurs="0" maxOccurs="unbounded" />
                             <xsd:element name="SecondaryBuyer" type="SecondaryBuyer" minOccurs="0" />
                             <xsd:element name="shipTo" type="shipTo" minOccurs="0" />
                             <xsd:element name="TaxExemptStatus" type="TaxExemptStatus" minOccurs="0" />
                             <xsd:element name="totalAmount" type="totalAmount" minOccurs="0" />
                        </xsd:sequence>
                   </xsd:complexType>
                   <xsd:complexType name="AccountDescription">
                        <xsd:sequence>
                             <xsd:element name="accountName" type="accountName" />
                             <xsd:element name="AccountNumber" type="xsd:string" minOccurs="0" />
                             <xsd:element name="billTo" type="billTo" minOccurs="0" />
                             <xsd:element name="CreditCard" type="CreditCard" minOccurs="0" />
                             <xsd:element name="financedBy" type="financedBy" minOccurs="0" />
                             <xsd:element name="GlobalAccountClassificationCode" type="xsd:string" minOccurs="0" />
                             <xsd:element name="prePaymentCheckNumber" type="prePaymentCheckNumber" minOccurs="0" />
                             <xsd:element name="WireTransferIdentifier" type="xsd:string" minOccurs="0" />
                        </xsd:sequence>
                   </xsd:complexType>
                   <xsd:complexType name="accountName">
                        <xsd:sequence>
                             <xsd:element name="FreeFormText" type="FreeFormText" />
                        </xsd:sequence>
                   </xsd:complexType>
                   <xsd:complexType name="billTo">
                        <xsd:sequence>
                             <xsd:element name="PartnerRoleDescription" type="PartnerRoleDescription" />
                        </xsd:sequence>
                   </xsd:complexType>
                   <xsd:complexType name="PhysicalAddress">
                        <xsd:sequence>
                             <xsd:element name="addressLine1" type="addressLine1" minOccurs="0" />
                             <xsd:element name="addressLine2" type="addressLine2" minOccurs="0" />
                             <xsd:element name="addressLine3" type="addressLine3" minOccurs="0" />
                             <xsd:element name="cityName" type="cityName" minOccurs="0" />
                             <xsd:element name="GlobalCountryCode" type="xsd:string" minOccurs="0" />
                             <xsd:element name="GlobalLocationIdentifier" type="xsd:string" minOccurs="0" />
                             <xsd:element name="NationalPostalCode" type="xsd:string" minOccurs="0" />
                             <xsd:element name="postOfficeBoxIdentifier" type="postOfficeBoxIdentifier" minOccurs="0" />
                             <xsd:element name="regionName" type="regionName" minOccurs="0" />
                        </xsd:sequence>
                   </xsd:complexType>
                   <xsd:complexType name="addressLine1">
                        <xsd:sequence>
                             <xsd:element name="FreeFormText" type="FreeFormText" />
                        </xsd:sequence>
                   </xsd:complexType>
                   <xsd:complexType name="addressLine2">
                        <xsd:sequence>
                             <xsd:element name="FreeFormText" type="FreeFormText" />
                        </xsd:sequence>
                   </xsd:complexType>
                   <xsd:complexType name="addressLine3">
                        <xsd:sequence>
                             <xsd:element name="FreeFormText" type="FreeFormText" />
                        </xsd:sequence>
                   </xsd:complexType>
                   <xsd:complexType name="cityName">
                        <xsd:sequence>
                             <xsd:element name="FreeFormText" type="FreeFormText" />
                        </xsd:sequence>
                   </xsd:complexType>
                   <xsd:complexType name="postOfficeBoxIdentifier">
                        <xsd:sequence>
                             <xsd:element name="FreeFormText" type="FreeFormText" />
                        </xsd:sequence>
                   </xsd:complexType>
                   <xsd:complexType name="regionName">
                        <xsd:sequence>
                             <xsd:element name="FreeFormText" type="FreeFormText" />
                        </xsd:sequence>
                   </xsd:complexType>
                   <xsd:complexType name="businessName">
                        <xsd:sequence>
                             <xsd:element name="FreeFormText" type="FreeFormText" />
                        </xsd:sequence>
                   </xsd:complexType>
                   <xsd:complexType name="CreditCard">
                        <xsd:sequence>
                             <xsd:element name="cardHolderName" type="cardHolderName" />
                             <xsd:element name="creditCardIdentifier" type="creditCardIdentifier" />
                             <xsd:element name="expiryDate" type="expiryDate" />
                             <xsd:element name="GlobalCreditCardClassificationCode" type="xsd:string">

  • I would like to ask how to retrieve Sever/Host IP address.

    Hello,
    I would like to ask how to retrieve Sever/Host IP address.
    sys_context('USERENV', 'IP_ADDRESS') returns client's IP address only, but what I want to acquire is Host/Server IP address
    Thank you

    This is why it is generally useful to mention the version of Oracle you are using, particularly if you are using a version 4 releases old...
    That said, you can probably still use the UTL_INADDR package
    SQL> select utl_inaddr.get_host_name( null ) from dual;
    UTL_INADDR.GET_HOST_NAME(NULL)
    DDBCJC01
    SQL> select utl_inaddr.get_host_address( null ) from dual;
    UTL_INADDR.GET_HOST_ADDRESS(NULL)
    192.168.1.107Justin
    Edited by: Justin Cave on Sep 29, 2008 10:54 PM

  • Retrieve available server names for MS SQL server

    hello
    Can somebody tell me how I can retrieve available server names for MS SQL server.
    When MS SQL server loads it asks for server name to connect but on the same time has a combobox with the available server names(instace+database name). How can I provide the same functionality in my application?
    Thank you in advance.

    It isn't going to be as simple as just the name.
    There are also different ways to connect and probably other parameters as well.
    SQL Server Enterprise Manager probably uses a discovery protocol. It probably sends one or more messages requesting information and those servers that want to respond.
    Note that none of that has anything to do with JDBC and discovering how it does that probably isn't easy. A packet sniffer might help.

  • How to automatically detect server ip address

    does any one know how to automatically detect an ip address of a server from the client with a socket based connection ?
    instead of prompting the client to connect to the server ip address which is trouble some.

    You must start with some initial information and a known environment.
    There are several possibilities after that.
    - The server has a 'name'. This is not an ip address but a name like "yahoo.com". When you connect using that, even if the IP changes, the correct IP will be returned. (At least ignoring an annoying bug in some VMs)
    - A specific IP address
    - Use a methodoly to 'request' a server address. One version of this is to use a UDP broadcast another version uses a service manager (which itself must be found.)

  • How to retrieve the client IP address when Apache acts as a proxy for Tomca

    Hello,
    I am trying to retrieve the client IP address accessing the web
    services. Because Apache is our proxy for all requests, when I try to
    retrieve the client IP I always get the localhost IP: 127.0.0.1
    The following code returns the localhost IP:
    MessageContext msgContext = MessageContext.getCurrentContext();
    if(msgContext != null) {
    return msgContext.getProperty(Constants.MC_REMOTE_ADDR).toString();
    return "Unknown";
    From a servlet, obtaining the client IP address can be achieved using
    this code.
    String ipAddress = request.getHeader("x-forwarded-for");
    if (ipAddress == null) {
    ipAddress = request.getHeader("X_FORWARDED_FOR");
    if (ipAddress == null){
    ipAddress = request.getRemoteAddr();
    return IPaddress ;
    Any help is greatly appreciated.
    Thank you very much

    @ejp....
    thanks buddy....
    u made my world a better place to live.....

  • How to change VM Server IP address when VMs are provisioned

    Dear all,
    I have deployed some Oracle VM servers and provisioned some VMs running upon on them.
    However, the user requests to change the management IP address of these VM servers. How can I do it?
    In my practice, I need backup all VMs and remove them. Then remove these VM servers from pool. Then change management IP...add them into server pool...restore VMs from backup....
    Pls correct me if I am wrong.
    Thanks,
    Mike

    You don't have to remove or backup/restore the VMs. Just migrate them to another server (if shared storage) or to Unassigned VMs (if local storage). The machines should be stopped (not suspended). There is a bug where a suspended machine can migrate to Unassigned VMs but can't migrate back (without manual intervention on the console). If you are changing the pool virtual IP, you have to delete/recreate the server pool. This will lose the "simple names" of the disks and ISOs, so record them before deleting the pool. It will not remove the Repository contents. After recreating the pool, you can rediscover the server, present the repository and refresh its contents.

  • How to get database server IP address?

    I have Php backend website, where i have a text area to run sql queries against underlying Oracle 10g/solaris database.
    I have ca 10 such Backend web sites, and 10 underlying Oracle databases for each website. Each Backend website lives different computer than Backend Php webserver.
    I have problems to understand what is the database IP of the Backend website.
    Can i query it?
    My example wrong queries:
    I know that underlying database in this example is with IP "192.168.2.165", but i canät manage to query that out, see:
    This is not the database IP:
    select UTL_INADDR.GET_HOST_ADDRESS from dual--127.0.0.1
    This is some mysterical computer name that i cant ping:
    select UTL_INADDR.GET_HOST_NAME from dual;--tar_071_z
    This is wrong IP:
    select UTL_INADDR.GET_HOST_ADDRESS('tar_071_z') from dual;--127.0.0.1
    Wrong:
    select UTL_INADDR.GET_HOST_ADDRESS( UTL_INADDR.GET_HOST_NAME ) from dual;--127.0.0.1
    I don't know what IP is that:
    select sys_context('USERENV','IP_ADDRESS') from dual;--192.168.2.160
    My php-website i run queries in this example:
    C:\Users\charlesr>ping myphpbackend.com
    Pinging admin.live.casino.playtech.com [192.168.2.160] with 32 bytes of data:
    Reply from 192.168.2.160: bytes=32 time=17ms TTL=252
    Reply from 192.168.2.160: bytes=32 time=9ms TTL=252
    Reply from 192.168.2.160: bytes=32 time=6ms TTL=252
    Reply from 192.168.2.160: bytes=32 time=7ms TTL=252
    Ping statistics for 192.168.2.160:
        Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
    Approximate round trip times in milli-seconds:
        Minimum = 6ms, Maximum = 17ms, Average = 9ms
    C:\Users\charlesr>
    C:\Users\charlesr>ping tar_071_z
    Ping request could not find host tar_071_z. Please check the name and try again.
    If i type Into my Windows 7 File Explorer address "\\tar_071_z" then it says it doesn't find the computer.
    C:\Users\charlesr>ipconfig
    Windows IP Configuration
    Ethernet adapter Local Area Connection:
       Connection-specific DNS Suffix  . : videobet.corp
       Link-local IPv6 Address . . . . . : fe80::702d:f154:fb5e:5c20%11
       IPv4 Address. . . . . . . . . . . : 192.168.15.105
       Subnet Mask . . . . . . . . . . . : 255.255.255.0
       Default Gateway . . . . . . . . . : 192.168.15.1
    Tunnel adapter isatap.videobet.corp:
       Media State . . . . . . . . . . . : Media disconnected
       Connection-specific DNS Suffix  . : videobet.corp
    Tunnel adapter Teredo Tunneling Pseudo-Interface:
       Media State . . . . . . . . . . . : Media disconnected
       Connection-specific DNS Suffix  . :
    C:\Users\charlesr>Edited by: CharlesRoos on 1.06.2011 10:59

    user8950100 wrote:
    try this:
    select sys_context('USERENV','IP_ADDRESS') from dual;That would give you the client ip address, not the server.
    on a side note: working with IP address's is not advisable in large complex systems, should always try to use the hostname that way if IP address is changed does not impact the application conectivity....Why would you need the IP address of the database server anyway?
    Each database should have a unique name, use that instead.
    sql> select ora_database_name from dual;
    ORA_DATABASE_NAME
    xxxx.xx.xxx.xxx.xx(database name mangled to protect the innocent)

  • How to get Unwired Server IP Address?

    Hellow Guys
    Im having trouble connecting to Relay Server I cant even registered
    but the relay server its working and the RSOEs also, I tested through the RS link.
    so I'm thinking to By Pass Relay Server and connect directly to Unwired Server to check if I can get Connected, is it possible?
    The RelayServer has a name but I need the IP Address to connect to it through the native code.
    I can I get it?
    Thanks in advance
    Laguerta

    A relay server is recommended for security. If you are not using a relay server you need to open SUP server ports 5001 and 2480 to public, and that is not secured. Relay server sits in Demilitarized Zone (DMZ) between internal firewall and external firewall that removes the need of opening SUP server ports to public.
    If you are good with opening ports to public you can refer the code from this example that doesn't use a relay serverDeveloping SAP Android Mobile app from scratch
    Midhun VP

  • How to find manager server port address

    hi
    i want to know managed server (soa_server1) port address in order to seed/remove community using demoCommunitySeedServlet. where to find out that one information
    regards
    ashok.v

    Go to your %ORACLE_MIDDLEWARE_HOME%/user_projects/domains/ or your domain folder, edit %ORACLE_MIDDLEWARE_HOME%/user_projects/domains/<your_domain_name>/config/config.xml. Inside this file check the ->
    <server>
    <name>soa_server1</name>
    <ssl>
    <name>soa_server1</name>
    <listen-port>8002</listen-port>
    </ssl>
    <machine>LocalMachine</machine>
    <listen-port>8001</listen-port>
    <listen-address></listen-address>
    <server-diagnostic-config>
    <name>soa_server1</name>
    <diagnostic-context-enabled>true</diagnostic-context-enabled>
    </server-diagnostic-config>
    </server>

  • How to retrieve client's IP address in servlet

    thanks

    According to the API documentation for ServletRequest, it has this method:
    getRemoteAddr()
    Returns the Internet Protocol (IP) address of the client that sent the request.
    Was that what you wanted?

  • How to retrieve VM's IP Address using WMI query

    Hi,
    Please let me know the WMI query to retrieve the IP of the Hyper-V VMs via Host.
    Regards
    Raamesh Keerthi N J

    try this in powershell
    $VMS = get-vm
    $outputArray = @()
    foreach($VM in $VMS)
          $output = new-object psobject
          $output | add-member noteproperty "VM Name" $VM.Name
          $output | add-member noteproperty "Description" $VM.Description
          $output | add-member noteproperty "RAM(MB)" $VM.Memory
          $output | add-member noteproperty "vCPU" $VM.CPUCount
          $output | add-member noteproperty "Status" $VM.Status
          $output | add-member noteproperty "State" $VM.VirtualMachineState
          $output | add-member noteproperty "IsHighlyAvailable" $VM.IsHighlyAvailable 
          $output | add-member noteproperty "Cloud" $VM.Cloud
          $output | add-member noteproperty "HostName" $VM.Hostname
          $output | add-member noteproperty "Integration Tools" $VM.VMAddition
          $output | add-member noteproperty "Operating System" $VM.OperatingSystem
          $output | add-member noteproperty "Location" $VM.Location
          $output | add-member noteproperty "VMID" $VM.VMID
          $outputArray += $output
    write-output $outputarray | sort "VM Name" | format-table * -autosize | out-string -width 600 | out-file $file -append
    Get-SCVirtualNetworkAdapter -all | select name, vlanid | sort "Name" | format-table * -autosize | out-string -width 600 | out-file $file -append
    #load the report in notepad
    notepad.exe "C:\scripts\reports\Report_$DATEStamp.txt"
    exit
    [email protected] visit my blog stephanco.blogspot.com

  • Getting public ip address for a lan

    hello is their a way to some how retrieve the public ip address of a lan? When i use the standard java get host method from a pc that's in a lan, all i get is the private lan ip address such has 192.x.x.x. this is useless to me if i want to make a connection to this computer from outside the lan.
    i want to be able to get the public ip so that i can transform my instant messenger program (LAN based) into the internet so that it clients can talk to eachother from all around the world like msn messanger.
    would they be a problem if say 5 users from the same LAN where logged into the program and one person from outside the lan wanted to talk to one of the people from the lan? seeing as all 5 lan users will have the exact same public ip address, is their a way to talk to teh correct user?
    The current state is that as soon as a user longs into the system, their ip address from the pc that they are using, is stored temporaily into a server so that if User A whats to talk to User B, User query the server to first find out if the user is online and than get their IP address and join User B,s listening socket using the ip address retieved from the server..

    import java.net.URL;
    import java.net.HttpURLConnection;
    import java.io.InputStreamReader;
    import java.io.BufferedReader;
    import java.io.InputStream;
    String publicIP = null;
                try {
                    URL tempURL = new URL("http://www.whatismyip.org/");
                    HttpURLConnection tempConn = (HttpURLConnection)tempURL.openConnection();
                    InputStream tempInStream = tempConn.getInputStream();
                    InputStreamReader tempIsr = new InputStreamReader(tempInStream);
                    BufferedReader tempBr = new BufferedReader(tempIsr);
                    publicIP = tempBr.readLine();
                    tempBr.close();
                    tempInStream.close();
                } catch (Exception ex) {
                    publicIP = "<Could-Not-Resolve-Public-IP-Address>";
                }

  • Emulate WAN address on the LAN with DNS?

    Hello guys,
    My problem, I have a web server on the LAN
    I do port forwarding through the firewall from the WAN.
    How do i emulate the WAN address for the LAN users?
    The web server is set up as a test server for developers so that the can send links to external viewers.
    Can this be made as DNS lookup and how do I configure it?

    How? [You configure DNS on your server|http://labs.hoffmanlabs.com/node/1436], setting up what is known as split-horizon DNS (same domain used outside/public and inside/private) and the internal DNS has all of the host name translations you use from your public DNS replicated, though the inside/private DNS translations are aimed either at your public static IP addresses (for those hosts and services that are external to your private LAN) or (for this particular web server case, and cases where you want to try to avoid sending the traffic through your NAT firewall, assuming it is capable of "reflecting" traffic back through the NAT) aimed directly at private static IP (LAN) addresses.

  • How to retrieve the Sapscript layout changes for a particular Transport request in development server after this Transport request so many requests created  ?

    Dear Abapers,
    I request the Abapers kindly reply for this blog
    I want to retrieve the sapscript layout changes for a particular transport request in development server after that many transport request created and moved to quality ? 
    I checked in SE03 transaction the transport request was there.  But I want to retrieve the existing transport request which is not moved to Quality?
    Is it possible to retrieve the existing transport request in development which is not moved to quality ?
    Like how we retrieving the programs using versions in development server,  In the same way I want to retrieve the sapscript layout in development server ?
    Thanks & Regards
    Muzeebur Rahiman.S

    Hi,
    There is no version management for SapScript or Smartforms .
    When you write "transport request in development which is not moved to quality" - was the transport ever released and exported from the development system? If yes, and if the "Transport files" are still available in "Transport directory" (or if the transport files were backed up and could be retrieved), the transport could be imported again. If the TR was not exported, you are out of luck, I believe...
    I would not recommend you do it on your own even if you happen to have enough authorizations (consult with Basis and/or Transport Admin, if you have one in your organization). I would not recommend that it's imported on a development system or QA system, even if the transport contains no other objects - only the SapScript form in question. Import it on a "sand-box" that gets overwritten by system copy from time to time... Once the transport is imported, you should have the old version of SapScript in that system and could analyse the changes and perform manual merge.
    cheers
    Jānis

Maybe you are looking for

  • Vendor / Customer Master transfer from Feeder to GTS

    Hi All, When I transfer a Vendor / Customer / Bank Key from Feeder system to GTS, the Business partner is created with BP Role "000000 - BP General". But what I need is whenever I transfer a Vendor the BP should be created with BP Role "SLLCPS" & For

  • Ugly Gray Borders Around My Paths

    It doesn't matter if I turn the stroke completely off of a path or not; Illustrator is still putting ugly gray borders around them. Here is a picture: http://peacepunk.net/images/uglyborder.jpg They appear around the curtains, around the bed (the red

  • Producer - Consumer problem

    Hi, Can anyone tell me what is the problem with the below program. Its following the traditional producer consumer concept. For the first time the producer is executed correctly , followed by the consumer printing the consumed value. But for the next

  • Problem in Workstatus update

    Hello Experts, I'm trying to update the work status but i'm having the following message "User is not a owner / manager, work status can not be updated". I don't understantd the message because I defined the user as Owner in the entity property. Do y

  • How can i get current time in different TimeZone

    Hi alls, How can i get current time in different TimeZone. I've tried final Calendar calendar = Calendar.getInstance(GMT0_TIME_ZONE); final Date date = calendar.getTime(); but it returns current time in my time zone not in GMT0