Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Get rid of IP and PORT in config.ini


cowin000
 Share

Recommended Posts

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.

modClientTCP

find
Code:
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 Sub

and replace

frmMain.Socket.RemoteHost = Options.IP
frmMain.Socket.RemotePort = Options.Port

with

frmMain.Socket.RemoteHost = IP
frmMain.Socket.RemotePort = PORT

Then go to modConstants and type in

Public Const IP As String = "127.0.01"
Public Const PORT As String = 5000

then just remove all of the Options.IP and Options.Port stuf in modDatabase.
Link to comment
Share on other sites

  • 4 weeks later...
  • 8 months later...
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

@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

@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

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

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

Erm, sorry to burst your bubble cowin000…

http://en.wikipedia.org/wiki/Netstat

So 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.78
frmMain.Socket.RemotePort = 5000
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...