How get the external ip address of proxy (or nat) server with AppServer

Subject contains the basic question.
I need get ip adres (not in local net, but external) of client!
Wish with AppServer only. Becoze with java it less accurate.
Or I was wrong?
help me please!
Edited by: user13325288 on 29.06.2010 16:06
Edited by: user13325288 on 29.06.2010 16:07

Thank you, MLBrown. I have configured webutil and it works. But I read that the function webutil_clientinfo.Get_IP_Address; return address on the LAN. Address of network card in my local network. But what if I need to get the ip address if I connect through multiple networks or via the Internet??
I need to AppServer worked with an external ip address of the server, through which I connect to the AppServer
Edited by: Ihavoker on 30.06.2010 9:55

Similar Messages

  • How can I get the client IP address correctly?

    Hi,
    I am having a problem with getting the client ip address correctly using jsp. I am currently using the method request.getRemoteAddr() (JSP)to get the remote client IP. This method works fine with intranet addresses.
    However, when I am using a dial-up connection through a ISP (internet service provider), it could not detect the actual IP that is assigned to my client PC, but instead got another IP address.
    Could anyone advise me on that? And could anyone advise me on how to obtain the correct client ip address correctly using any of the java technologies?
    Thanks,
    Damien

    >
    I don't believe so. You can't establish aconnection
    over the internet using a private IP. As far as I
    know most, if not all routers, block them so itwon't
    even move over the backbone.Well with port-mapping it is definately possible to
    allow an external ip to "connect" to an internal ip, i
    have done this very thing myself...Not the same.
    You are addressing the external server with a public IP address. That is then translated into the internal connection.
    That is not the same as using a private IP on the internet.
    As I said, the backbone will not let a private IP through.
    >
    >
    Yes, but my point is that at any given time, in the
    world, many boxes might have one address. Even ifit
    is a private IP is it still that IP for aparticular
    box. So if you use java to get its IP that is theIP
    that it gets. And that IP is useless for anything
    unless that IP is meaningful for the othercomputer.
    But all ips must be unique in a designated "internet"
    be it an "intranet" or whatever, there cannot be a
    situation where two identical ips in the same
    "internet", such that an ip that is achieved from a
    page-hit is valid and meangingful in order to send the
    data it is requesting back to it, or find out more
    about that computer, or log and report it if it is
    doing something illegal; i don't think its that
    meangingless is it?Yes it is. You can't use an IP to uniquely identify a box, and that is the sole criteria, when there might be two boxes with the same IP.
    When you use java on a client box to get the IP of the box, it doesn't necessarily return an IP that it meaningful to the anyone outside the lan on which the box lives.
    Because of this internet systems must do one of the following:
    -Do not use the IP as an identifier.
    -Require that the client has a public IP. This is often static. At least some security systems use this to validate users.

  • I have iMovie 09. I just erased my external hard drive, but it is still formatted for the mac. However, iMovie will not recognize the hard drive. It shows the only hard drive available is the computers. How do I get the external hard drive to show up?

    I have iMovie 09. I just erased my external hard drive, but it is still formatted for the mac. However, iMovie will not recognize the hard drive. It shows the only hard drive available is the computers. How do I get the external hard drive to show up?

    In Finder's Menu, select Go menu>Go to Folder, and go to "/volumes". (no quotes)
    Volumes is where an alias to your hard drive ("/" at boot) is placed at startup, and where all the "mount points" for auxiliary drives are created for you to access them. This folder is normally hidden from view.
    Drives with an extra 1 on the end have a side-effect of mounting a drive with the same name as the system already think exists. Try trashing the duplicates with a 1 or 2 if there are no real files in them, and reboot.
    If it does contain data...
    http://support.apple.com/kb/TS2474

  • How do I get the hostname(or address) of the server?

    How do I get the hostname(or address) of the server inside code
    running on the server? I can use
    Admin.getServer().getListenPort() to get the port number; but
    calling Admin.getServer().getListenAddress() returns null.
    Thanks
    Rajesh

    Rajesh,
    Try this:
    import java.net.InetAddress;
    Address.getHostName(); // This returns a string with hostname
    "Rajesh Kommu" <[email protected]> wrote:
    >
    How do I get the hostname(or address) of the server inside code
    running on the server? I can use
    Admin.getServer().getListenPort() to get the port number; but
    calling Admin.getServer().getListenAddress() returns null.
    Thanks
    Rajesh

  • How  can i get the system ip address through d2k/oracle

    hi
    how can i get the I.P. address of the System, whether any builtin function is available oracle/d2k.
    please do needful help

    http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:510222107880

  • How can I get the e-mail address (reply addr.) once connected to a server

    My application ask the user to enter the POP3 server host name (+ port) more the
    POP3 server userId and password .... I can get the e-mails and show the to the user ....
    Now, the user want to send a message from that "account" and what I need
    is to know the "reply address" (the "from address") to set to the outgoing message ...
    I would like to get it somehow (from the API or in anotherway) without asking the
    user to enter it ...
    So, oonce connected to the POP3 mail server (successful login) is it
    possible to get the e-mail address of that guy ??
    please let me know if you have a solution ....
    many thanks / regards / Max

    You are of course trying to get an email address in the format of [email protected] You already have "username" the trick is the somedomain.com. I don't believe that the pop3 server has anyway to tell you this. Unless your host name is "fully qualified", i.e. pop3.somedomain.com, I don't know that you can get this information. Maybe you could take the IP address and do a reverse DNS lookup? Still you wouldn't really know if that is the domain the user really wants. For example I retrieve and send my email from aaa.com, but my domain for my reply-to is bbb.com. Your goal is noble, but perhaps not practical. That is why Outlook Express requires the user to enter their email address when setting up an account. Hope this helps.

  • How to get the vm ip address in scvmm 2012

    Hi,
    I want to get the vm ip address in scvmm 2012, who can help me?

    I have seen lots of people ask this because they can see IP addresses in other Virtualization Consoles, Unfortunately SCVMM doesn't show IP address of the VMs on the console but you can use below script to populate Custom1 property of VMs with IP address
    and make Custom1 Column visible (manually) in SCVMM Console... HTH
    param ( $VMMServer = 'localhost')
    $CustomProp = Get-SCCustomProperty -Name Custom1
    $VMs = get-SCVirtualMachine -VMMServer $VMMServer
    foreach ($VM in $VMs)
     $NetAdp = get-SCVirtualNetworkAdapter -VM $VM.name
     if ($NetAdp.IPv4Addresses)
     [String[]]$str = $NetAdp.IPv4Addresses
     Set-SCCustomPropertyValue -CustomProperty $CustomProp -InputObject $VM -Value "$str"
    Disclaimer: The sample script is provided AS IS without warranty of any kind.

  • WRT54GS: without Windows, force a given MAC address to always get the same IP address via DHCP?

    I have just now set up my WRT54GS to manage my home wireless network, and it works great. I just have one question that I haven't been able to find an answer for (forgive me if I have overlooked an obvious source of information).
    I have set up the WRT54GS to be a DHCP server, and it assigns addresses in an ad hoc manner to all the devices that connect to it. In general, this is what I want, but in one case, I want a certain host to always get the same IP address, for example, 192.168.1.10.
    You should know that I have no Windows machines on my network. Everything is either running Linux, MacOSX, or Symbian (on a Nokia N95 handheld). Therefore, I can't set up a static IP for my device using the software supplied on the CD that comes with my router, as that software only runs under Windows.
    Using a different manufacturer's router, I am able to accomplish this by telling the DHCP software on that router to always assign 192.168.1.10 to the host who connects with a certain MAC address. I can then use this mechanism to force my specific host to always get this desired IP address. However, I haven't been able to find any way to do that with the WRT54GS without the software on the Windows-based CD. Is it possible at all? If I can indeed do this without that Windows software, could someone point me to some docs which explain how to accomplish this?
    ... or is there perhaps a different way to cause this to happen, perhaps by means of some sort of DHCP client ID?
    Thank you very much in advance for any pointers you can give me.
    Message Edited by HippoMan on 10-16-2007 05:27 PM
    Take a hippopotamus to lunch today.

    Forget about the CD. There is nothing on the CD which you don't configure better through the router web interface at http://192.168.1.1/ You don't need the CD. Never. I have never used the CD to configure any of my routers. The program on the CD is just a software which helps you with the initial configuration of the router. It is just a software which pretty much contacts the web interface in the background and sends some settings changes there. You can do everything yourself directly. Then you know what you change.
    You have to configure the static IP address on the computer and on the computer only, e.g. on your Mac use Static IP instead of DHCP in the network preferences. Enter the IP address you want to use for the computer, the subnet mask, gateway address and DNS server(s). That's it. The router is not involved in any of this.
    You just have to make sure that you use an IP address inside the LAN of the router. By default, Linksys routers use the IP address 192.168.1.1 on the LAN side for the the router. The subnet mask is 255.255.255.0. The IP address together with the subnet mask says that all IP addresses 192.168.1.0-255 are considered part of the LAN. Everything else is outside and needs to be routed to the router and from there into the internet. (If you want to know how the subnet mask works exactly read the wikipedia article on it or search for "subnet calculator" or similar in the internet)
    Thus, if you connect a computer to your LAN and set a static IP address on the computer it should be inside this IP address subnet/range in order to have internet and LAN access on the computer. It does not matter which address you use as long as it is inside the IP subnet. The DHCP server on the router automatically assign a correct IP address inside the IP subnet and also automatically assigns the correct gateway address (its own address = the address to which everything should be sent which does not belong into the LAN, i.e. the internet traffic) and the DNS server. With static IP you have to assign those values yourself.
    But again, there is no Windows computer or CD involved to do that nor is there any configuration on the router required to set the static IP address on the Mac. The IP address you set must simply match your LAN IP which is basically defined through the settings on the router as you want to have internet and thus need access to the router and its address 192.168.1.1.
    Some routers allow you define fixed IP addresses for specific devices in the DHCP server of the router. With that function you can set a fixed IP address on the router. The computer can remain on DHCP. It will always get the IP address you have configured in the list on the router through the DHCP server. However, your Linksys router does not have this option. If any device inside your LAN is supposed to receive the same IP address at any time you have to configure that on the device only.
    If you have not changed the default LAN IP address, subnet mask and DHCP server settings on the router, the router has 192.168.1.1, subnet mask 255.255.255.0 and the DHCP server uses 192.168.1.100-149 for dynamic assignments. To avoid potential address conflicts you should not use any static IP addresses inside the DHCP server address pool. This leaves you with IP addresses 192.168.1.2-99 and 150-254 as static IP addresses inside your LAN. You can pick any address you like as long as any device with a static IP address has a unique IP address inside your LAN.
    Assign the subnet mask 255.255.255.0 on the computer and set the default gateway to 192.168.1.1. The DNS servers are a little bit more complicated. Generally it is better and faster if you use the DNS servers of your ISP. You can, however, also use the IP address of the router 192.168.1.1 as DNS server. The router will then operate as DNS proxy, i.e. it contacts the DNS servers of your ISP for any request from your computer.
    If you want to use the DNS servers of your ISP, click on the Status tab in the router web interface. It shows you the current settings of the router on the internet port. It should show you multiple entries for DNS servers. Choose those DNS server IP addresses in the computer.
    If you don't want to go through the hassle with the direct access to the DNS servers of your ISP, simple use 192.168.1.1 as only DNS server on the computer.
    There are all settings you have to make on your Mac or other computers to assign a static IP address. As long as the IP address is inside 192.168.1.* it belongs to the LAN and has internet access through the router (as long as the default gateway address is 192.168.1.1 of course).
    Firmware is loaded either through the web interface of the router, usually somewhere on the Administration tab or with tftp. Both ways work fine on any Mac or Linux box.

  • How do I get the internet traffic to come to my own server?

    If I'm moving from paying a host for coldfusion to using my own license on my own server, How do I get the internet traffic to come to my own server?

    You connect the computer to a network.  This is pretty much automatically handled by the hardware and the operating system.
    You may want to read up on some of the basics of networking and the tcp/ip world.
    To have a networked computer tell you its IP address type 'ipconfig' at a dos command line.

  • Get the client IP address

    Hello everybody, I'm a student new with java, I'm developing a little server application - running standalone, and I'm trying to get the client Ip address, have a look on my code snippet:
    InetAddress fromcli;
    while(true){
    welcomeSKT.accept()
    fromcli = welcomeSKT.getInetAddress();
    System.out.println("The client Ip Address is: " + fromcli.getHostAddress() + '\n');
    The sysout println returns the 0.0.0.0 that is the server address, mapped to more than one interface eg:(loopback and eth0) - But if with the getInetAddress() method I get the server address where is the difference with the getLocalHost()? - By the way, anyone has a suggestion to print out the client remote address.
    Thank you in advance....
    Jeppojeps
    Edited by: jeppojeps on Mar 24, 2008 3:36 AM

    Oh, sorry of course welcomeSKT is a ServerSocket, actually the snippet that I put is a part of the code, here below I put the complete program, in order to clarify my question, however I would like to know if it's possible to understand from the server side the client IP address, and if yes how...
    Thank you in advance...
    * THIS simple TCP server receives some numbers in input by the client and give back the sum - actually the exceptions are managed in a uncomplete way....but this is my first java program...be patient with me...
    * @jeppojeps
    * @0.1
    import java.io.*;
    import java.net.*;
    public class ServerTCP
    // instance variables - replace the example below with your own
    public static void main(String[] args) throws Exception
    String clientSentence;
    String capitalized;
    InetAddress fromcli;
    String clientIp;
    String portIp;
    int z=0;
    int port=0;
    if (args.length == 0 ){
    System.out.println("Usage: ServerTCP lport" + '\n');
    System.exit(-1);
    else
    port = Integer.parseInt(args[0]);
    if(port <= 1024) {
    System.out.println("Remember dude, only root can use a portnumber < 1024" + '\n');
    else{
    ServerSocket welcomeSKT = new ServerSocket(port);
    System.out.println("Server instance started:" + '\n');
    while(true){
    Socket connectionSocket = welcomeSKT.accept();
    BufferedReader InfromClient = new BufferedReader (new
    InputStreamReader(connectionSocket.getInputStream()));
    DataOutputStream outToClient =
    new DataOutputStream(connectionSocket.getOutputStream());
    outToClient.writeBytes("Hello give me some numbers and I'll give you the sum" + '\n');
    fromcli = welcomeSKT.getInetAddress();
    System.out.println("The client Ip Address is: " + fromcli.getHostAddress() + '\n');
    clientSentence = InfromClient.readLine();
    for(int i = 0 ; i < clientSentence.length() ; i++) {
    try {
    Character c = new Character(clientSentence.charAt(i));
    capitalized = c.toString();
    int x = Integer.parseInt(capitalized);
    System.out.println("Number digited from the client: " + x + '\n');
    z+=x;
    catch(NumberFormatException nfe) {
    System.out.println("Text: " + clientSentence.charAt(i));
    capitalized = Integer.toString(z);
    outToClient.writeBytes("The sum of the given number is: " + capitalized + '\n');
    welcomeSKT.close();
    }

  • Unable to make a connection with the external ip address

    I made a simple chat program in order to test the networking. I was able to make local connections using the internal ip addresses, bu when I try the external ip address, the connextion fails.
    Here is my ServerSocket in the MessengerServer class : ServerSocket server = new ServerSocket(1234);
    And here is the code that worked in the local network in the MessengerClient class: s = new Socket(InetAddress.getByName("192.168.1.4"), 1234);
    I also tried that code, using both the external and internal addresses : s = new Socket(InetAddress.getByName("71.178.183.40"), 1234, InetAddress.getByName("192.168.1.4"), 1234);
    Can anyone help me?

    francois203 wrote:
    Yes, it is the router address (WAN address),Then you have to set up your router for port forwarding, if you want a computer behind that router to receive incoming connection requests.
    but I suppose that to communicate with another computer not in the local network I need both the wan and the lan addresses.That depends on what precisely you mean by "communicate with." For instance, any website I visit "communicates with" my computer, and it knows nothing about my computer's private IP address.
    But I don't know how to construct a socket able to have both the router and the local address.Set up your router for port forwarding. The client doesn't have to know anything about what's behind the router. (Note that this assumes that a) your overall approach is sound and b) your ISP will allow incoming connections. I have no way of knowing if either of those is true.)

  • Get the real IP address of a client

    Hi,
              i know it is a common issue but I haven't found any answer in the forum. I would like to get the remote IP address of a client in a servlet. There's Apache server with Weblogic module used in the architecture of our web application. The getRemoteAddress method of ServletRequest class only returns the IP address of Apache. Is the remote address stored in the HTTP header ?
              Thanks,
              Bengali

    >You could be getting the IP address of a proxy
              Yes I know this, and since it's for an Internet application I don't care
              about their private address... the IP address of their NAT gateway is fine.
              Anyway,
              the HTTP header field is "X-Forwarded-For" for those who would look for
              it.
              Thanks,
              bengali
              > Even if you could get an IP address from the client it is not always going
              > to be the real IP address. You could be getting the IP address of a proxy
              > server or some other intermediate network device. So different users would
              > have the same IP. Getting a host name can also be problematic because
              > reverse DNS might not be enabled for the domain. Also some of the larger
              > ISPs have employed an IP hopping scheme where the DHCP IP address might
              > change in the middle of a user's session.
              >
              > Now in terms of your original question the IP address of the client might be
              > in the HTTP Headers, use the getHeaders() method to spit out all of the HTTP
              > headers and one of them might be the IP Address
              >
              > Dave
              >
              >
              > "Luc Dewavrin" <[email protected]> wrote in message
              > news:25120100.1092994129792.JavaMail.root@jserv5...
              >
              >>Hi,
              >>
              >> i know it is a common issue but I haven't found any answer in the forum.
              >
              > I would like to get the remote IP address of a client in a servlet. There's
              > Apache server with Weblogic module used in the architecture of our web
              > application. The getRemoteAddress method of ServletRequest class only
              > returns the IP address of Apache. Is the remote address stored in the HTTP
              > header ?
              >
              >>Thanks,
              >>Bengali
              >
              >
              >
              

  • I get the msg "email address not verified" when I sign into iTunes account, however it shows my account as already verified

    I get the msg "email address not verified" when I sign into iTunes account, however it shows my account as already verified, sends me back to sign in again &amp; then gives me the same msg all over again.  How do I fix this and access my iTunes account from my iPod Touch?

    I'm having the same problem.  Did you ever find out how to fix it?

  • I connected my external hard drive to my new imac to put all of the information from my macbook onto it. i have been working on the macbook now and want to reconnect the external hard drive so my imac is updated with the work. How is that done?

    I connected my external hard drive to my new imac to put all of the information from my macbook onto it. I have been working on the macbook now and want to reconnect the external hard drive so my imac is updated with the work. How is that done? or is it possible?

    As I said, I don't use Time Machine, so it'd be best to wait for an "expert" answer, but, with my very limited knowledge, I'd say: probably not - so, for now, I'd suggest you read up on Time Machine:
    http://web.me.com/pondini/Time_Machine/Home.html
    http://support.apple.com/kb/index?page=search&src=support_site.home.search&local e=en_US&q=time%20machine
    And, you might be attracting more knowledgeable answers if you were to post this question in the Time Machine Forum (part of the Snow Leopard forums).

  • How to simulate external IP addresses on a single server Hyper-V test environment

    I just bought a powerful laptop and installed a spare copy of Server 2012 R2 Datacentre on it.
    I am in the process of setting up a test LAN with DC, Exchange, TMG firewall web and backup servers.
    V host without the use of external physical routing?
    I would like to connect a client to the LAN services such as Exchange and VPN in the same way a client device connects to a network over the internet. In other words, I need to test the external IP addresses of my test LAN.
    I am considering a setup consisting of two separate LANs with different IP address ranges:
    LAN 1: internal network (with all the services mentioned above)
    LAN 2: with only one client VM; this would be the external network (simulated internet)
    Is this the best way of doing it? Has anyone already done something similar?
    Many thanks!

    I have something similar.
    I don't believe your solution would work alone, as you'd need a VM to act as a router between the two. You could do it like that (but adding a virtual router) or you could just let WAN be your local network (the one your laptop is on)
    Some steps (not very detailed, I can provide my documentation I wrote for Hyper-V running on server 2012 R2 (should work exactly the same for you though)
    The first vSwitch created should be External type (it should already be created if you installed Hyper-V)
    Create a second switch, call it whatever (Internal or LAN doesn't matter), set it's type to Private.
    Create a small 512MB Generation 1 VM with a small (1GB should be fine, and it can be dynamic expanding)
    Add two LEGACY (key point) network adapters to it, attach the first to the external and the second to the private.
    Install pfSense onto it. You'll basically have a router. the first interface is the WAN (if you set the first adapter as external when you added them to the VM) or "the internet" you could say. While the private switch is the second interface or your local
    (private) LAN. Now any VM you want to be on this virtual LAN just set it's network adapter to be connected to the Private vSwitch.
    I have instructions if you want to do this (specifically for Hyper-V (I wrote them in case I ever had to reinstall it because there are a few gotchas with it being virtualized)

Maybe you are looking for

  • How to get the PRIMARY KEY of a table at runtime ???

    Hi everybody, My requirement is to update a z-table at runtime according to the data given ata runtime. So the main difficulties for me is that whenever I tried to update the table based on the data given in UI many rows are getting updated as these

  • Anyone here NOT having issues with the GS3???

    Anyone? If you're having no problems with the Galaxy S III and are enjoying your new phone, please do tell. It appears that there are many people experiencing a whole host of issues. Lots of discussion on whether these are manufacturer or service-pro

  • Improve performance with union all

    Hello there, Oracle Database 11g Release 11.1.0.7.0 - 64bit Production PL/SQL Release 11.1.0.7.0 - Production SQL> show parameter optimizer ORA-00942: Tabel of view bestaat niet. (Does not exist)I have the following query using the following input va

  • Songs purchased through iPhone from itunes?

    I recently purchased several Disney albums for my kids on my iphone. Worked great, but when I did my automatic sync on my computer, everything that I had bought using the iphone alone was lost. It appears as "purchased" on my account, so I know I pay

  • Border Manager 3.9 upgrade

    Are current subscription holders of SMB6.6 eligable for the upgrade to 3.9 border manager?