Detect Country Based on IP

Dear all,
How to detect country based on IP address? I know I can get
the IP by using REMOTE_ADDR and REMOTE_HOST. Some of the websites
offer subscription fees for the above function. Is there any free
way to do it? Can we tell from the first 3 digit of the IP? Is that
a safe way?
If we load google from Singapore by typing www.google.com, it
will automatically route the website to www.google.com.sg (unless
you have cookies to remember your preferences).
Looking forward for your reply.
Thanks in advance
Keiko

Keiko wrote:
> the above function. Is there any free way to do it? Can
we tell from the first
> 3 digit of the IP? Is that a safe way?
http://www.sustainablegis.com/projects/geoLocator/
uses db local to your server. use it w/mark mandel's
javaLoader on shared hosts
or if you want painless updates.
also recent thread on cf-alk:
http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:53430

Similar Messages

  • How can you expect the customer to have a LOCAL/COUNTRY Based Credit Card every where we go??? Last week I was on holiday in HK,  and  from my Hotel I was able to use m VN Credit Card with my Apple ID and purchase online!  Why THIS WEEK, can't I use my HS

    Apple_ID_card_declined_for_this_country
    How can you expect the customer to have a LOCAL/COUNTRY Based Credit Card every where we go???
    Last week I was on holiday in HK,
    and
    from my Hotel I was able to use m VN Credit Card with my Apple ID and purchase online!
    Why THIS WEEK, can't I use my HSBC Platinum Credit Card from Vietnam,
    for my Singapore Apple ID account ,
    while working here in Vietnam???

    Unfortunately, this is a problem that is driven by the DRM Dictatorship.  Despite the proliferation of mobile devices and the fact that there are many of us who do a lot of international travel, content providers don't want you to have access to their products outside of your homeland.  The Balkanized mentality of the DRM Dictatorship is way out of touch with the modern world.
    At least Apple, to its credit, allows you to use your accounts outside of your homeland as long as you have the proper credentials for them.  Most other services use the more Draconian geolocation filtering which does require you to be physically present in your homeland.  For the most part, you are not allowed to leave home if you want access to your favorite entertainment!

  • Country Based on Sales Org?

    Hi,
    Any one can tell me the TABLE Relations/FM to get the Country based on the Sales Organisation?
    Thanks,
    Sekhar.J

    Please use tables TVKO and ADRC to link address number field for the sales organization in question.

  • Require to Find the Country Based on SALES ARea.

    Hi,
    Any one can tell me the TABLE Relations/FM to get the Country based on the Sales Organisation?
    Thanks,
    Sekhar.J

    Hi .,
    Please get the company code from TVKO Based on Sales Organization,
    After that Go to T001 table and get the country based on Company Code,
    Regards
    Jana

  • HCM Absence  types- need to display in different languages in the same country based on user language preference

    Hi
    We are implementing in Belgium where we need to have absence in both dutch and French for the different user sets. Is there anyway to set up one absence type but have the different translations for the different user groups.  There was a document ID 1619320.1 that referred to the fact that if the absences were created  by a seedfile then they would be translated. Has anyone come across this issue whereyou need to display the same absence type for more than one language in the same country and how did you do this or did you have to set up separate absence types in the different languages which I do not want to do
    thanks

    Hi Parker
    If you are using Captivate 4 multi languages is a
    posibility..
    Set a User Variable to pass the language you want to a Flash
    SWF whic is embeded (This can play and hold multiple audio tracks).
    For example Captivate 4 will pass "french" to the embeded flash SWF
    which will play the "french" track.
    OR
    you could just use branching ;)
    Cheers.. Aquil0

  • Determination of country based on Sales Org

    Hi Friends,
    I have sales Organization , I need to determine the country (Land1 field )
    , which table I need to check to that,
    Is there any direct relationship to get this or please provide the path forward to get this.
    Cheers
    Prashant

    parameters : p_vkorg like tvko-vkorg.
    data : v_vkorg like vbak-vkorg.
    data:  v_bukrs like ekpo-bukrs.
    data:  v_land1 like kna1-land1.
           select single vkorg bukrs into (v_vkorg , v_bukrs)
                   from tvko where
                        vkorg = p_vkorg.
                        if sy-subrc eq 0.
                        write:/ v_vkorg, v_bukrs.
                        else.
                        write:/ 'Invalid sales org'.
                        endif.
           select single land1 into v_land1 from t001 where bukrs = v_bukrs.
           write:/ 'Country', v_land1.
    check this ..
    regards,
    vijay.

  • Country based currency & decimals issue

    Hi All,
    Can any one help me here, I need to decide the decimal places for particular currency of a country accordingly I need to add the decimal places.
    Example: JPY: Japan yens dont have a decimal place
                   INR will have 2 decimal places. like this way.
    thanks.
    Kalyan.

    Hi,
    Ustry the following code.
            DATA:
                  lv_decimals      type     tcurx-currdec,
                  lv_amount         type    char30.
            CALL FUNCTION 'G_DECIMAL_PLACES_GET'
              EXPORTING
                currency       =    lv_waers  (currency key)
              IMPORTING
                decimal_places = lv_decimals.
            IF NOT lv_decimals IS INITIAL.
              WRITE: lv_wrbtr TO lv_amount DECIMALS lv_decimals.
          endif.
    thanks
    kasturi

  • Overview SAP HCM country based infotypes

    Dear all,
    I am in search of an overview of all Sap HCM infotypes. Per infotype I need to know whether it is an infotype common to all countries (such as: 000,0001,0002,0003,0006,0007,0008,0009,0014,0015) or a country specific infotype (U.S. Benefits Payroll IT(0496 - 0501)).
    Is there anybody willing to share information or (ofcourse preferably) share such a list?
    Thanks in advance!
    Maarten
    (vandermeijde at hotmail.com)

    Hi Marteen,
    Info types like 0000,0001,0002,0003,0004,0005,0006,007,0008,0009,0010.......
    all infotypes are commonly used for all countries, but only thing is some countries was not require some infotypes. maintaining of info types entirely depends on Client requirement.
    For example:
    Infotype 0021 is maintained only the client want to enter details of the employee's family otherwise we don't maintain it.
    Thanks & Regards
    Sandeep

  • Get time Zone based on Country code

    Hi All,
    I am looking for getting the time and date of a particular country based on country code in XI. For ex. if IN comes in payload then get IST (Date and time). Can we do that in UDF?
    Thanks & Regards,
    Venu V

    > I am looking for getting the time and date of a particular country based on country code in XI.
    How should that work? Have you thought about Russia? USA?
    Check java class Calendar and TimeZone:
    http://java.sun.com/j2se/1.5.0/docs/api/java/util/Calendar.html
    http://java.sun.com/j2se/1.5.0/docs/api/java/util/TimeZone.html

  • KeyPressed / collision detection

    I have a tile based platformer I am making and am having some trouble with the collision detection. I have it so that the game detects a collision before it actually occurs so that it wont happen in the game. However, it only appears to works right if i tap the arrow key into the wall, and if i hold the arrow key down i fly right through the tile until i let go (if i let go inside a block the hero gets stuck because it detects a collision anywhere i try to move after that). At this time i had the new coordinate to detect collision based on which direction i was moving gotten from keyPressed. Since this didnt work (assumed it was because the game loop and keyPressed dont take turns performing their actions) I made the new coordinate collision be detected from a method called in the main game loop and the result was that if I held down the key and flew into a wall, it doesnt stop exactly at the right spot (but I cant go through an entire row of tiles) but when I go the opposite direction from the collision (open space should work fine) it works fine until a point where in mid air it acts like a collision occured.
    I have tried very hard to find the error in my code concerning the collision detection and need to make sure these problems arent a result of limitations of keyPressed or something, but rather just the code i've written

    ok well I now have it set up so that before the hero moves it checks to see if the move is valid from each pixel starting at the hero to the length the hero moves in 1 directional press (using a rectangle that is the size of the hero, then has width 1 pixel larger etc until reaches the length of a move). The collision detection method returns true if there is a collision at any point, false otherwise. I tried to put the method in both the keyPressed method (for each case of a directional key pressed) as well as in the main game loop (not both at the same time) and neither worked perfectly and both worked about the same. Now the problem is that as long as the hero approaches the tile from a far away distance it works perfectly (a tile is 40 pixels in width and hero is 30), it appears that if the hero approaches from around 40 pixels out it will work but anything less and it will go through the tile as far from the 40 pixel mark it started (ie if hero starts at 37 pixels from tile and moves, it will go through the tile 3 pixels) then it can only travel back to the position it started even if there is no collision detected. Again, it appears that the hero must be about 40 pixels out (not sure if this is coincidence or it is exactly the length of the tile for a reason). Really can't figure this out, dont think there is a problem with the code i have written but probably i'm approaching the solution wrong

  • How to define Price depend on Country Location in iStore Pages

    Hi to ALL.
    This is Shan , am new to Advance Price . actually am working in CRM module in iStore. by the by my query is , i need to dispaly the price for products depend upon the country location for same customer .
    For Example . Customer name is GMI and there is two user available for the customer named as " X " and " Y ". the user X in Singapore and user Y in Korea . but the both user is under the same customer name . while the both user seeing the same iStore Catalog page in internet and same product, i need to dispaly the price of product depend upon their country location .
    For item Name Standard laptop , it should display the price in Singapore country with related to singapore dollar 256$ and singapore tax deduction and for Korean user if he open the same page in Korea the price should dispaly depend the korea currency and tax deduction of 456 won.
    It's very urgent requirement, pl revert me back ASAP ..
    By
    Shan

    Either you can setup different price list based on the country or you can define modifiers for different country locations. So based on modifiers, the discount will be changed so that selling price will be changed. If you want list price to be shown different then you need to define different price lists for different country. based on the detailed requirement, you can choose either new price list or new modifiers
    Thanks / Bhaskar Akkala

  • Prompt value based on another prompt(Multi Select prompt)

    Hi Expert,
    I have two multiselect prompt Continent and conutry
    my req is when I select continent in the first prompt then second prompt sholud show the country based on first prompt value.
    Ex : If I select Asia in continet then country prompt sholud show only Asia's country.
    any sugeestion pls.
    i know constraint but only possible in drop down prompt..

    Hi,
    Constrain is not applicable for edit box only.We can use it for drop down list and multi select also.Other wise go for the presentation variable.
    mark if helpful/correct...
    thanks,
    prassu

  • Need to create search help for parameter 2 based on values in parameter1

    hi Specialists,
    I need to create a search help for parameters field 2 ( Country ) based on the values the user inputs in parameters field 1 ( Currency ). The values of field  Currency & Country will come from T001 table.
    The logic is : Based on a unique currency value ( fetched from T001 table ) user needs to get/see all Countries on his selection -screen.
    Can you guys let me know which FM can I use for above & how to pass various values i.e. parameters into that FM. EXplanation with an example/code is highly appreciable.
    Thanks
    Abhinav.

    Hi Abhinav,
    Use this demo code, its working:-
    This code selects sale document item based on the user entry for sales document on the screen field.
    REPORT  ztg_f1f4.
    CALL SCREEN 1010.
    *&      Module  GET_F4_HELP  INPUT
    *       text
    MODULE get_f4_help INPUT.
      TYPES : BEGIN OF it,
                posnr TYPE zvbap-posnr,
              END OF it.
      DATA : itab TYPE STANDARD TABLE OF it WITH HEADER LINE,
             tb_dynpfields LIKE dynpread OCCURS 0 WITH HEADER LINE,
             vbeln TYPE zvbap-vbeln.
      CLEAR:   tb_dynpfields.
      REFRESH: tb_dynpfields.
      MOVE 'ZVBAP-VBELN' TO tb_dynpfields-fieldname. "screen field name
      APPEND tb_dynpfields.
      CALL FUNCTION 'DYNP_VALUES_READ'
        EXPORTING
          dyname                               = 'ZTG_F1F4'
          dynumb                               = '1010'
    *   TRANSLATE_TO_UPPER                   = ' '
    *   REQUEST                              = ' '
    *   PERFORM_CONVERSION_EXITS             = ' '
    *   PERFORM_INPUT_CONVERSION             = ' '
    *   DETERMINE_LOOP_INDEX                 = ' '
    *   START_SEARCH_IN_CURRENT_SCREEN       = ' '
    *   START_SEARCH_IN_MAIN_SCREEN          = ' '
    *   START_SEARCH_IN_STACKED_SCREEN       = ' '
    *   START_SEARCH_ON_SCR_STACKPOS         = ' '
    *   SEARCH_OWN_SUBSCREENS_FIRST          = ' '
    *   SEARCHPATH_OF_SUBSCREEN_AREAS        = ' '
        TABLES
          dynpfields                           = tb_dynpfields
    * EXCEPTIONS
    *   INVALID_ABAPWORKAREA                 = 1
    *   INVALID_DYNPROFIELD                  = 2
    *   INVALID_DYNPRONAME                   = 3
    *   INVALID_DYNPRONUMMER                 = 4
    *   INVALID_REQUEST                      = 5
    *   NO_FIELDDESCRIPTION                  = 6
    *   INVALID_PARAMETER                    = 7
    *   UNDEFIND_ERROR                       = 8
    *   DOUBLE_CONVERSION                    = 9
    *   STEPL_NOT_FOUND                      = 10
    *   OTHERS                               = 11
      IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      READ TABLE tb_dynpfields INDEX 1.
      IF sy-subrc EQ 0.
        vbeln = tb_dynpfields-fieldvalue.
      ENDIF.
      SELECT posnr FROM zvbap
        INTO TABLE itab
      WHERE
        vbeln = vbeln.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
    *   DDIC_STRUCTURE         = ' '
          retfield               = 'POSNR'
    *   PVALKEY                = ' '
         dynpprog               = 'ZTG_F1F4'
         dynpnr                 = '1010'
         dynprofield            = 'POSNR'
    *   STEPL                  = 0
    *   WINDOW_TITLE           =
    *   VALUE                  = ' '
       value_org              = 'S'
    *   MULTIPLE_CHOICE        = ' '
    *   DISPLAY                = ' '
    *   CALLBACK_PROGRAM       = ' '
    *   CALLBACK_FORM          = ' '
    *   MARK_TAB               =
    * IMPORTING
    *   USER_RESET             =
        TABLES
          value_tab              = itab
    *   FIELD_TAB              =
    *   RETURN_TAB             =
    *   DYNPFLD_MAPPING        =
    * EXCEPTIONS
    *   PARAMETER_ERROR        = 1
    *   NO_VALUES_FOUND        = 2
    *   OTHERS                 = 3
      IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDMODULE.                 " GET_F4_HELP  INPUT
    Hope this solves your problem.
    Thanks & Regards,
    Tarun Gambhir

  • Multiple country of origins

    Similar to other postings, we manufacture the same material number in multiple countries.  Because we have batch management, we can store the COO at the batch level to meet this requirement.
    However, we have a foreign trade requirement to declare either the Fabrication country or the Assembly country based on the country that we are shipping to.
    What options do I have in determining the COO based on the ship-to country?  Is there any configuration that will allow me to do this?
    Thank you.
    Andy

    good suggestion and i'll play with that a bit.  Making this a mandatory entry will be time-consuming due to our large volume of orders/deliveries.
    Does anyone else have to account for different COO depending on the ship-to site?   What was your solution?

  • Calculate Date/Time based on TimeZone

    Hi guys,
    what i want to do is the following:
    given a database table tzdata composed of time zone names and tz offset
    like this :
    tzName tzOffset summer time used
    Afghanistan ,+4.5, no
    Albania ,+1, yes
    Algeria, +1, yes
    American Samoa,-11, no
    i want to be able to display the corresponding Date / Time of each country based on the time zone offset .
    I'm using a SimpleDateFormat , and want to know how to calulate time for each entry in table above.
    thanks for helping !

    given a database table tzdata composed of time zone names and tz offset
    i want to be able to display the corresponding Date / Time of each country
    based on the time zone offset .
    in the offsets i posted above i found things like +10.5 ,-1.2 ect..
    how to convert those into the correct format so i can feed it to SimpleTimeZone() construtor ?Why would you want to?
    I am just pointing out here that java already has all those timezones and offsets configured into it. As well as if/when DST applies.
    String[] zones = TimeZone.getAvailableIDs();
            for (int i=0; i<zones.length; i++){
              System.out.println("Zone " + i + " = " + zones[i] + " offset = " + TimeZone.getTimeZone(zones).getRawOffset());
    In other words this database table is reinventing the wheel.
    You just need to tell Java which Timezone you want (according to the standard names for timezones begin Region/City) and it will work out the correct offset.
    eg
    for Afghanistan: new TimeZone("Asia/Kabul");
    Albania: new TimeZone("Europe/Tirane");
    Cheers,
    evnafets

Maybe you are looking for

  • A New Year, a New Challenge! Become the FIRST Azure Guru of 2015!

    Happy New Year! "Guru 2014" is so 'last year'! The real glory is to be the first Guru of 2015! :D The birth of a new year, and a new hero? Or the stamp of authority from long established Guru leaders? The challenge is on, all eyes are watching, anyon

  • How can I listen on 2 ports in 1 app

    Here's a synapse of what I'm doing. I'm working on a graphical console program. Basically, I created a GUI interface, for a command prompt program. I'm basically trying to create a command prompt for the new millennium. It allows for multi-connection

  • Can i use cs6 on a mac and a pc on one license

    - we have both in our office. I don't know if we ahve to buy cs6 mac version AND cs6 pc version or if we can buy a multiuser license and download the mac version to our mac and the pc version to our pc. i think i may have the answer - a volume licens

  • Table of contents - self listing

    Hello, I've already found a solution on this forum for my question but I'm hoping an expert can explain to my why something doesn't work as I expect it. Problem: When you make a table of contents (ToC), the entry for the ToC....page # doesn't appear

  • Exporting hotmail contacts to Address Book using numbers

    Hi, I've been reading some other topics on how to export your contacts to address book. Though these were helpful, I do not have microsoft excel. Is it possible to get my hotmail contacts to my address book using numbers or do I need excel.