Results 1 to 5 of 5

Thread: server's IP ( static )

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2001
    Location
    Earth
    Posts
    277

    Talking server's IP ( static )

    I made a client/server app and it works perfectly but the server's IP (my machine's IP) differs from time to time also the client side may not connect to the server side if i am not connected to the internet.
    I am not affined by the Internet always.
    Is it possible to consider a webpage as a server?
    any idea??

  2. #2
    AutoBot
    Guest
    If you have a broadband connection I would simply force my dynamic ip address to be static. Another option would be to use a service like dynip or some other ip forwarding service.

  3. #3
    sunnyl
    Guest
    I've been working on a little something that downloads in IP from a webpage. The page is updated by the person running the server and the clients download the data on that page connect using the IP on that page.

  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2001
    Location
    Earth
    Posts
    277
    could anyone give me a small example for that

  5. #5
    DaoK
    Guest
    This is a way to do it:

    VB Code:
    1. 'Put that in the form load or in a button
    2. DownloadFile "http://mywebpage.com/ip.txt", "C:\ip.txt"
    3. Open "C:\ip.txt" For Input As #1
    4.     myIp = Input(LOF(1), 1)
    5. Close #1
    6.  
    7. 'This is the Function
    8. Private Function DownloadFile(URL As String, _
    9.     LocalFilename As String) As Boolean
    10.     Dim lngRetVal As Long
    11.     lngRetVal = URLDownloadToFile(0, URL, LocalFilename, 0, 0)
    12.     If lngRetVal = 0 Then DownloadFile = True
    13. End Function

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width