• Post Reply Bookmark Topic Watch Topic
  • New Topic

Getting public IP of host machine  RSS feed

 
Jeremy Park
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, a few months ago, I wrote a few small bits of software for a customer, and I've recently found out that he has resold multiple copies of my program. I didn't really think it to be a massive issue before, but after this, I should really find a good way to safeguard against it. This particular software runs on a host machine, and therefore, the IP address is static, and does not change. I thought since the IP doesn't change, I could add a few lines of code to check the public ip of the host, and only allow the program to run if the software is being run on the correct IP address. This is the best way I can think to do it, but I'm sure there's a better way. If there isn't a better way to do it though, what do you think the best way to get the public ip would be? Thanks.
 
Guillermo Ishi
Ranch Hand
Posts: 789
C++ Linux Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is the program you want to protect running on a server, or the host computer? You could get the ip address in either case. You could also get the mac address which identifies a specific machine. Both can be spoofed. There are more sophisticated was of identifying a particular computer. One thing is to work out something with the customer, letting him know you retain ownership. I don't know if you automatically do. Are you trying to prevent piracy or are you wanting to be able to sue people? It is hard to prevent piracy. It is easy to sue people, but only if you have your ducks in a row. Maybe you could partner with a local patent attorney.
 
Jeremy Park
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Guillermo Ishi wrote:Is the program you want to protect running on a server, or the host computer? You could get the ip address in either case. You could also get the mac address which identifies a specific machine. Both can be spoofed. There are more sophisticated was of identifying a particular computer. One thing is to work out something with the customer, letting him know you retain ownership. I don't know if you automatically do. Are you trying to prevent piracy or are you wanting to be able to sue people? It is hard to prevent piracy. It is easy to sue people, but only if you have your ducks in a row. Maybe you could partner with a local patent attorney.


Actually, a MAC address is a good idea. The program is currently running on a server, but used to be just on a home computer. I'm not too worried about someone taking the time to spoof the IP, or the MAC address, as long as it makes reselling it far less useful. As for suing him, it's probably not worth bothering, because he lives on the other side of the planet to me, and the software was sold for less than $200. I just don't like the idea that he is reselling my software. As for letting him know that I retain ownership, I had already coded in a message saying that redistribution of this software was illegal, so he knows :P
 
Guillermo Ishi
Ranch Hand
Posts: 789
C++ Linux Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It sounds like you got your money and maybe you wouldn't have if it hadn't been something the guy could resell. Let him resell all he wants if the guys he sells to wouldn't have been your customers anyway. I wrote a lot of small programs that I tried to copy protect but it would have been better to just include a donate button and tell them please give it to everybody you know There is a way to purposely set up people to be sued under the terms of the dmca and hope everybody gives it to everybody they know too but it's pretty distasteful. It's illegal to use an unauthorized copy as well.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!