Jump to content


Photo

39Dll + Hamachi = No Bueno


  • Please log in to reply
7 replies to this topic

#1 OminousGames

OminousGames

    GMC Member

  • GMC Member
  • 24 posts
  • Version:GM:Studio

Posted 02 June 2012 - 04:38 AM

I have been trying to get Hamachi work in GM for a while now, and I just don't get it! Here is what I have in my client for connection:



dllinit(0,true,true) 
global.tcp = tcpconnect('5.70.178.76',2620,1) 
if global.tcp > 0 
{
    room_goto_next()
}
else
{
    show_message("Unable to connect to the server!")
    game_end()
}

...and here is my connection for the Server:

dllinit(0,true,false)
servertcp = tcplisten(2620,10,1) 

When I run my server, and then run 2 clients, it works perfectly. But when I put a client on a seperate computer, it won't be able to connect!
Yes, the person is on my Hamachi network, I have checked. We have tried different methods (Changing network from public to home) but it doesn't work! Can someone please tell me what I am doing wrong?

Also I like Chicken! :chikin
  • 0

#2 OminousGames

OminousGames

    GMC Member

  • GMC Member
  • 24 posts
  • Version:GM:Studio

Posted 02 June 2012 - 04:41 AM

Also, sorry if this is in wrong spot. I was looking at another question like this and it was here so I figured it was in the right place :sweat:
  • 0

#3 ToshiroHayate

ToshiroHayate

    The Fox!

  • GMC Member
  • 15 posts
  • Version:GM8

Posted 02 June 2012 - 05:24 AM

The bigger question is, why are you using Hamachi for online play? It'd be EASIER to set and open a port. Hamachi is used for LAN. (Local Area Network.) Which is the network used for computers within close proximity to each other. Hamachi emulates this, so if you're 1,000 miles away, you can still use the features LAN brings. (Normally used by people who can't port forward on a router. Or if a game requires LAN, and not online.) Forcing people to download and connect to your Hamachi channel is a bad idea.

Sorry for the ranting, I just didn't want to just drop off a stand-alone "Why use Hamachi?" reply.
  • 0

#4 OminousGames

OminousGames

    GMC Member

  • GMC Member
  • 24 posts
  • Version:GM:Studio

Posted 02 June 2012 - 05:35 AM

The bigger question is, why are you using Hamachi for online play? It'd be EASIER to set and open a port. Hamachi is used for LAN. (Local Area Network.) Which is the network used for computers within close proximity to each other. Hamachi emulates this, so if you're 1,000 miles away, you can still use the features LAN brings. (Normally used by people who can't port forward on a router. Or if a game requires LAN, and not online.) Forcing people to download and connect to your Hamachi channel is a bad idea.

Sorry for the ranting, I just didn't want to just drop off a stand-alone "Why use Hamachi?" reply.



I am unable to forward ports on my router, so I must use hamachi when making a server.

The game I am making will allow people to use Port Forward, Hamachi, Local Networking (GM's Multiplayer Features) or Local Computer (Huddle around a keyboard or plug in joysticks.

Do you know why this is not working? Would it work if I were forwarding ports or is my coding wrong?
  • 0

#5 shrooms

shrooms

    GMC Member

  • GMC Member
  • 194 posts

Posted 02 June 2012 - 07:24 AM

hamatchi eliminates lag -_- its not bad its just people are to lazy
  • 0

#6 OminousGames

OminousGames

    GMC Member

  • GMC Member
  • 24 posts
  • Version:GM:Studio

Posted 02 June 2012 - 11:13 PM

hamatchi eliminates lag -_- its not bad its just people are to lazy


Okay. So how do I get it to work :tongue:
  • 0

#7 Orbitguy

Orbitguy

    UNS Lead Guy

  • GMC Member
  • 314 posts
  • Version:GM:Studio

Posted 02 June 2012 - 11:50 PM

Well you both have to have the hamachi running obviously.

I think you should both check your firewalls for port 2620.

Your code looks like it should work, so that's why I would recommend the person you are playing with checking their firewalls. I have done testing on my current game using hamachi... and that looks right, check you put in the correct hamachi IP.

Considering you can connect to it, it must be something on their end.

Even if you have a router you can still port forward if you have administrator access to the router. You can check this out further on portforward.com I think is the site. If you'd like to know more about that I can go look at how I did it.

Edited by Orbitguy, 02 June 2012 - 11:52 PM.

  • 1

#8 OminousGames

OminousGames

    GMC Member

  • GMC Member
  • 24 posts
  • Version:GM:Studio

Posted 03 June 2012 - 05:41 PM

Well you both have to have the hamachi running obviously.

I think you should both check your firewalls for port 2620.

Your code looks like it should work, so that's why I would recommend the person you are playing with checking their firewalls. I have done testing on my current game using hamachi... and that looks right, check you put in the correct hamachi IP.

Considering you can connect to it, it must be something on their end.

Even if you have a router you can still port forward if you have administrator access to the router. You can check this out further on portforward.com I think is the site. If you'd like to know more about that I can go look at how I did it.


Yes, I will try allowing 2620. I don't know if my computer would have already done that or not, but how do I allow it on 7 and vista (I have 7 he has vista)
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users