i need help with this i have made a chatroom in batch that should work with computers on the same local network, my main question now is can someone provide me with help on how to use it to talk to computers on a differnt networks and how to get it to communicate with the program running on another computer on the same network, below is the source
@echo off
title DisaVow Chat Client
set /a c=0
:menu
cls
Echo.
Echo.
Echo Welcome to Chat Diasavow Dev Team
Echo Choose An Option!
Echo.
Echo 1) Join
Echo 2) Create
Echo 3) Reset
Echo.
Echo Type the number that corresponds to your choice and hit enter
Echo.
set /p choice=
if %choice% EQU 1 goto join
if %choice% EQU 2 goto create
if %choice% EQU 3 goto reset
:join
cls
Echo.
Echo.
Echo Type the Number of the Chatroom you wish to join
Echo.
Echo.
:s
set /a c=0
:r
if exist chat%c%.txt Echo Chatroom%c%
if not exist chat%c%.txt goto q
set /a c=%c%+1
goto r
:q
if %c% EQU 0 goto none
Echo.
set /p c=
if not exist chat%c%.txt goto err
title Chatroom %c%
:z
if exist set.bat goto z
Echo @echo off>set.bat
Echo set c=%c%>set.bat
start msg.bat
:type
cls
type Chat%c%.txt
ping localhost -n 2 >nul
goto type
:err
Echo.
Echo Sorry that is not a valid Chatroom Number.
Echo Click Any Key to Continue
pause>nul
goto s
:none
cls
Echo.
Echo.
Echo There are no chatrooms created! Go Make one!
Echo.
Echo Click Enter to Continue
pause>nul
goto menu
:create
if exist chat%c%.txt goto c3
set d=%c%
cls
Echo.>chat%d%.txt
Echo @echo off>set.bat
Echo set /a c=%c%>set.bat
start msg.bat
set /a c=%c%+1
goto type2
:type2
cls
type Chat%d%.txt
ping localhost -n 2 >nul
goto type2
:reset
cls
Echo.
Echo.
Echo You must have a Password to do this
Echo.
Echo Enter the Password:
set /p pass=
if %pass% EQU Dis goto cor
Echo Sorry that Password is incorrect
Echo You will be redirected to the menu
Echo Press Enter
pause>nul
goto menu
:cor
set /a c=0
set /a d=0
:cor2
if exist chat%c%.txt del chat%c%.txt
if exist chat%d%.txt del chat%d%.txt
set /a c=%c%+1
set /a d=%d%+1
if not exist chat%c%.txt goto cor3
goto cor2
:cor3
if not exist chat%c%.txt goto cor4
goto cor2
:cor4
cls
Echo.
Echo Chatrooms are cleared
Echo.
Echo Press Enter
pause>nul
goto menu
:c3
set /a c=%c%+1
goto create
@echo off
title DisaVow Chat Client
set /a c=0
:menu
cls
Echo.
Echo.
Echo Welcome to Chat Diasavow Dev Team
Echo Choose An Option!
Echo.
Echo 1) Join
Echo 2) Create
Echo 3) Reset
Echo.
Echo Type the number that corresponds to your choice and hit enter
Echo.
set /p choice=
if %choice% EQU 1 goto join
if %choice% EQU 2 goto create
if %choice% EQU 3 goto reset
:join
cls
Echo.
Echo.
Echo Type the Number of the Chatroom you wish to join
Echo.
Echo.
:s
set /a c=0
:r
if exist chat%c%.txt Echo Chatroom%c%
if not exist chat%c%.txt goto q
set /a c=%c%+1
goto r
:q
if %c% EQU 0 goto none
Echo.
set /p c=
if not exist chat%c%.txt goto err
title Chatroom %c%
:z
if exist set.bat goto z
Echo @echo off>set.bat
Echo set c=%c%>set.bat
start msg.bat
:type
cls
type Chat%c%.txt
ping localhost -n 2 >nul
goto type
:err
Echo.
Echo Sorry that is not a valid Chatroom Number.
Echo Click Any Key to Continue
pause>nul
goto s
:none
cls
Echo.
Echo.
Echo There are no chatrooms created! Go Make one!
Echo.
Echo Click Enter to Continue
pause>nul
goto menu
:create
if exist chat%c%.txt goto c3
set d=%c%
cls
Echo.>chat%d%.txt
Echo @echo off>set.bat
Echo set /a c=%c%>set.bat
start msg.bat
set /a c=%c%+1
goto type2
:type2
cls
type Chat%d%.txt
ping localhost -n 2 >nul
goto type2
:reset
cls
Echo.
Echo.
Echo You must have a Password to do this
Echo.
Echo Enter the Password:
set /p pass=
if %pass% EQU Dis goto cor
Echo Sorry that Password is incorrect
Echo You will be redirected to the menu
Echo Press Enter
pause>nul
goto menu
:cor
set /a c=0
set /a d=0
:cor2
if exist chat%c%.txt del chat%c%.txt
if exist chat%d%.txt del chat%d%.txt
set /a c=%c%+1
set /a d=%d%+1
if not exist chat%c%.txt goto cor3
goto cor2
:cor3
if not exist chat%c%.txt goto cor4
goto cor2
:cor4
cls
Echo.
Echo Chatrooms are cleared
Echo.
Echo Press Enter
pause>nul
goto menu
:c3
set /a c=%c%+1
goto create