B4J Question ip machine pc (windows or mac)

Discussion in 'B4J Questions' started by ivanomonti, Apr 9, 2015.

  1. ivanomonti

    ivanomonti Well-Known Member Licensed User

    Hello everybody, I'm honing a small software for Telecommunication UPD server (desktop (b4j)) and client (Android) or (iOs), using the following code to retrieve ip server (desktop (b4j)) use;

    Private SS As ServerSocket
    SS.Initialize (6002, "ss")
    ip = SS.GetMyIP

    the result is not what I expect namely 192.168.1.xx but other as 137.10.211.xxx

    I do not understand, how can I retrieve ip of the machine where the server boot!
  2. giga

    giga Well-Known Member Licensed User

    Last edited: Apr 9, 2015
  3. Jmu5667

    Jmu5667 Well-Known Member Licensed User

    Check the network settings on the PC/Server to see if there is more then 1 ip address assigned to it, also check if the if an Internet connection to it, and if so launch your browser and go to http://www.whatsmyip.org/
  4. ivanomonti

    ivanomonti Well-Known Member Licensed User

    I would have no need for local ip of the machine is recovered locally without using the internet.

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice