[phpBB Debug] PHP Notice: in file /viewtopic.php on line 981: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone.
[phpBB Debug] PHP Notice: in file /viewtopic.php on line 981: getdate(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone.
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4183: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3493)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4185: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3493)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4186: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3493)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4187: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3493)
AskMisterWizard.com • View topic - Hamachi need help connecting

Hamachi need help connecting

Security topics for people that use the Internet, Wired LANs, or Wireless LANs at home, in the office, or on the road. Firewalls, Viruses, Virus Scanners, Malware, Adware, Spyware, Encryption, Authentication, Phishing, Scams, SSL, TLS, other threats, and solutions. Privacy, Integrity, and Accountability. Safe web commerce. Tracing abusers, etc.
Forum rules
Welcome to the AskMisterWizard.com "Security" Forum!

This is a friendly community. Please make sure your posts are helpful and focused on Security issues for users of computers, LANs, and the Internet. Please choose and respect concise, descriptive "Subject" lines. Although it's OK to promote your own interests and services if it's done in a way that's helpful to our readers (and if it fits the overall "SECURITY" focus of this forum), posts that include blatant "Spam" will be deleted. Any message that is deemed disruptive of the hosting system, hosting network, or our reading community will get you banned from these forums.

Hamachi need help connecting

Postby TerryG » 20 Apr 2010 20:48



I downloaded Hamachi and it worked for awhile for me and some friends, but then I added a Wifi adaptor and now I can see my friends on Hamachi but I can't connect in my game. But others can connect, so I know the server is good, and I can connect with a different Hamachi computer. On my computer I can ping them but evry time I try to connect it just won't do anything. Please help. I know this should be working because it worked before.


TerryG
 
Posts: 1
Joined: 20 Apr 2010 20:42

Re: Hamachi need help connecting

Postby bbosen » 22 Apr 2010 13:40

TerryG:

This sounds familiar, because I've had similar things happen to me.

As it turns out, different games use different methods to find and "negotiate" a connection across a LAN or across the Internet. Some games were written with worldwide TCP or UDP Internet connections in mind. Those games don't need Hamachi at all. A good example is the "YsFlight" flight simulator, described here:

http://techvideoreview.com/FlightSimMov ... llPage.htm

For those games, all players are expected to know, in advance of any connection request, the IP address of a compatible server, and the TCP or UDP ports on which it is listening for connections. (The IP address is always required, but designation of the TCP or UDP port is usually only required if it has been customized; a server that's listening on the game's own "default" ports won't demand this from connecting clients).

However, it's possible for programmers to design a game just for "LAN" use, in the expectation that it will never be played beyond the boundaries of your own home or small office. The "Aces High" flight simulator is a good example. It's described here:

http://techvideoreview.com/FlightSimMov ... llPage.htm

In those cases, an Internet-spanning VPN like Hamachi can generally be used to "trick" the clients and servers into believing that they are all on the same "Virtual" LAN segment, even if they are located thousands of miles apart. In those cases, when you set up a game client, you generally aren't required to know the IP address of the associated game server; the logic uses LAN-compatible tricks to discover it.

And that can be a problem.

These tricks generally rely on LAN "broadcast" or "multicast" messages. Typically, the client will send a message to every station in the LAN along these lines:

"HEY: Everybody listen up! I'm a lonely client of the "XYZ" flight simulator protocol, version 2.12.24, and I'm looking for any servers on this LAN that understand that protocol. If you are a server that hears and understands this message, please respond back to me on my randomly-selected UDP port: 2250."

On a simple LAN workstation with just one network connection, this is easily handled. If a server is present, it will respond with a broadcast or multicast message like this:

"I am running version 2.12.24 of the "XYZ" service. My IP address is 192.168.1.2. Let's continue this conversation using your UDP port 2250 and my UDP port 3110." The client, now aware of the IP address and ports used by the server, can request a direct connection, and the game is on.

However, if the server is running a VPN like Hamachi, it has become convinced (by Hamachi's clever logic) that it has TWO network connections: the conventional LAN on the 192.168.1.x subnet, and Hamachi's "Virtual" LAN on the 5.x.x.x subnet. The server can't be sure which of these 2 networks to use to respond back, so it has to take an educated guess. If the original multicast request came in over a Hamachi network, then the server should respond back via Hamachi. If the original multicast request came in over the local 192.168.1.x subnet (from a workstation within the same house), then the server should not use Hamachi.

And here's the rub: Multicast and broadcast requests look exactly the same, whether they arrive via Hamachi or not! So the server asks the operating system for help. All modern operating systems manage a "Routing Table" that is expected to know which network connections to use in differing circumstances. Usually this is managed automatically, but with Hamachi, it is sometimes necessary to "help" the routing table figure out situations like this.

This entire subject is documented in greater detail in the "Security->VPN->Hamachi" section at AskMisterWizard.com. Here's a direct link:

http://www.askmisterwizard.com/EZINE/Se ... llPage.htm

I hope this helps!



-Bob Bosen-
bbosen
Site Admin
 
Posts: 164
Joined: 17 Feb 2010 15:29

Re: Hamachi need help connecting

Postby jollyrancher » 03 Jun 2010 18:16

Hey Mister Wizard: Thanks for that posting on Hamachi. I had the same trouble and I used your article about Hamachi Invisible Game servers and now everything is working. I've told this to several of my mates but I don't know if there working yet but I hope so. Now if I could only get Hamachi working with my iPad lol!

One thing we have learned about Hamachi is that u can only have 16 users in your hamachi network. If more than that try to connect they get a message about the network being full. And it's not just 16 users at the same time. That would be no problem. If more than 16 users EVER join your network, you can't let any more in ever until 1 of those 16 leaves the network.

Anyways, thanks for the info.

jollyrancher
jollyrancher
 
Posts: 1
Joined: 03 Jun 2010 18:11

Re: Hamachi need help connecting

Postby bbosen » 21 Feb 2012 13:01

Question for the group:

Has it become more difficult for you to get a reliable Hamachi connection lately? Although it still works well for me using LINUX, the Windows versions have suffered from connection difficulties. It seems to be getting worse and worse as time goes on....

....Anybody else?

-Bob-
bbosen
Site Admin
 
Posts: 164
Joined: 17 Feb 2010 15:29

thanks you

Postby chongwenlim » 22 Mar 2012 02:16

thanks for the information, been looking for something like this. hope that it works.
chongwenlim
 
Posts: 1
Joined: 22 Mar 2012 02:13
Location: Peru


Return to Security



cron