Announcement

Collapse
No announcement yet.

TCP Open Server - user specified IP

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

  • Scott Turchin
    replied
    Don - long time!!!

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

    Thanks!!

    Leave a comment:


  • Don Dickinson
    replied
    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

    Leave a comment:


  • Scott Turchin
    started a topic TCP Open Server - user specified IP

    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
Working...
X