Giter VIP home page Giter VIP logo

gtablocker's Introduction

GTA V Port Blocker

This application will enable the user to automatically block ports for Grand Theft Auto Online, which allows the user to play in a 'public' session by themselves or with friends only. A public session has more benefits than the in-game friends-only session.

Getting Started

Prerequisites

Windows 7 or later and Java SE 8 or later are required for the program to function correctly. Additionally, administrator privileges are required to modify the Windows Firewall.

Installing

This is a standalone application, so no installation is required. It is recommended to extract the contents of the zip to an empty folder.

However, first time firewall setup is required.
The batch file setup.bat will remove any default firewall rules for Grand Theft Auto V, and replace them with its own. Read the rest of this section before continuing.

You are advised to create a backup of the Windows Firewall before using setup.bat. To do so, open Windows Firewall with Advanced Security (Run -> wf.msc), and right click on on the main tab on the left (Windows Firewall with Advanced Security on Local Computer). Then export policy and save the backup.

You also must set the location of GTA5.exe (the game) before running setup.bat. The location of GTA5.exe is in the main game folder. Edit setup.bat, and replace the given location (on line 3) with your location. Make sure that you keep the double quotes around the location.

Then run setup.bat as administrator.

Using the Application

You can add friends on the left panel with the 'Add...' button. You then need to provide their name and their public IP address. To edit an existing friend, simply select them on the left.

The firewall rules created previously are automatically updated when you save in the application. It is recommended to save the information file with the default name (info.bin) as this file gets automatically loaded when the application starts.

When a friend is not selected, you are able to enable / disable the blocker with the buttons below the output console. Remember, you cannot join another player while your blocker is active, and non-friends cannot join you.

The blocking state is remembered between sessions. This means if you leave the blocker on when you close the application, it will continue blocking while not open.

Troubleshooting

Public IPs are often not static, and can change seemingly randomly. If a friend cannot join you, get them to send you their IP again. Chances are their IP has changed automatically.

If you get randomly disconnected from GTA Online, it is likely because your friend was the host of the session instead of you, and somebody not on your allowed IP list (a random) was matchmade into the session. This results in your game not being able to communicate with the random player, and you get disconnected. To ensure that you are the host, use the 'block all' feature to get into a session with only yourself, swap to the regular block all but friends, and then invite your friends.

Built With

  • Launch4J - Conversion from .jar to .exe

Versioning

2.4.0 - Added watch file for changes feature, automatic local IP exception, improved console
2.3.0 - Swapped info file to JSON format, fixed applying firewall rules
2.2.2.1 - Minor fixes
2.2.2.0 - Fixed block / block all sometimes not changing the firewall
2.2.1.0 - Automated firewall rule creation, view firewall shortcut, numerous bug fixes
2.2.0.2 - Bug fixes
2.2.0.1 - Bug fixes
2.2.0.0 - Console log feature
2.1.0.0 - Multiple save feature, bug fixes
2.0.0.0 - Initial Java GUI implementation
1.0.0 - Initial Python command line implementation

Authors

func_vehicle

gtablocker's People

Contributors

dependabot[bot] avatar func-vehicle avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

gtablocker's Issues

Suggestion

Hey i had a thought that would really help me personally but maybe also others - could you add a way for the program to auto refresh the whitelist every X seconds and apply it to the firewall so that i can make a website for my friends to goto and update there ip if it changed.

Thanks once again for the awesome work so far!

Doesnt work?

Hello,

My friends are getting the unable to connect message only until i unblock all i suspect its something to do with the way its blocking the ips when i check my firewall rule it shows as something like this from 0.0.0.0 to x.x.x.x

Windows 7 is what im using .. The it deffo blocks just doesnt allow friends for me

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.