cowin000 Posted May 12, 2011 Author Share Posted May 12, 2011 Ok you know how in the config.ini file for the client, theres a section for the ip and the port numbers. Well if your looking to make a decent game you might want to hide these for security. One possible threat to keeping this is people could make private servers of your game. All it takes is for someone to dl or creat a server to match your client sockets and boom creat a p server. But anyway heres how to hide it.modClientTCPfindCode:Sub TcpInit() ' If debug mode, handle error then exit out If Options.Debug = 1 Then On Error GoTo errorhandler Set PlayerBuffer = New clsBuffer ' connect frmMain.Socket.RemoteHost = Options.IP frmMain.Socket.RemotePort = Options.Port ' Error handler Exit Suberrorhandler: HandleError "TcpInit", "modClientTCP", Err.Number, Err.Description, Err.Source, Err.HelpContext Err.Clear Exit SubEnd Suband replacefrmMain.Socket.RemoteHost = Options.IPfrmMain.Socket.RemotePort = Options.PortwithfrmMain.Socket.RemoteHost = IPfrmMain.Socket.RemotePort = PORTThen go to modConstants and type inPublic Const IP As String = "127.0.01"Public Const PORT As String = 5000then just remove all of the Options.IP and Options.Port stuf in modDatabase. Link to comment Share on other sites More sharing options...
Socuine Posted May 13, 2011 Share Posted May 13, 2011 Use code tags to define area's that contain code. Nice tutorial. Link to comment Share on other sites More sharing options...
cowin000 Posted May 13, 2011 Author Share Posted May 13, 2011 I will. My bad Link to comment Share on other sites More sharing options...
Ravenshade Posted June 9, 2011 Share Posted June 9, 2011 Is it possible to further disguise it? Link to comment Share on other sites More sharing options...
RyokuHasu Posted June 9, 2011 Share Posted June 9, 2011 @Ravenshade:> Is it possible to further disguise it?You dont need to, its embeded directly into the code where people cant see it. =3 Link to comment Share on other sites More sharing options...
nexusrightsi Posted February 25, 2012 Share Posted February 25, 2012 odly enough its still placing the ip and port in the .ini even after i removed the ip and port from it. Link to comment Share on other sites More sharing options...
Godlord Posted February 25, 2012 Share Posted February 25, 2012 Stop trying to obfuscate information that can't be obfuscated. People like me can still extract data like that, if they really wanted. An example would be by disassembling the application. Another example would be by sniffing the network. And yet another example would be by using the utilities that tell you what ports are being used, and what IPs they are connected to.Similarly to graphics, this kind of data simply can't be hidden, and one shouldn't be bothering.Yours faithfully Stephan. Link to comment Share on other sites More sharing options...
Jacquelinett Posted February 25, 2012 Share Posted February 25, 2012 the easiest way:modGenerald, in sub Main, just right after LoadOptions, add:```options.IP = 127.0.0.1options.port = 7001```done? Link to comment Share on other sites More sharing options...
The New World Posted February 25, 2012 Share Posted February 25, 2012 [Read](http://www.touchofdeathforums.com/smf/index.php/topic,69448.msg746981.html#msg746981)@Yumi-chan:> the easiest way:> > modGenerald, in sub Main, just right after LoadOptions, add:> ```> options.IP = 127.0.0.1> options.port = 7001> > ```> done?Don't half-ass it. Link to comment Share on other sites More sharing options...
Anna Comnena Posted February 25, 2012 Share Posted February 25, 2012 @S.J.R.:> Similarly to graphics, this kind of data simply can't be hidden, and one shouldn't be bothering.> > Yours faithfully> Stephan.But the threat to graphics doesn't come from legitimate people with the skills to rip you off. The threat of graphics theft comes from nobodies who can drag-and-drop your graphic files into their own folders. Just that tiny little step of packaging or "decrypting" your graphics files and/or directories can go a long way toward basic security. Link to comment Share on other sites More sharing options...
Godlord Posted February 25, 2012 Share Posted February 25, 2012 @Anna:> But the threat to graphics doesn't come from legitimate people with the skills to rip you off. The threat of graphics theft comes from nobodies who can drag-and-drop your graphic files into their own folders. Just that tiny little step of packaging or "decrypting" your graphics files and/or directories can go a long way toward basic security.Thanks for sharing utter nonsense. You just forgot the fact that those people generally won't get anywhere.Yours faithfully Stephan. Link to comment Share on other sites More sharing options...
Anna Comnena Posted February 28, 2012 Share Posted February 28, 2012 But it doesn't mean them throwing YOUR graphics around and about can not potentially hurt you, either.You might see things clear and numerically, but most people see images and make judgement calls based on emotions. If people recognize your graphics attached to crappy ripoffs that fail or fizzle out, it can adversely affect perceptions of your game as well. Link to comment Share on other sites More sharing options...
Godlord Posted February 29, 2012 Share Posted February 29, 2012 It wouldn't depending on the popularity of your game. If your game is popular enough, and people actually do recognise images being used from your game, their perception of the rip-off will be affected, but not the perception of the original game, because that has barely anything to do with that rip-off, and even more so doesn't belong to the same author.If your game isn't popular enough, then it simply doesn't matter. People aren't going to recognise that the rip-off uses images from that game, because well, they don't know the original game. The issue there is that you simply failed to develop a game that means something to your audience, and in the end its audience's perception won't be affected.All I see here is that you are trying to shape assumable valid arguments to obfuscate. In reality, there is none. Since in reality, no matter how simple it is to grab the content to create a new game with that exact content, no such game will actually get far enough to become popular, and even more so accepted. The only actual argument I keep seeing here is the amount of paranoia you possess, thinking that is an actual valid argument to obfuscate anything. It isn't.Yours faithfully Stephan. Link to comment Share on other sites More sharing options...
Xlithan Posted March 1, 2012 Share Posted March 1, 2012 Erm, sorry to burst your bubble cowin000…http://en.wikipedia.org/wiki/NetstatSo by typing **netstat -b** into the command prompt, you can see the IP connections made by every binary executable currently running :)And why even make constants?frmMain.Socket.RemoteHost = 12.34.56.78frmMain.Socket.RemotePort = 5000 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now