- python 3.6 or above
Install portmap from PIP
pip install git+https://github.com/Prabesh01/portmap.git
$ portmap 5000
Any requests to 91.208.197.189:3456 will me mapped to port 5000 on this computer.
If you get command not found error, download portmapc.py, and run it:
$ python portmapc.py <port>
In server, install netmask and run this python script:
from netmask.server.main import NetmaskServer
server = NetmaskServer('0', False).start('<server_public_ip>', '-',1024)
in client, fork this repo -> replace your server ip in portmapc.py -> pip install that repo.