Announcement

Collapse
No announcement yet.

TCP Open Server - user specified IP

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • TCP Open Server - user specified IP

    What is the format for the IP here, I"m not a whiz at the backwards IP, long variable format....

    I have machines with multiple IP's and while my IP is first in the binding order I want to specify the IP (as a user option)...

    local nServerIP as long (?)


    nServer = FreeFile
    nServerIP = Val(g_ServerIP)
    Tcp Open Server Addr nServerIP Port g_Port As nServer TimeOut 5000
    Scott Turchin
    MCSE, MCP+I
    http://www.tngbbs.com
    ----------------------
    True Karate-do is this: that in daily life, one's mind and body be trained and developed in a spirit of humility; and that in critical times, one be devoted utterly to the cause of justice. -Gichin Funakoshi

  • #2
    if your ip address is:
    a.b.c.d

    and you want the long integer format of that, i'm pretty sure it will be:

    a*(256*256*256) + b*(256*256) + c*256 + d

    or something like that. is that what you're looking for?

    -don
    Don Dickinson
    www.greatwebdivide.com

    Comment


    • #3
      Don - long time!!!

      I think that's what I want, I'll give it a shot!

      Thanks!!
      Scott Turchin
      MCSE, MCP+I
      http://www.tngbbs.com
      ----------------------
      True Karate-do is this: that in daily life, one's mind and body be trained and developed in a spirit of humility; and that in critical times, one be devoted utterly to the cause of justice. -Gichin Funakoshi

      Comment

      Working...
      X