Results 1 to 21 of 21

Thread: Game with IP

  1. #1
    DaoK
    Guest

    Game with IP

    How can we send information via IP. I created a Pong game and now I wanted to add a option for "Multiplayer" with IP but I can find how send information by IP, can you help me please.

  2. #2
    Lively Member
    Join Date
    Apr 2001
    Location
    Scotland
    Posts
    64
    Use the winsock control, there is a good example of winsock chat with links on how to send data or commands via winsock at...
    http://www.vbworld.com
    AMD Athlon 1.0 GHz
    128MB RAM
    GeForce 2 MX
    30 GB HD

  3. #3
    DaoK
    Guest
    I searched some thing to send only text ( bceause i think is the same thing to send text or to send data of the game) so I searched some chat program to examine how to send text over "ip" but I only see source of some over lan :\ I will continue to search for both.

    Thx You to help me and if you have a more speacify link post it thx,

  4. #4
    Lively Member
    Join Date
    Apr 2001
    Location
    Scotland
    Posts
    64
    AMD Athlon 1.0 GHz
    128MB RAM
    GeForce 2 MX
    30 GB HD

  5. #5
    PowerPoster Fox's Avatar
    Join Date
    Jan 2000
    Location
    *afk*
    Posts
    2,088
    Theres also some WinSock and chat demo on my site

    Oh and the tutorial of course ^_^

  6. #6
    DaoK
    Guest
    Stewarty the chat dont work with IP but only with LAN and I get a lots of problem to use it sorry :\ Im trying FOX program now I will tell ya if it work

  7. #7
    Lively Member
    Join Date
    Apr 2001
    Location
    Scotland
    Posts
    64
    If you click on the link to follow discussions on the Winsock Chat topic, there are forum posts that correct the errors.
    AMD Athlon 1.0 GHz
    128MB RAM
    GeForce 2 MX
    30 GB HD

  8. #8
    DaoK
    Guest
    Well I download about 3 chat program and no one worked on my lan t.t. It's very simple what I want to do. Is a program who all computer here will have (3) and will be able to send me information with a text box.(chat) and other information with radio box ( want to share file,internet...) I will try to search more, later

  9. #9
    Lively Member
    Join Date
    Apr 2001
    Location
    Scotland
    Posts
    64
    There is something wrong with your LAN then, because Ive tried this on my LAN, and it works perfectly after a litttle modification.
    AMD Athlon 1.0 GHz
    128MB RAM
    GeForce 2 MX
    30 GB HD

  10. #10
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    Any TCP/IP based application what works on a LAN with work on the internet, and vice-versa, as long as you've got your IP Addresses all OK.
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  11. #11
    DaoK
    Guest
    If i can share folder and split my internet connection over all computer and the chat dont work....

  12. #12
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    Your router must be set up like mine; no winsock allowed . So you should ask your admin to change this.
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

  13. #13
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    DaoK,

    The systems on your network may not be running TCP/IP.
    For example if you're running a netware network, all you'd really need is IPX/SPX.

    But assuming you're running TCP/IP, because you can read this thread, then check if you can ping other systems on the network.

    Go into a DOS Prompt, and type :

    Code:
    ping IP_ADDRESS
    ... replace 'IP_ADDRESS' with the IP address of some other system on the network.

    To find IP Addresses, you could download this app : http://www.everymanonline.com/whadda...escription.htm

    An alternative would be to go to systems, and :
    IF they're running Win9x : Start > Run > winipcfg
    IF they're running NT/2K : Start > Run > command > ipconfig

    Those apps will show you the IP configuration on the $local$ machine.

    So once you've seen if you can ping the systems, then you know you can communicate with them ; then you know there's something amiss.
    If so, post your code and we'll have a look-see.

    - jamie
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  14. #14
    VBShipWreck
    Guest

    Cool

    Use DirectX's DirectPlay feature instead of Winsock. It offers complete multiplayer support. DirectPlay is the standard Internet game communication system. Most good games out there use DirectX. You then could also use the rest of the DirectX system(DirectDraw, Direct3d, DirectSound, etc.) for the game. The DirectX system is faster than the normal GDI functions such as BitBlt. DirectX is accessed using regular Declare statement API calls.

    Have fun

  15. #15
    Frenzied Member Jotaf98's Avatar
    Join Date
    Jun 2000
    Location
    I'm not gonna give you my IP address! Ok... Portugal, South-Western Europe, 3rd rock from the sun (our star is easy to find, a 47 Ursae Majoris in the Milky Way :p )
    Posts
    1,457
    Hey, do you have any good tutorials on DirectPlay? Most DirectX websites have nothing on it
    Code:
    Temp = Me.GetIQ()
    'Error 9: Overflow
    'DON'T PANIC! :eek:

    To learn how to use realistic effects in your games like fire, rain, snow and magic effects, read my article on particles systems here.


    Jotaf's Theories!
    "Cats land on their feet. Toast lands peanut butter side down. A cat with toast strapped to its back will hover above the ground in a state of quantum indecision."

  16. #16
    Lively Member
    Join Date
    Apr 2001
    Location
    Scotland
    Posts
    64
    Well I AM SORRY ! LOL
    AMD Athlon 1.0 GHz
    128MB RAM
    GeForce 2 MX
    30 GB HD

  17. #17
    DaoK
    Guest
    I might try to made a game with direct X but I need a tutorial to learn it I made a lots of game like Zelda for fun but working with keypress and that not really good and soft (mouvememnt) like my old Mario Bros 1 in my nintendo. I tryed a game of someone who did a rpg with DirectX and that really impressive. If any have some sample or tutorial please post it here. Thank You

  18. #18
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    http://rookscape.com/vbgaming/
    It has good (great!) Dplay tuts.
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

  19. #19
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    Jesus I avoid DirectPlay like the plague.
    I prefer to do things myself.

    Tho its support for IPX does excite me a little
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  20. #20
    Frenzied Member Jotaf98's Avatar
    Join Date
    Jun 2000
    Location
    I'm not gonna give you my IP address! Ok... Portugal, South-Western Europe, 3rd rock from the sun (our star is easy to find, a 47 Ursae Majoris in the Milky Way :p )
    Posts
    1,457
    Thanks for the link, I'll look at it later
    Code:
    Temp = Me.GetIQ()
    'Error 9: Overflow
    'DON'T PANIC! :eek:

    To learn how to use realistic effects in your games like fire, rain, snow and magic effects, read my article on particles systems here.


    Jotaf's Theories!
    "Cats land on their feet. Toast lands peanut butter side down. A cat with toast strapped to its back will hover above the ground in a state of quantum indecision."

  21. #21
    DaoK
    Guest
    Thx You, and I solved my Ip problem ^_^ but I will learn Direct X now later guys

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