#a way to make a java sockets server without port forwarding?
1 messages ยท Page 1 of 1 (latest)
<@&987246399047479336> please have a look, thanks.
Here is an AI assisted attempt to answer your question ๐ค. Maybe it helps! In any case, a human is on the way ๐. To continue talking to the AI, you can use </chatgpt:1108714622413963314>.
Yes, it is possible to create a Java sockets server without port forwarding by using techniques such as NAT traversal. One common approach is to use a technique called Hole Punching, which involves establishing a connection between two peers behind NAT devices by using an external server to facilitate the communication.
Another option is to use libraries or frameworks that handle the NAT traversal for you, such as WebRTC or STUN/TURN servers. These technologies can help establish direct connections between clients without requiring port forwarding.
Additionally, you can consider using a cloud-based solution like AWS or Azure to host your server, as these platforms typically handle the networking complexities for you and allow for easier communication between clients without the need for port forwarding.
Overall, while it is more challenging to create a Java sockets server without port forwarding due to the limitations of NAT devices, there are still viable solutions available that can help facilitate communication between clients effectively.
wtf gefnius bot?
its just suggesting you offload the portforwarding to an external server
any free external hosts?
unless you're a student, who can get free credit for trusted source, there's not anything worth actually hosting on. you can probably find some sketchy vps
what abt heroku
what are you trying to host?
heroku isnt free anymore
that was the option until about last year
oh nvm
external server ig
they do have student options though
im not a student
what are you trying to host on the server
a chat program? a game?
the server that sends message packets to client
if you have a credit card, you can get $300 worth of free credit for google compute engine
i cant risk
if ur doing it on ur own computer, this technically has nothing to do with java anymore but with how local internet and ur router work
they dont charge your card after
port forwarding is simply required if u do it locally
i want to make it work globally
oh
then why do they ask for card
you shouldnt be hosting services from a personal PC though
bots
oh
thing is, ur router somehow needs to understand which computer in his network is supposed to handle traffic to/from a certain port
ohh
i need to research more
like, lets say theres traffic coming in to port 8000. should the router move this traffic to ur pc? or ur phone? or ur sisters pc?
thats what u tell ur router via port forwarding
if u dont have access to ur router settings, u simply cant expose a computer to the outside world like that
You are not billed during your Free Trial. When the Free Trial ends, all resources you created during the trial are stopped, and you will not be charged, unless you upgrade to a paid Cloud Billing account.
and then theres also the problem if u have ur own IP or a shared one
latter is often the case when u dont pay extra to ur ISP and have a regular contract
so whats the best solution to hosting my server
in that case u couldnt fix it at all if ur hosting locally
unless u pay ur ISP more and change contracts or sth
if you have another card, start another trial ๐
prepaid visa
can get them from just about any store, even convenience stores
like 7 11, if they have that in your area
there are no trusted free hosting solutions anymore. once heroku stopped, thats was basically it
so you'd either have to host from your own machine (which i wouldnt recommend), or find a cheap vps
can get them for like $5-$10/month these days
hmm ok
you can also find some deals, like "$1/month for 3 months", but you have to cancel before it ends
its over for me ๐
do you think it would be possible to make a chat server using json requests
the data format isnt the problem. "what machine is going to facilitate message passing" is the problem
because that machine needs to allow multiple connections
nah i found a free site to do that
then sure, as long as you arent violating the ToS
sheesh
there are many hackish ways to achieve this, but many of them violate the ToS of the service
can u tell me 1 way plz
i have an idea of senidng the last 10 msgs to the client
or the client requesting it
dont think im allowed to talk about things that would violate ToS of services. just check the ToS to see if they explicitly disallow bots/scraping/third party app interaction
sure gimme a few sec
nuh uh
Terms and Conditions: PythonAnywhere
i dont see anything
violating
i cn just make a simple python app that allows post requests
as long as the service is fine with it
keep in mind, there may be other termd at play. click the hyperlinks in the ToS
for example
You must comply with the Amazon Acceptable Use Policy
Keep a pre-paid visa card that you've run down to zero (or near zero) balance for times when a website asks you to enter a credit card.