#a way to make a java sockets server without port forwarding?

1 messages ยท Page 1 of 1 (latest)

mystic siren
#

possible?

shrewd plazaBOT
#

<@&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>.

#
TJ-Bot
Possible?

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.

mystic siren
#

wtf gefnius bot?

covert saddle
mystic siren
#

any free external hosts?

covert saddle
#

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

mystic siren
#

what abt heroku

covert saddle
#

what are you trying to host?

#

heroku isnt free anymore

#

that was the option until about last year

mystic siren
mystic siren
covert saddle
#

they do have student options though

mystic siren
#

im not a student

covert saddle
#

a chat program? a game?

mystic siren
#

the server that sends message packets to client

covert saddle
#

if you have a credit card, you can get $300 worth of free credit for google compute engine

mystic siren
#

i cant risk

clear cedar
#

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

covert saddle
#

they dont charge your card after

clear cedar
#

port forwarding is simply required if u do it locally

mystic siren
#

oh

mystic siren
covert saddle
#

you shouldnt be hosting services from a personal PC though

covert saddle
mystic siren
#

oh

clear cedar
#

thing is, ur router somehow needs to understand which computer in his network is supposed to handle traffic to/from a certain port

covert saddle
clear cedar
#

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

mystic siren
#

aah

#

im gonna try googles for now

clear cedar
#

if u dont have access to ur router settings, u simply cant expose a computer to the outside world like that

covert saddle
#

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.

clear cedar
#

and then theres also the problem if u have ur own IP or a shared one

mystic siren
#

oh wait i did this before

#

lmao

clear cedar
#

latter is often the case when u dont pay extra to ur ISP and have a regular contract

mystic siren
#

so whats the best solution to hosting my server

clear cedar
#

in that case u couldnt fix it at all if ur hosting locally

#

unless u pay ur ISP more and change contracts or sth

mystic siren
#

would this work

#

its p old

covert saddle
#

nope, its expired

#

its either until you use the credits, or hit the deadline

mystic siren
#

welp

#

ok so how else can i host my server

covert saddle
#

if you have another card, start another trial ๐Ÿ˜Ž

mystic siren
#

i only got 1

#

๐Ÿ˜ญ

#

๐Ÿซ 

covert saddle
#

prepaid visa

#

can get them from just about any store, even convenience stores

#

like 7 11, if they have that in your area

mystic siren
#

im stuck in my moms basements

#

i dont got access to the outside world

#

(very real)

covert saddle
#

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

mystic siren
#

hmm ok

covert saddle
#

you can also find some deals, like "$1/month for 3 months", but you have to cancel before it ends

mystic siren
#

its over for me ๐Ÿ˜…

#

do you think it would be possible to make a chat server using json requests

covert saddle
#

because that machine needs to allow multiple connections

mystic siren
#

nah i found a free site to do that

covert saddle
#

then sure, as long as you arent violating the ToS

mystic siren
#

sheesh

covert saddle
#

there are many hackish ways to achieve this, but many of them violate the ToS of the service

mystic siren
#

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

covert saddle
#

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

mystic siren
#

sure gimme a few sec

#

nuh uh

#

i dont see anything

#

violating

#

i cn just make a simple python app that allows post requests

covert saddle
#

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

heavy obsidian
#

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.