Adblock breaks this site

Dynamic IP Winsock Server

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

  1. iMatt

    iMatt Forum Addict
    Banned

    Joined:
    May 6, 2007
    Posts:
    268
    Referrals:
    0
    Sythe Gold:
    0
    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..
     
  2. Covey

    Covey Creator of EliteSwitch
    Retired Sectional Moderator Visual Basic Programmers

    Joined:
    Sep 9, 2005
    Posts:
    4,510
    Referrals:
    9
    Sythe Gold:
    9
    Discord Unique ID:
    807246764155338833
    Discord Username:
    Covey#1816
    Dynamic IP Winsock Server

    just make an option to input the server ip....
     
  3. iMatt

    iMatt Forum Addict
    Banned

    Joined:
    May 6, 2007
    Posts:
    268
    Referrals:
    0
    Sythe Gold:
    0
    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..
     
  4. ViruZ3

    ViruZ3 Member

    Joined:
    May 21, 2007
    Posts:
    55
    Referrals:
    0
    Sythe Gold:
    0
    Dynamic IP Winsock Server

    But is there a way to do this?
     
  5. iMatt

    iMatt Forum Addict
    Banned

    Joined:
    May 6, 2007
    Posts:
    268
    Referrals:
    0
    Sythe Gold:
    0
    Dynamic IP Winsock Server

    Nothing's impossible, I'll try no-IP again. What settings should I set it to btw?
     
  6. ViruZ3

    ViruZ3 Member

    Joined:
    May 21, 2007
    Posts:
    55
    Referrals:
    0
    Sythe Gold:
    0
    Dynamic IP Winsock Server

    I have no clue... I dont use No-Ip
     
  7. iMatt

    iMatt Forum Addict
    Banned

    Joined:
    May 6, 2007
    Posts:
    268
    Referrals:
    0
    Sythe Gold:
    0
    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?
     
  8. halojunkie

    halojunkie Active Member

    Joined:
    Dec 17, 2005
    Posts:
    232
    Referrals:
    0
    Sythe Gold:
    0
    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
     
  9. iMatt

    iMatt Forum Addict
    Banned

    Joined:
    May 6, 2007
    Posts:
    268
    Referrals:
    0
    Sythe Gold:
    0
    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. :)
     
  10. halojunkie

    halojunkie Active Member

    Joined:
    Dec 17, 2005
    Posts:
    232
    Referrals:
    0
    Sythe Gold:
    0
    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.
     
  11. halojunkie

    halojunkie Active Member

    Joined:
    Dec 17, 2005
    Posts:
    232
    Referrals:
    0
    Sythe Gold:
    0
    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:

  12. Annex

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

    Joined:
    Aug 28, 2005
    Posts:
    2,324
    Referrals:
    3
    Sythe Gold:
    0
    UWotM8?
    Dynamic IP Winsock Server

    why won't no-ip work? did you not port forward?
     
  13. iMatt

    iMatt Forum Addict
    Banned

    Joined:
    May 6, 2007
    Posts:
    268
    Referrals:
    0
    Sythe Gold:
    0
    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.
     
  14. Annex

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

    Joined:
    Aug 28, 2005
    Posts:
    2,324
    Referrals:
    3
    Sythe Gold:
    0
    UWotM8?
    Dynamic IP Winsock Server

  15. Cruel__Machine

    Cruel__Machine Guest

    Referrals:
    100
    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.
     
  16. halojunkie

    halojunkie Active Member

    Joined:
    Dec 17, 2005
    Posts:
    232
    Referrals:
    0
    Sythe Gold:
    0
    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
     
  17. Drowning Sun

    Drowning Sun Forum Addict
    Banned

    Joined:
    Jun 5, 2007
    Posts:
    260
    Referrals:
    0
    Sythe Gold:
    0
    Dynamic IP Winsock Server

    input the server.
     
  18. 1337_Byte

    1337_Byte Grand Master
    Banned

    Joined:
    Jan 21, 2007
    Posts:
    2,132
    Referrals:
    0
    Sythe Gold:
    0
    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.
     
  19. Annex

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

    Joined:
    Aug 28, 2005
    Posts:
    2,324
    Referrals:
    3
    Sythe Gold:
    0
    UWotM8?
    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! >


 
 
Adblock breaks this site