Dynamic IP Winsock Server

Discussion in 'Archives' started by iMatt, Jun 5, 2007.

Dynamic IP Winsock Server
  1. Unread #1 - Jun 5, 2007 at 11:58 AM
  2. iMatt
    Joined:
    May 6, 2007
    Posts:
    268
    Referrals:
    0
    Sythe Gold:
    0

    iMatt Forum Addict
    Banned

    Dynamic IP Winsock Server

    How do I make my own server that clients can connect to, I have dynamic so I can't just type a static IP in there, as mine will change within seconds of releasing it..

    I really need to know, no-IP didn't work with me..
     
  3. Unread #2 - Jun 5, 2007 at 12:26 PM
  4. Covey
    Joined:
    Sep 9, 2005
    Posts:
    4,510
    Referrals:
    9
    Sythe Gold:
    9
    Discord Unique ID:
    807246764155338833
    Discord Username:
    Covey#1816

    Covey Creator of EliteSwitch
    Retired Sectional Moderator Visual Basic Programmers

    Dynamic IP Winsock Server

    just make an option to input the server ip....
     
  5. Unread #3 - Jun 5, 2007 at 12:29 PM
  6. iMatt
    Joined:
    May 6, 2007
    Posts:
    268
    Referrals:
    0
    Sythe Gold:
    0

    iMatt Forum Addict
    Banned

    Dynamic IP Winsock Server

    I want my IP hidden though, I could always make it open a txt file in Inet and it would read my IP off the web etc, but I'd have to keep updating it etc and it may get a bit annoying..
     
  7. Unread #4 - Jun 5, 2007 at 1:51 PM
  8. ViruZ3
    Joined:
    May 21, 2007
    Posts:
    55
    Referrals:
    0
    Sythe Gold:
    0

    ViruZ3 Member

    Dynamic IP Winsock Server

    But is there a way to do this?
     
  9. Unread #5 - Jun 5, 2007 at 2:03 PM
  10. iMatt
    Joined:
    May 6, 2007
    Posts:
    268
    Referrals:
    0
    Sythe Gold:
    0

    iMatt Forum Addict
    Banned

    Dynamic IP Winsock Server

    Nothing's impossible, I'll try no-IP again. What settings should I set it to btw?
     
  11. Unread #6 - Jun 5, 2007 at 2:04 PM
  12. ViruZ3
    Joined:
    May 21, 2007
    Posts:
    55
    Referrals:
    0
    Sythe Gold:
    0

    ViruZ3 Member

    Dynamic IP Winsock Server

    I have no clue... I dont use No-Ip
     
  13. Unread #7 - Jun 5, 2007 at 2:23 PM
  14. iMatt
    Joined:
    May 6, 2007
    Posts:
    268
    Referrals:
    0
    Sythe Gold:
    0

    iMatt Forum Addict
    Banned

    Dynamic IP Winsock Server

    Perhaps you shouldn't attempt to help then, lol. Nah, joking. I just setup a new DNS server:

    Okay, can anyone tell me if it is online/or not? The server is running atm, I have the no-ip program running etc, it says it's all ok. Is it?
     
  15. Unread #8 - Jun 6, 2007 at 6:17 AM
  16. halojunkie
    Joined:
    Dec 17, 2005
    Posts:
    232
    Referrals:
    0
    Sythe Gold:
    0

    halojunkie Active Member

    Dynamic IP Winsock Server

    I've come up with a way to do this for two reasons:

    1) I run uTorrent at my Grandparents' house on their computer with FAST cable internet which has a dynamic IP. I needed the IP because uTorrent has a WebInterface allowing me to start torrents remotely.

    2) The game I will be programming will require a computer for a server for stats and such and static IP's normally cost extra. This to will most likely run at my Grandparents' house too.

    Basically, what you will need is a host and a domain name. It needs to have (if this will be a big server) high bandwidth, but small storage.You have 2 PHP files, which I can write for you. One file will write your IP to either a MySQL database, or much easier, a text file. The other PHP file will display the text file/MySQL database information. If you only need one user, then it will only require one PHP file and one text file.

    On your computer, you have a program which connects to http://whatismyip.com and splits/strips your IP address from the source. The program running on your computer would do this at an interval that you would set. It would then connect to your host/domain and connect to the PHP file that writes the text file or the MySQL database.

    For the client program to connect to your IP (I assume this is for a chat system or something of the sort) you have it connect to the PHP file which displays your IP, which you could encrypt (I can help you with that too.) Reads that, decrypts it if nessicery(yes I know it is spelled wrong), and then is able to connect to it.

    The actual server program and client program is up to you to write, but in my spare time this summer, I will write a nice tutorial with source code for all of this. Heck, I'll even host the PHP files for you since my server is already set up for a multi-user for updating IPs.

    Let me know how this works and if you need help.

    You can add me on AIM. Kingsoccer425

    HaloJunkie
     
  17. Unread #9 - Jun 6, 2007 at 10:37 AM
  18. iMatt
    Joined:
    May 6, 2007
    Posts:
    268
    Referrals:
    0
    Sythe Gold:
    0

    iMatt Forum Addict
    Banned

    Dynamic IP Winsock Server

    Aha, ok. Thanks a lot, I'll put everything you said into practice after I've written a new guide for an application. :)
     
  19. Unread #10 - Jun 6, 2007 at 3:51 PM
  20. halojunkie
    Joined:
    Dec 17, 2005
    Posts:
    232
    Referrals:
    0
    Sythe Gold:
    0

    halojunkie Active Member

    Dynamic IP Winsock Server

    No Problem. :)

    In fact, I'm whipping up an example program for your computer to run.
    And I will whip up a PHP file for you.

    I'll attach it as soon as I'm done.
     
  21. Unread #11 - Jun 7, 2007 at 2:18 AM
  22. halojunkie
    Joined:
    Dec 17, 2005
    Posts:
    232
    Referrals:
    0
    Sythe Gold:
    0

    halojunkie Active Member

    Dynamic IP Winsock Server

    Attached, find a sample IP updater program and the PHP file to write it. Open settings.ini to change you settings.
     

    Attached Files:

  23. Unread #12 - Jun 8, 2007 at 11:40 AM
  24. Annex
    Joined:
    Aug 28, 2005
    Posts:
    2,324
    Referrals:
    3
    Sythe Gold:
    0
    UWotM8?

    Annex Ballin'
    Veteran (Ex-Admin)
    PHP Programmers Retired Administrator

    Dynamic IP Winsock Server

    why won't no-ip work? did you not port forward?
     
  25. Unread #13 - Jun 8, 2007 at 11:49 AM
  26. iMatt
    Joined:
    May 6, 2007
    Posts:
    268
    Referrals:
    0
    Sythe Gold:
    0

    iMatt Forum Addict
    Banned

    Dynamic IP Winsock Server

    Well, I made a server and a client. I ran the no-ip program and it said it was fully updated etc. I then ran the server on port 8245 (no-ip's default).

    I opened the client and connected to my server on the port 8245. No connection.

    I guess it's like 'you can't connect to your own external IP' or something.
     
  27. Unread #14 - Jun 8, 2007 at 7:04 PM
  28. Annex
    Joined:
    Aug 28, 2005
    Posts:
    2,324
    Referrals:
    3
    Sythe Gold:
    0
    UWotM8?

    Annex Ballin'
    Veteran (Ex-Admin)
    PHP Programmers Retired Administrator

    Dynamic IP Winsock Server

  29. Unread #15 - Jun 9, 2007 at 12:36 AM
  30. Cruel__Machine
    Referrals:
    100

    Cruel__Machine Guest

    Dynamic IP Winsock Server

    halojunkie, you can just use "echo $_SERVER['REMOTE_ADDR'];" to print your IP address instead of parsing the whatismyip.com page :p

    Anyhow it does seem like a port forwarding problem.
     
  31. Unread #16 - Jun 9, 2007 at 3:49 AM
  32. halojunkie
    Joined:
    Dec 17, 2005
    Posts:
    232
    Referrals:
    0
    Sythe Gold:
    0

    halojunkie Active Member

    Dynamic IP Winsock Server

    not in visual basic you cant. but i could make another PHP file.

    and i just started php lol

    yea port forwarding is important
     
  33. Unread #17 - Jun 10, 2007 at 4:06 PM
  34. Drowning Sun
    Joined:
    Jun 5, 2007
    Posts:
    260
    Referrals:
    0
    Sythe Gold:
    0

    Drowning Sun Forum Addict
    Banned

    Dynamic IP Winsock Server

    input the server.
     
  35. Unread #18 - Jun 10, 2007 at 4:10 PM
  36. 1337_Byte
    Joined:
    Jan 21, 2007
    Posts:
    2,132
    Referrals:
    0
    Sythe Gold:
    0

    1337_Byte Grand Master
    Banned

    Dynamic IP Winsock Server

    No-IP should work, just log into your router by typing 192.168.1.1 in your browser and configure the ports.
     
  37. Unread #19 - Jun 12, 2007 at 11:14 AM
  38. Annex
    Joined:
    Aug 28, 2005
    Posts:
    2,324
    Referrals:
    3
    Sythe Gold:
    0
    UWotM8?

    Annex Ballin'
    Veteran (Ex-Admin)
    PHP Programmers Retired Administrator

    Dynamic IP Winsock Server

    It is, no-ip didn't work for me until i port forwarded, he probably is on a router too, or his isp blocks that port by default.
     
< Need someone to train str on new pure | selling pure 50 range wow! >

Users viewing this thread
1 guest


 
 
Adblock breaks this site